aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-21 06:22:23 +0000
committerChris Lattner <sabre@nondot.org>2010-09-21 06:22:23 +0000
commite8639036b1fb3a5b5e9589fe4e9f2ee1b77c36bd (patch)
treefc7d588707a78adac585ffc0b491906e6ede9447 /include
parente467d168d09e9d2bc9c598bde341921bba82baaa (diff)
downloadexternal_llvm-e8639036b1fb3a5b5e9589fe4e9f2ee1b77c36bd.zip
external_llvm-e8639036b1fb3a5b5e9589fe4e9f2ee1b77c36bd.tar.gz
external_llvm-e8639036b1fb3a5b5e9589fe4e9f2ee1b77c36bd.tar.bz2
it's more elegant to put the "getConstantPool" and
"getFixedStack" on the MachinePointerInfo class. While this isn't the problem I'm setting out to solve, it is the right way to eliminate PseudoSourceValue, so lets go with it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineMemOperand.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineMemOperand.h b/include/llvm/CodeGen/MachineMemOperand.h
index 1036115..71181df 100644
--- a/include/llvm/CodeGen/MachineMemOperand.h
+++ b/include/llvm/CodeGen/MachineMemOperand.h
@@ -48,6 +48,14 @@ struct MachinePointerInfo {
/// getAddrSpace - Return the LLVM IR address space number that this pointer
/// points into.
unsigned getAddrSpace() const;
+
+ /// getConstantPool - Return a MachinePointerInfo record that refers to the
+ /// constant pool.
+ static MachinePointerInfo getConstantPool();
+
+ /// getFixedStack - Return a MachinePointerInfo record that refers to the
+ /// the specified FrameIndex.
+ static MachinePointerInfo getFixedStack(int FI, int64_t offset = 0);
};