[GlobalISel] Make GLoadStore::getMemSize[InBits]() const.
authorAmara Emerson <amara@apple.com>
Fri, 6 Aug 2021 07:06:13 +0000 (00:06 -0700)
committerAmara Emerson <amara@apple.com>
Fri, 6 Aug 2021 07:10:47 +0000 (00:10 -0700)
llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h

index 0fe9ac3..2b0ef6c 100644 (file)
@@ -57,9 +57,9 @@ public:
   bool isUnordered() const { return getMMO().isUnordered(); }
 
   /// Returns the size in bytes of the memory access.
-  uint64_t getMemSize() { return getMMO().getSize();
+  uint64_t getMemSize() const { return getMMO().getSize();
   } /// Returns the size in bits of the memory access.
-  uint64_t getMemSizeInBits() { return getMMO().getSizeInBits(); }
+  uint64_t getMemSizeInBits() const { return getMMO().getSizeInBits(); }
 
   static bool classof(const MachineInstr *MI) {
     switch (MI->getOpcode()) {