aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/MRegisterInfo.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-03-23 18:12:57 +0000
committerJim Laskey <jlaskey@mac.com>2006-03-23 18:12:57 +0000
commitf1d78e83356a412e525c30ac90dabf090a8cfc99 (patch)
treea677891241e018bdeffde44fe544bab3a683877c /include/llvm/Target/MRegisterInfo.h
parent4ca9757a39a1bf3bd1264a77e52db62e02cc85fb (diff)
downloadexternal_llvm-f1d78e83356a412e525c30ac90dabf090a8cfc99.zip
external_llvm-f1d78e83356a412e525c30ac90dabf090a8cfc99.tar.gz
external_llvm-f1d78e83356a412e525c30ac90dabf090a8cfc99.tar.bz2
Add support to locate local variables in frames (early version.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/MRegisterInfo.h')
-rw-r--r--include/llvm/Target/MRegisterInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h
index a7ce2dc..cbd6e0f 100644
--- a/include/llvm/Target/MRegisterInfo.h
+++ b/include/llvm/Target/MRegisterInfo.h
@@ -26,6 +26,7 @@ namespace llvm {
class Type;
class MachineFunction;
class MachineInstr;
+class MachineLocation;
class TargetRegisterClass;
/// TargetRegisterDesc - This record contains all of the information known about
@@ -341,6 +342,11 @@ public:
virtual void emitPrologue(MachineFunction &MF) const = 0;
virtual void emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const = 0;
+
+ /// getLocation - This method should return the actual location of a frame
+ /// variable given the frame index.
+ virtual void getLocation(MachineFunction &MF, unsigned Index,
+ MachineLocation &ML) const = 0;
};
// This is useful when building DenseMaps keyed on virtual registers