[llvm] [SPIRV] Emit NonSemantic DebugGlobalVariable (PR #207230)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 06:12:58 PDT 2026
================
@@ -75,6 +77,21 @@ class SPIRVNonSemanticDebugHandler : public DebugHandlerBase {
// in beginModule() for DebugFunctionDeclaration emission.
SmallVector<const DISubprogram *> SubprogramDeclarations;
+ // DIGlobalVariable nodes for DebugGlobalVariable emission; SmallSetVector
+ // dedupes (see beginModule()).
+ SmallSetVector<const DIGlobalVariable *, 8> GlobalVariables;
----------------
mgcarrasco wrote:
No, but the template field is mandatory. The container can grow past 8, this is just the size of the initial buffer size. Happy to change it if you think there is a better value.
https://github.com/llvm/llvm-project/pull/207230
More information about the llvm-commits
mailing list