[llvm] [SPIRV] Emit NonSemantic DebugGlobalVariable (PR #207230)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 04:31:23 PDT 2026
================
@@ -561,6 +586,90 @@ std::optional<MCRegister> SPIRVNonSemanticDebugHandler::mapDISignatureTypeToReg(
return lookupOptReg(DebugTypeRegs, Ty);
}
+std::optional<MCRegister>
+SPIRVNonSemanticDebugHandler::resolveGlobalVariableParent(
+ const DIGlobalVariable *GV) const {
+ // TODO: When this backend emits debug instructions for namespace, subprogram,
+ // and module scopes, return GV->getScope()'s debug id.
----------------
mgcarrasco wrote:
I can open an issue once right after merging so we keep track that once the other scopes are supported, the TODO must be implemented.
https://github.com/llvm/llvm-project/pull/207230
More information about the llvm-commits
mailing list