[llvm] 2d9af3d - [GlobalISel] Make GLoadStore::getMemSize[InBits]() const.

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 6 00:11:21 PDT 2021


Author: Amara Emerson
Date: 2021-08-06T00:10:47-07:00
New Revision: 2d9af3db79e623d59da4557c2038535f64135402

URL: https://github.com/llvm/llvm-project/commit/2d9af3db79e623d59da4557c2038535f64135402
DIFF: https://github.com/llvm/llvm-project/commit/2d9af3db79e623d59da4557c2038535f64135402.diff

LOG: [GlobalISel] Make GLoadStore::getMemSize[InBits]() const.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h b/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
index 0fe9ac38c4df..2b0ef6c3af57 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
@@ -57,9 +57,9 @@ class GLoadStore : public GenericMachineInstr {
   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()) {


        


More information about the llvm-commits mailing list