Add new optional getRegisterInfo to TargetMachine
llvm-svn: 4436
This commit is contained in:
parent
214808f8ac
commit
75d3515824
|
|
@ -17,6 +17,7 @@ class MachineRegInfo;
|
|||
class MachineFrameInfo;
|
||||
class MachineCacheInfo;
|
||||
class MachineOptInfo;
|
||||
class MRegisterInfo;
|
||||
class PassManager;
|
||||
class Pass;
|
||||
|
||||
|
|
@ -66,6 +67,12 @@ public:
|
|||
virtual const MachineCacheInfo& getCacheInfo() const = 0;
|
||||
virtual const MachineOptInfo& getOptInfo() const = 0;
|
||||
|
||||
/// getRegisterInfo - If register information is available, return it. If
|
||||
/// not, return null. This is kept seperate from RegInfo until RegInfo gets
|
||||
/// straightened out.
|
||||
///
|
||||
virtual const MRegisterInfo* getRegisterInfo() const { return 0; }
|
||||
|
||||
// Data storage information
|
||||
//
|
||||
virtual unsigned findOptimalStorageSize(const Type* ty) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue