diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-20 15:58:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-20 15:58:01 +0000 |
commit | b8d2f550b84523e8a73198f98e5d450ec3b4fee7 (patch) | |
tree | d81844ff03c7e1c712621cd6d9b46d7fbb013767 /include/llvm/CodeGen/MachineMemOperand.h | |
parent | cb0fe7c226ba83ebdbc8d245e0a983b69e0a1954 (diff) |
Change the FoldingSetNodeID usage for objects which carry
alignment and volatility information, such as loads and
stores, to reduce the number of integer values added to
the FoldingSetNodeID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineMemOperand.h')
-rw-r--r-- | include/llvm/CodeGen/MachineMemOperand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineMemOperand.h b/include/llvm/CodeGen/MachineMemOperand.h index b9c0e60f22..4388c0aab2 100644 --- a/include/llvm/CodeGen/MachineMemOperand.h +++ b/include/llvm/CodeGen/MachineMemOperand.h @@ -19,6 +19,7 @@ namespace llvm { class Value; +class FoldingSetNodeID; //===----------------------------------------------------------------------===// /// MachineMemOperand - A description of a memory reference used in the backend. @@ -74,6 +75,10 @@ public: bool isLoad() const { return Flags & MOLoad; } bool isStore() const { return Flags & MOStore; } bool isVolatile() const { return Flags & MOVolatile; } + + /// Profile - Gather unique data for the object. + /// + void Profile(FoldingSetNodeID &ID) const; }; } // End llvm namespace |