llvm.org GIT mirror llvm / 45d998b
[EarlyCSE] Constify ParseMemoryInst methods (NFC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249400 91177308-0d34-0410-b5e6-96231b3b80d8 Arnaud A. de Grandmaison 4 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
409409 Ptr = SI->getPointerOperand();
410410 }
411411 }
412 bool isLoad() { return Load; }
413 bool isStore() { return Store; }
414 bool isVolatile() { return Vol; }
415 bool isMatchingMemLoc(const ParseMemoryInst &Inst) {
412 bool isLoad() const { return Load; }
413 bool isStore() const { return Store; }
414 bool isVolatile() const { return Vol; }
415 bool isMatchingMemLoc(const ParseMemoryInst &Inst) const {
416416 return Ptr == Inst.Ptr && MatchingId == Inst.MatchingId;
417417 }
418 bool isValid() { return Ptr != nullptr; }
419 int getMatchingId() { return MatchingId; }
420 Value *getPtr() { return Ptr; }
421 bool mayReadFromMemory() { return MayReadFromMemory; }
422 bool mayWriteToMemory() { return MayWriteToMemory; }
418 bool isValid() const { return Ptr != nullptr; }
419 int getMatchingId() const { return MatchingId; }
420 Value *getPtr() const { return Ptr; }
421 bool mayReadFromMemory() const { return MayReadFromMemory; }
422 bool mayWriteToMemory() const { return MayWriteToMemory; }
423423
424424 private:
425425 bool Load;