llvm.org GIT mirror llvm / 9bd42e3
Print the address space of a MachineMemOperand git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197288 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 6 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
133133 /// number.
134134 int64_t getOffset() const { return PtrInfo.Offset; }
135135
136 unsigned getAddrSpace() const { return PtrInfo.getAddrSpace(); }
137
136138 /// getSize - Return the size in bytes of the memory reference.
137139 uint64_t getSize() const { return Size; }
138140
480480 else
481481 WriteAsOperand(OS, MMO.getValue(), /*PrintType=*/false);
482482
483 unsigned AS = MMO.getAddrSpace();
484 if (AS != 0)
485 OS << "(addrspace=" << AS << ')';
486
483487 // If the alignment of the memory reference itself differs from the alignment
484488 // of the base pointer, print the base alignment explicitly, next to the base
485489 // pointer.