aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CFIInstrInserter.cpp
diff options
context:
space:
mode:
authorRamNalamothu <VenkataRamanaiah.Nalamothu@amd.com>2021-06-14 06:57:58 +0530
committerRamNalamothu <VenkataRamanaiah.Nalamothu@amd.com>2021-06-14 08:51:50 +0530
commit167e7afcd52bc1438d60320ec1d1bc53b8eae4a3 (patch)
treedc3cb0f9a309f05e26771ff7cbce689425c409a1 /llvm/lib/CodeGen/CFIInstrInserter.cpp
parentdcbbc69cc58294cedc865259c6fd5ba80ecd9bd3 (diff)
downloadllvm-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/CFIInstrInserter.cpp')
-rw-r--r--llvm/lib/CodeGen/CFIInstrInserter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CFIInstrInserter.cpp b/llvm/lib/CodeGen/CFIInstrInserter.cpp
index c624441..1c2e3f9 100644
--- a/llvm/lib/CodeGen/CFIInstrInserter.cpp
+++ b/llvm/lib/CodeGen/CFIInstrInserter.cpp
@@ -219,6 +219,14 @@ void CFIInstrInserter::calculateOutgoingCFAInfo(MBBCFAInfo &MBBInfo) {
case MCCFIInstruction::OpRestore:
CSRRestored.set(CFI.getRegister());
break;
+ case MCCFIInstruction::OpLLVMDefAspaceCfa:
+ // TODO: Add support for handling cfi_def_aspace_cfa.
+#ifndef NDEBUG
+ report_fatal_error(
+ "Support for cfi_llvm_def_aspace_cfa not implemented! Value of CFA "
+ "may be incorrect!\n");
+#endif
+ break;
case MCCFIInstruction::OpRememberState:
// TODO: Add support for handling cfi_remember_state.
#ifndef NDEBUG