diff options
author | RamNalamothu <VenkataRamanaiah.Nalamothu@amd.com> | 2021-06-14 06:57:58 +0530 |
---|---|---|
committer | RamNalamothu <VenkataRamanaiah.Nalamothu@amd.com> | 2021-06-14 08:51:50 +0530 |
commit | 167e7afcd52bc1438d60320ec1d1bc53b8eae4a3 (patch) | |
tree | dc3cb0f9a309f05e26771ff7cbce689425c409a1 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | dcbbc69cc58294cedc865259c6fd5ba80ecd9bd3 (diff) | |
download | llvm-167e7afcd52bc1438d60320ec1d1bc53b8eae4a3.zip llvm-167e7afcd52bc1438d60320ec1d1bc53b8eae4a3.tar.gz llvm-167e7afcd52bc1438d60320ec1d1bc53b8eae4a3.tar.bz2 |
Implement DW_CFA_LLVM_* for Heterogeneous Debugging
Add support in MC/MIR for writing/parsing, and DebugInfo.
This is part of the Extensions for Heterogeneous Debugging defined at
https://llvm.org/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.html
Specifically the CFI instructions implemented here are defined at
https://llvm.org/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.html#cfa-definition-instructions
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D76877
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index 766915c..c0ae0d2 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -653,6 +653,14 @@ static void printCFI(raw_ostream &OS, const MCCFIInstruction &CFI, printCFIRegister(CFI.getRegister(), OS, TRI); OS << ", " << CFI.getOffset(); break; + case MCCFIInstruction::OpLLVMDefAspaceCfa: + OS << "llvm_def_aspace_cfa "; + if (MCSymbol *Label = CFI.getLabel()) + MachineOperand::printSymbol(OS, *Label); + printCFIRegister(CFI.getRegister(), OS, TRI); + OS << ", " << CFI.getOffset(); + OS << ", " << CFI.getAddressSpace(); + break; case MCCFIInstruction::OpRelOffset: OS << "rel_offset "; if (MCSymbol *Label = CFI.getLabel()) |