diff options
author | Arnaud A. de Grandmaison <arnaud.degrandmaison@arm.com> | 2015-10-06 13:35:30 +0000 |
---|---|---|
committer | Arnaud A. de Grandmaison <arnaud.degrandmaison@arm.com> | 2015-10-06 13:35:30 +0000 |
commit | 6fd488b15668be98fef37738dd74fcacdb8765a0 (patch) | |
tree | d6139d4fc019c49dfc015b131ab47393eaf5210b /llvm/lib/Transforms/Scalar | |
parent | aaa4080d21ecc6a68221ddea558726950c719b17 (diff) | |
download | bcm5719-llvm-6fd488b15668be98fef37738dd74fcacdb8765a0.tar.gz bcm5719-llvm-6fd488b15668be98fef37738dd74fcacdb8765a0.zip |
[EarlyCSE] Constify ParseMemoryInst methods (NFC).
llvm-svn: 249400
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/EarlyCSE.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp index 017b9cafe62..9ac3c2cdab2 100644 --- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp @@ -410,17 +410,17 @@ private: Ptr = SI->getPointerOperand(); } } - bool isLoad() { return Load; } - bool isStore() { return Store; } - bool isVolatile() { return Vol; } - bool isMatchingMemLoc(const ParseMemoryInst &Inst) { + bool isLoad() const { return Load; } + bool isStore() const { return Store; } + bool isVolatile() const { return Vol; } + bool isMatchingMemLoc(const ParseMemoryInst &Inst) const { return Ptr == Inst.Ptr && MatchingId == Inst.MatchingId; } - bool isValid() { return Ptr != nullptr; } - int getMatchingId() { return MatchingId; } - Value *getPtr() { return Ptr; } - bool mayReadFromMemory() { return MayReadFromMemory; } - bool mayWriteToMemory() { return MayWriteToMemory; } + bool isValid() const { return Ptr != nullptr; } + int getMatchingId() const { return MatchingId; } + Value *getPtr() const { return Ptr; } + bool mayReadFromMemory() const { return MayReadFromMemory; } + bool mayWriteToMemory() const { return MayWriteToMemory; } private: bool Load; |