diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-12-14 00:24:02 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-12-14 00:24:02 +0000 |
commit | 68c38fd6d17307f19b2d2b3d3392c23ec5528dd9 (patch) | |
tree | 2c8f1a57a146d47b92e2d7b88236a2f6aec90748 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | fd5c4b2c096851205443479135a038bdc97c8cb2 (diff) | |
download | bcm5719-llvm-68c38fd6d17307f19b2d2b3d3392c23ec5528dd9.tar.gz bcm5719-llvm-68c38fd6d17307f19b2d2b3d3392c23ec5528dd9.zip |
Print the address space of a MachineMemOperand
llvm-svn: 197288
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 295b450a0f2..8d89276e73d 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -481,6 +481,10 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) { else WriteAsOperand(OS, MMO.getValue(), /*PrintType=*/false); + unsigned AS = MMO.getAddrSpace(); + if (AS != 0) + OS << "(addrspace=" << AS << ')'; + // If the alignment of the memory reference itself differs from the alignment // of the base pointer, print the base alignment explicitly, next to the base // pointer. |