mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Include handle to TargetMachine in each Machine...Info class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44508e333c
commit
1c84e2a7d3
@ -12,6 +12,7 @@
|
|||||||
#include <hash_map>
|
#include <hash_map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
class TargetMachine;
|
||||||
class IGNode;
|
class IGNode;
|
||||||
class Value;
|
class Value;
|
||||||
class LiveRangeInfo;
|
class LiveRangeInfo;
|
||||||
@ -37,7 +38,6 @@ class BasicBlock;
|
|||||||
|
|
||||||
|
|
||||||
class MachineRegClassInfo {
|
class MachineRegClassInfo {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
const unsigned RegClassID; // integer ID of a reg class
|
const unsigned RegClassID; // integer ID of a reg class
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
|
|
||||||
MachineRegClassInfo(const unsigned ID, const unsigned NVR,
|
MachineRegClassInfo(const unsigned ID, const unsigned NVR,
|
||||||
const unsigned NAR): RegClassID(ID), NumOfAvailRegs(NVR),
|
const unsigned NAR): RegClassID(ID), NumOfAvailRegs(NVR),
|
||||||
NumOfAllRegs(NAR)
|
NumOfAllRegs(NAR)
|
||||||
{ } // empty constructor
|
{ } // empty constructor
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -83,6 +83,8 @@ typedef vector<const MachineRegClassInfo *> MachineRegClassArrayType;
|
|||||||
|
|
||||||
|
|
||||||
class MachineRegInfo : public NonCopyableV {
|
class MachineRegInfo : public NonCopyableV {
|
||||||
|
public:
|
||||||
|
const TargetMachine& target;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -190,7 +192,7 @@ public:
|
|||||||
|
|
||||||
//virtual void printReg(const LiveRange *const LR) const =0;
|
//virtual void printReg(const LiveRange *const LR) const =0;
|
||||||
|
|
||||||
MachineRegInfo() { }
|
MachineRegInfo(const TargetMachine& tgt) : target(tgt) { }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -280,6 +280,8 @@ InstrRUsage::addUsageDelta(const InstrRUsageDelta& delta)
|
|||||||
|
|
||||||
class MachineSchedInfo : public NonCopyableV {
|
class MachineSchedInfo : public NonCopyableV {
|
||||||
public:
|
public:
|
||||||
|
const TargetMachine& target;
|
||||||
|
|
||||||
unsigned int maxNumIssueTotal;
|
unsigned int maxNumIssueTotal;
|
||||||
int longestIssueConflict;
|
int longestIssueConflict;
|
||||||
|
|
||||||
@ -305,8 +307,8 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/*ctor*/ MachineSchedInfo (int _numSchedClasses,
|
/*ctor*/ MachineSchedInfo (const TargetMachine& tgt,
|
||||||
const MachineInstrInfo* _mii,
|
int _numSchedClasses,
|
||||||
const InstrClassRUsage* _classRUsages,
|
const InstrClassRUsage* _classRUsages,
|
||||||
const InstrRUsageDelta* _usageDeltas,
|
const InstrRUsageDelta* _usageDeltas,
|
||||||
const InstrIssueDelta* _issueDeltas,
|
const InstrIssueDelta* _issueDeltas,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user