From: Amara Emerson Date: Fri, 6 Aug 2021 07:06:13 +0000 (-0700) Subject: [GlobalISel] Make GLoadStore::getMemSize[InBits]() const. X-Git-Tag: upstream/15.0.7~34507 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d9af3db79e623d59da4557c2038535f64135402;p=platform%2Fupstream%2Fllvm.git [GlobalISel] Make GLoadStore::getMemSize[InBits]() const. --- diff --git a/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h b/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h index 0fe9ac3..2b0ef6c 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h @@ -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()) {