From 478df7a7ae3c9aaa753948712d894fade36a8195 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Oct 2002 00:53:02 +0000 Subject: [PATCH] Add new optional getRegisterInfo to TargetMachine git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4436 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index abe3519bd3c..ab668d3dde0 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -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;