From a617c9162dcc23e1b974c7e30509ef4e303fce33 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Mon, 17 Aug 2015 22:05:15 +0000 Subject: MIR Serialization: Serialize the memory operand's TBAA metadata node. llvm-svn: 245244 --- llvm/lib/CodeGen/MIRPrinter.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp') 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 << ')'; } -- cgit v1.2.3