diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2024-04-24 08:52:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 08:52:25 +0200 |
commit | cf328ff96daf5e676fb51ac86e550af7fd689fec (patch) | |
tree | 5ddf3b93433e9fe04a349663d1f1f50d0721f28b /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 805d5637a0d50caa073f435b55940c1338aae0fc (diff) | |
download | llvm-cf328ff96daf5e676fb51ac86e550af7fd689fec.zip llvm-cf328ff96daf5e676fb51ac86e550af7fd689fec.tar.gz llvm-cf328ff96daf5e676fb51ac86e550af7fd689fec.tar.bz2 |
[IR] Memory Model Relaxation Annotations (#78569)
Implements the core/target-agnostic components of Memory Model
Relaxation Annotations.
RFC:
https://discourse.llvm.org/t/rfc-mmras-memory-model-relaxation-annotations/76361/5
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index bf3aee6..6751fcf 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -856,6 +856,13 @@ void MIPrinter::print(const MachineInstr &MI) { PCSections->printAsOperand(OS, MST); NeedComma = true; } + if (MDNode *MMRA = MI.getMMRAMetadata()) { + if (NeedComma) + OS << ','; + OS << " mmra "; + MMRA->printAsOperand(OS, MST); + NeedComma = true; + } if (uint32_t CFIType = MI.getCFIType()) { if (NeedComma) OS << ','; |