[llvm] [CodeGen] Update for scalable MemoryType in MMO (PR #70452)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 08:06:53 PST 2023
================
@@ -233,13 +239,15 @@ class MachineMemOperand {
LLT getMemoryType() const { return MemoryType; }
/// Return the size in bytes of the memory reference.
- uint64_t getSize() const {
- return MemoryType.isValid() ? MemoryType.getSizeInBytes() : ~UINT64_C(0);
+ TypeSize getSize() const {
+ return MemoryType.isValid() ? MemoryType.getSizeInBytes()
+ : TypeSize::Fixed(~UINT64_C(0));
}
/// Return the size in bits of the memory reference.
- uint64_t getSizeInBits() const {
- return MemoryType.isValid() ? MemoryType.getSizeInBits() : ~UINT64_C(0);
+ TypeSize getSizeInBits() const {
+ return MemoryType.isValid() ? MemoryType.getSizeInBits()
+ : TypeSize::Fixed(~UINT64_C(0));
----------------
RKSimon wrote:
Is there any equivalent of MemoryLocation::UnknownSize we can use here?
https://github.com/llvm/llvm-project/pull/70452
More information about the llvm-commits
mailing list