aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmara Emerson <amara@apple.com>2021-08-06 00:06:13 -0700
committerAmara Emerson <amara@apple.com>2021-08-06 00:10:47 -0700
commit2d9af3db79e623d59da4557c2038535f64135402 (patch)
tree3296f48f4c94df86e9b4cb2ae90589ee4936beb0
parent4b8806d9576959dc75a42f0b461c83157109c3b1 (diff)
downloadllvm-2d9af3db79e623d59da4557c2038535f64135402.zip
llvm-2d9af3db79e623d59da4557c2038535f64135402.tar.gz
llvm-2d9af3db79e623d59da4557c2038535f64135402.tar.bz2
[GlobalISel] Make GLoadStore::getMemSize[InBits]() const.
-rw-r--r--llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h4
1 files changed, 2 insertions, 2 deletions
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()) {