[llvm-branch-commits] [llvm] [WIP][SPIRV][Debug Info] Add support for emitting DebugFunction debug info instructions (PR #183122)
Manuel Carrasco via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 6 06:40:18 PST 2026
================
@@ -373,8 +439,160 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
return true;
}
+// Emits the SPIRV DebugFunction instruction for a given MachineFunction.
+bool SPIRVEmitNonSemanticDI::emitFunctionDI(MachineFunction &MF) {
+ const Function &F = MF.getFunction();
+
+ DISubprogram *SP = F.getSubprogram();
+ // DISubProgram is not available, don't translate
+ if (!SP) {
----------------
mgcarrasco wrote:
Thanks. I didn't know both cases were allowed by clang-format.
https://github.com/llvm/llvm-project/pull/183122
More information about the llvm-branch-commits
mailing list