[llvm] [SPIRV] Emit NonSemantic DebugTypeComposite and DebugTypeMember. (PR #211638)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 24 03:28:11 PDT 2026
================
@@ -742,6 +856,28 @@ void SPIRVNonSemanticDebugHandler::emitNonSemanticDebugStrings(
ScopeToPathOpStringReg[SP] = emitOpStringIfNew(getDebugFullPath(SP), MAI);
}
+ // Cache the OpStrings each DebugTypeComposite and its DebugTypeMembers use:
+ // the composite name, identifier (linkage name), and path, plus each member
+ // name and path.
+ for (const DICompositeType *CT : CompositeTypes) {
+ emitOpStringIfNew(CT->getName(), MAI);
+ emitOpStringIfNew(CT->getIdentifier(), MAI);
+ MCRegister PathReg =
----------------
mgcarrasco wrote:
Just to follow, is PathReg computed here in case the getFile() is null, right?
https://github.com/llvm/llvm-project/pull/211638
More information about the llvm-commits
mailing list