diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-08-17 22:05:15 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-08-17 22:05:15 +0000 |
commit | a617c9162dcc23e1b974c7e30509ef4e303fce33 (patch) | |
tree | 8092334818f2afc9894269449bf4138bb0324e7e /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 05ddbffbf3eba8ef2cac067b0cf8e9c53b78855e (diff) | |
download | bcm5719-llvm-a617c9162dcc23e1b974c7e30509ef4e303fce33.tar.gz bcm5719-llvm-a617c9162dcc23e1b974c7e30509ef4e303fce33.zip |
MIR Serialization: Serialize the memory operand's TBAA metadata node.
llvm-svn: 245244
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 248db52790e..b7292f3e151 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -777,7 +777,14 @@ void MIPrinter::print(const MachineMemOperand &Op) { printOffset(Op.getOffset()); if (Op.getBaseAlignment() != Op.getSize()) OS << ", align " << Op.getBaseAlignment(); - // TODO: Print the metadata attributes. + auto AAInfo = Op.getAAInfo(); + if (AAInfo.TBAA) { + OS << ", !tbaa "; + AAInfo.TBAA->printAsOperand(OS, MST); + } + // TODO: Print AA Scope metadata. + // TODO: Print AA NoAlias metadata. + // TODO: Print the ranges metadata. OS << ')'; } |