// Compilation unit
case dwarf::DW_TAG_compile_unit:
- return transDbgCompilationUnit(cast<DICompileUnit>(DIEntry));
+ return transDbgCompileUnit(cast<DICompileUnit>(DIEntry));
// Templates
case dwarf::DW_TAG_template_type_parameter:
// Compilation unit
-SPIRVEntry *
-LLVMToSPIRVDbgTran::transDbgCompilationUnit(const DICompileUnit *CU) {
+SPIRVEntry *LLVMToSPIRVDbgTran::transDbgCompileUnit(const DICompileUnit *CU) {
using namespace SPIRVDebug::Operand::CompilationUnit;
SPIRVWordVec Ops(OperandCount);
Ops[SPIRVDebugInfoVersionIdx] = SPIRVDebug::DebugInfoVersion;
Ops[FlagsIdx] = transDebugFlags(DT);
if (isNonSemanticDebugInfo())
transformToConstant(Ops, {FlagsIdx});
- return BM->addDebugInfo(SPIRVDebug::Inheritance, getVoidTy(), Ops);
+ return BM->addDebugInfo(SPIRVDebug::TypeInheritance, getVoidTy(), Ops);
}
SPIRVEntry *LLVMToSPIRVDbgTran::transDbgPtrToMember(const DIDerivedType *DT) {
SPIRVEntry *
LLVMToSPIRVDbgTran::transDbgTemplateParams(DITemplateParameterArray TPA,
const SPIRVEntry *Target) {
- using namespace SPIRVDebug::Operand::Template;
+ using namespace SPIRVDebug::Operand::TypeTemplate;
SPIRVWordVec Ops(MinOperandCount);
Ops[TargetIdx] = Target->getId();
for (DITemplateParameter *TP : TPA) {
SPIRVEntry *
LLVMToSPIRVDbgTran::transDbgTemplateParameter(const DITemplateParameter *TP) {
- using namespace SPIRVDebug::Operand::TemplateParameter;
+ using namespace SPIRVDebug::Operand::TypeTemplateParameter;
SPIRVWordVec Ops(OperandCount);
Ops[NameIdx] = BM->getString(TP->getName().str())->getId();
Ops[TypeIdx] = transDbgEntry(TP->getType())->getId();
SPIRVEntry *LLVMToSPIRVDbgTran::transDbgTemplateTemplateParameter(
const DITemplateValueParameter *TVP) {
- using namespace SPIRVDebug::Operand::TemplateTemplateParameter;
+ using namespace SPIRVDebug::Operand::TypeTemplateTemplateParameter;
SPIRVWordVec Ops(OperandCount);
assert(isa<MDString>(TVP->getValue()));
MDString *Val = cast<MDString>(TVP->getValue());
SPIRVEntry *LLVMToSPIRVDbgTran::transDbgTemplateParameterPack(
const DITemplateValueParameter *TVP) {
- using namespace SPIRVDebug::Operand::TemplateParameterPack;
+ using namespace SPIRVDebug::Operand::TypeTemplateParameterPack;
SPIRVWordVec Ops(MinOperandCount);
assert(isa<MDNode>(TVP->getValue()));
MDNode *Params = cast<MDNode>(TVP->getValue());
SPIRVEntry *DebugFunc = nullptr;
if (!Func->isDefinition()) {
- DebugFunc = BM->addDebugInfo(SPIRVDebug::FunctionDecl, getVoidTy(), Ops);
+ DebugFunc =
+ BM->addDebugInfo(SPIRVDebug::FunctionDeclaration, getVoidTy(), Ops);
} else {
// Here we add operands specific function definition
using namespace SPIRVDebug::Operand::Function;
SPIRVId getDebugInfoNoneId();
// Compilation unit
- SPIRVEntry *transDbgCompilationUnit(const DICompileUnit *CU);
+ SPIRVEntry *transDbgCompileUnit(const DICompileUnit *CU);
/// The following methods (till the end of the file) implement translation
/// of debug instrtuctions described in the spec.
}
DICompileUnit *
-SPIRVToLLVMDbgTran::transCompileUnit(const SPIRVExtInst *DebugInst) {
+SPIRVToLLVMDbgTran::transCompilationUnit(const SPIRVExtInst *DebugInst) {
const SPIRVWordVec &Ops = DebugInst->getArguments();
using namespace SPIRVDebug::Operand::CompilationUnit;
DINodeArray SubscriptArray = Builder.getOrCreateArray(Subscripts);
size_t Size = getDerivedSizeInBits(BaseTy) * TotalCount;
- auto TransOperand = [&](SPIRVWord Idx) -> PointerUnion<DIExpression *,
- DIVariable *> {
+ auto TransOperand =
+ [&](SPIRVWord Idx) -> PointerUnion<DIExpression *, DIVariable *> {
if (!getDbgInst<SPIRVDebug::DebugInfoNone>(Ops[Idx])) {
if (const auto *GV = getDbgInst<SPIRVDebug::GlobalVariable>(Ops[Idx]))
return transDebugInst<DIGlobalVariable>(GV);
// Here we create fake array of template parameters. If it was plain nullptr,
// the template parameter operand would be removed in DISubprogram::getImpl.
- // But we want it to be there, because if there is DebugTemplate instruction
- // refering to this function, TransTemplate method must be able to replace the
- // template parameter operand, thus it must be in the operands list.
+ // But we want it to be there, because if there is DebugTypeTemplate
+ // instruction refering to this function, transTypeTemplate method must be
+ // able to replace the template parameter operand, thus it must be in the
+ // operands list.
SmallVector<llvm::Metadata *, 8> Elts;
DINodeArray TParams = Builder.getOrCreateArray(Elts);
llvm::DITemplateParameterArray TParamsArray = TParams.get();
// Here we create fake array of template parameters. If it was plain nullptr,
// the template parameter operand would be removed in DISubprogram::getImpl.
- // But we want it to be there, because if there is DebugTemplate instruction
- // refering to this function, TransTemplate method must be able to replace the
- // template parameter operand, thus it must be in the operands list.
+ // But we want it to be there, because if there is DebugTypeTemplate
+ // instruction refering to this function, transTypeTemplate method must be
+ // able to replace the template parameter operand, thus it must be in the
+ // operands list.
SmallVector<llvm::Metadata *, 8> Elts;
DINodeArray TParams = Builder.getOrCreateArray(Elts);
llvm::DITemplateParameterArray TParamsArray = TParams.get();
return Builder.createTypedef(Ty, Alias, File, LineNo, Scope);
}
-DINode *SPIRVToLLVMDbgTran::transInheritance(const SPIRVExtInst *DebugInst) {
+DINode *
+SPIRVToLLVMDbgTran::transTypeInheritance(const SPIRVExtInst *DebugInst) {
using namespace SPIRVDebug::Operand::TypeInheritance;
const SPIRVWordVec &Ops = DebugInst->getArguments();
assert(Ops.size() >= OperandCount && "Invalid number of operands");
}
DINode *
-SPIRVToLLVMDbgTran::transTemplateParameter(const SPIRVExtInst *DebugInst) {
- using namespace SPIRVDebug::Operand::TemplateParameter;
+SPIRVToLLVMDbgTran::transTypeTemplateParameter(const SPIRVExtInst *DebugInst) {
+ using namespace SPIRVDebug::Operand::TypeTemplateParameter;
const SPIRVWordVec &Ops = DebugInst->getArguments();
assert(Ops.size() >= OperandCount && "Invalid number of operands");
StringRef Name = getString(Ops[NameIdx]);
return Builder.createTemplateTypeParameter(Context, Name, Ty, false);
}
-DINode *SPIRVToLLVMDbgTran::transTemplateTemplateParameter(
+DINode *SPIRVToLLVMDbgTran::transTypeTemplateTemplateParameter(
const SPIRVExtInst *DebugInst) {
- using namespace SPIRVDebug::Operand::TemplateTemplateParameter;
+ using namespace SPIRVDebug::Operand::TypeTemplateTemplateParameter;
const SPIRVWordVec &Ops = DebugInst->getArguments();
assert(Ops.size() >= OperandCount && "Invalid number of operands");
StringRef Name = getString(Ops[NameIdx]);
TemplName);
}
-DINode *
-SPIRVToLLVMDbgTran::transTemplateParameterPack(const SPIRVExtInst *DebugInst) {
- using namespace SPIRVDebug::Operand::TemplateParameterPack;
+DINode *SPIRVToLLVMDbgTran::transTypeTemplateParameterPack(
+ const SPIRVExtInst *DebugInst) {
+ using namespace SPIRVDebug::Operand::TypeTemplateParameterPack;
const SPIRVWordVec &Ops = DebugInst->getArguments();
assert(Ops.size() >= MinOperandCount && "Invalid number of operands");
StringRef Name = getString(Ops[NameIdx]);
return Builder.createTemplateParameterPack(Context, Name, nullptr, Pack);
}
-MDNode *SPIRVToLLVMDbgTran::transTemplate(const SPIRVExtInst *DebugInst) {
- using namespace SPIRVDebug::Operand::Template;
+MDNode *SPIRVToLLVMDbgTran::transTypeTemplate(const SPIRVExtInst *DebugInst) {
+ using namespace SPIRVDebug::Operand::TypeTemplate;
const SPIRVWordVec &Ops = DebugInst->getArguments();
const size_t NumOps = Ops.size();
assert(NumOps >= MinOperandCount && "Invalid number of operands");
return nullptr;
case SPIRVDebug::CompilationUnit:
- return transCompileUnit(DebugInst);
+ return transCompilationUnit(DebugInst);
case SPIRVDebug::TypeBasic:
return transTypeBasic(DebugInst);
case SPIRVDebug::Function:
return transFunction(DebugInst);
- case SPIRVDebug::FunctionDecl:
+ case SPIRVDebug::FunctionDeclaration:
return transFunctionDecl(DebugInst);
case SPIRVDebug::GlobalVariable:
case SPIRVDebug::InlinedAt:
return transDebugInlined(DebugInst);
- case SPIRVDebug::Inheritance:
- return transInheritance(DebugInst);
+ case SPIRVDebug::TypeInheritance:
+ return transTypeInheritance(DebugInst);
case SPIRVDebug::TypeTemplateParameter:
- return transTemplateParameter(DebugInst);
+ return transTypeTemplateParameter(DebugInst);
case SPIRVDebug::TypeTemplateTemplateParameter:
- return transTemplateTemplateParameter(DebugInst);
+ return transTypeTemplateTemplateParameter(DebugInst);
case SPIRVDebug::TypeTemplateParameterPack:
- return transTemplateParameterPack(DebugInst);
+ return transTypeTemplateParameterPack(DebugInst);
case SPIRVDebug::TypeTemplate:
- return transTemplate(DebugInst);
+ return transTypeTemplate(DebugInst);
case SPIRVDebug::ImportedEntity:
return transImportedEntry(DebugInst);
MDNode *transDebugInlined(const SPIRVExtInst *Inst);
- DICompileUnit *transCompileUnit(const SPIRVExtInst *DebugInst);
+ DICompileUnit *transCompilationUnit(const SPIRVExtInst *DebugInst);
DIBasicType *transTypeBasic(const SPIRVExtInst *DebugInst);
DINode *transTypeEnum(const SPIRVExtInst *DebugInst);
- DINode *transTemplateParameter(const SPIRVExtInst *DebugInst);
- DINode *transTemplateTemplateParameter(const SPIRVExtInst *DebugInst);
- DINode *transTemplateParameterPack(const SPIRVExtInst *DebugInst);
+ DINode *transTypeTemplateParameter(const SPIRVExtInst *DebugInst);
+ DINode *transTypeTemplateTemplateParameter(const SPIRVExtInst *DebugInst);
+ DINode *transTypeTemplateParameterPack(const SPIRVExtInst *DebugInst);
- MDNode *transTemplate(const SPIRVExtInst *DebugInst);
+ MDNode *transTypeTemplate(const SPIRVExtInst *DebugInst);
DINode *transTypeFunction(const SPIRVExtInst *DebugInst);
DINode *transTypedef(const SPIRVExtInst *DebugInst);
- DINode *transInheritance(const SPIRVExtInst *DebugInst);
+ DINode *transTypeInheritance(const SPIRVExtInst *DebugInst);
DINode *transImportedEntry(const SPIRVExtInst *DebugInst);
TypeEnum = 9,
TypeComposite = 10,
TypeMember = 11,
- Inheritance = 12,
+ TypeInheritance = 12,
TypePtrToMember = 13,
TypeTemplate = 14,
TypeTemplateParameter = 15,
TypeTemplateParameterPack = 16,
TypeTemplateTemplateParameter = 17,
GlobalVariable = 18,
- FunctionDecl = 19,
+ FunctionDeclaration = 19,
Function = 20,
LexicalBlock = 21,
LexicalBlockDiscriminator = 22,
};
}
-namespace Template {
+namespace TypeTemplate {
enum {
TargetIdx = 0,
FirstParameterIdx = 1,
};
}
-namespace TemplateParameter {
+namespace TypeTemplateParameter {
enum {
NameIdx = 0,
TypeIdx = 1,
};
}
-namespace TemplateTemplateParameter {
+namespace TypeTemplateTemplateParameter {
enum {
NameIdx = 0,
TemplateNameIdx = 1,
};
}
-namespace TemplateParameterPack {
+namespace TypeTemplateParameterPack {
enum {
NameIdx = 0,
SourceIdx = 1,
typedef SPIRVDebug::Instruction SPIRVDebugExtOpKind;
template <> inline void SPIRVMap<SPIRVDebugExtOpKind, std::string>::init() {
add(SPIRVDebug::DebugInfoNone, "DebugInfoNone");
- add(SPIRVDebug::CompilationUnit, "DebugCompileUnit");
+ add(SPIRVDebug::CompilationUnit, "DebugCompilationUnit");
add(SPIRVDebug::Source, "DebugSource");
add(SPIRVDebug::TypeBasic, "DebugTypeBasic");
add(SPIRVDebug::TypePointer, "DebugTypePointer");
add(SPIRVDebug::TypeMember, "DebugTypeMember");
add(SPIRVDebug::TypeEnum, "DebugTypeEnum");
add(SPIRVDebug::Typedef, "DebugTypedef");
- add(SPIRVDebug::TypeTemplateParameter, "DebugTemplateParameter");
- add(SPIRVDebug::TypeTemplateParameterPack, "DebugTemplateParameterPack");
+ add(SPIRVDebug::TypeTemplateParameter, "DebugTypeTemplateParameter");
+ add(SPIRVDebug::TypeTemplateParameterPack, "DebugTypeTemplateParameterPack");
add(SPIRVDebug::TypeTemplateTemplateParameter,
- "DebugTemplateTemplateParameter");
- add(SPIRVDebug::TypeTemplate, "DebugTemplate");
+ "DebugTypeTemplateTemplateParameter");
+ add(SPIRVDebug::TypeTemplate, "DebugTypeTemplate");
add(SPIRVDebug::TypePtrToMember, "DebugTypePtrToMember,");
add(SPIRVDebug::TypeSubrange, "DebugTypeSubrange");
add(SPIRVDebug::TypeString, "DebugTypeString");
- add(SPIRVDebug::Inheritance, "DebugInheritance");
+ add(SPIRVDebug::TypeInheritance, "DebugTypeInheritance");
add(SPIRVDebug::Function, "DebugFunction");
- add(SPIRVDebug::FunctionDecl, "DebugFunctionDecl");
+ add(SPIRVDebug::FunctionDeclaration, "DebugFunctionDeclaration");
add(SPIRVDebug::LexicalBlock, "DebugLexicalBlock");
- add(SPIRVDebug::LexicalBlockDiscriminator, "LexicalBlockDiscriminator");
+ add(SPIRVDebug::LexicalBlockDiscriminator, "DebugLexicalBlockDiscriminator");
add(SPIRVDebug::LocalVariable, "DebugLocalVariable");
add(SPIRVDebug::InlinedVariable, "DebugInlinedVariable");
add(SPIRVDebug::GlobalVariable, "DebugGlobalVariable");
// Check for 2 things:
// - After round trip translation function definition has !dbg metadata attached
// specifically if -gline-tables-only was used for Clang
-// - Parent operand of DebugFunction is DebugCompileUnit, not an OpString, even
-// if in LLVM IR it points to a DIFile instead of DICompileUnit.
+// - Parent operand of DebugFunction is DebugCompilationUnit, not an OpString,
+// even if in LLVM IR it points to a DIFile instead of DICompileUnit.
// RUN: %clang_cc1 %s -cl-std=clc++ -emit-llvm-bc -triple spir -debug-info-kind=line-tables-only -O0 -o - -no-opaque-pointers | llvm-spirv -o %t.spv
// RUN: llvm-spirv %t.spv -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
// CHECK-SPIRV: String [[foo:[0-9]+]] "foo"
// CHECK-SPIRV: String [[k:[0-9]+]] "k"
-// CHECK-SPIRV: [[CU:[0-9]+]] {{[0-9]+}} DebugCompileUnit
+// CHECK-SPIRV: [[CU:[0-9]+]] {{[0-9]+}} DebugCompilationUnit
// CHECK-SPIRV: DebugFunction [[foo]] {{.*}} [[CU]] {{.*}} [[foo_id:[0-9]+]] {{[0-9]+}} {{$}}
// CHECK-SPIRV: DebugFunction [[k]] {{.*}} [[CU]] {{.*}} [[k_id:[0-9]+]] {{[0-9]+}} {{$}}
5 ExtInst 3 27 2 DebugInfoNone
7 ExtInst 3 30 2 DebugSource 29 27
-9 ExtInst 3 31 2 DebugCompileUnit 65536 4 30 21
+9 ExtInst 3 31 2 DebugCompilationUnit 65536 4 30 21
7 ExtInst 3 32 2 DebugTypeFunction 0 27
8 ExtInst 3 35 2 DebugTypeBasic 33 34 3
7 ExtInst 3 36 2 DebugTypeArray 35 11 ; Count = 1000
8 ExtInst 3 37 2 DebugTypePointer 36 4294967295 0
16 ExtInst 3 40 2 DebugFunction 38 32 30 25 0 31 39 44 25 27 27
12 ExtInst 3 42 2 DebugLocalVariable 41 37 30 15 0 40 0
-6 ExtInst 3 43 2 DebugTemplate 40
+6 ExtInst 3 43 2 DebugTypeTemplate 40
6 ExtInst 3 44 2 DebugOperation 0
6 ExtInst 3 45 2 DebugExpression 44
5 ExtInst 3 7 2 DebugInfoNone
7 ExtInst 3 10 2 DebugSource 9 7
-9 ExtInst 3 11 2 DebugCompileUnit 65536 0 10 12
+9 ExtInst 3 11 2 DebugCompilationUnit 65536 0 10 12
7 ExtInst 3 12 2 DebugTypeFunction 0 7
7 ExtInst 3 16 2 DebugSource 15 7
8 ExtInst 3 21 2 DebugTypeBasic 20 18 4
// Check for 2 things:
// - After round trip translation function definition has !dbg metadata attached
// specifically if -gline-tables-only was used for Clang
-// - Parent operand of DebugFunction is DebugCompileUnit, not an OpString, even
-// if in LLVM IR it points to a DIFile instead of DICompileUnit.
+// - Parent operand of DebugFunction is DebugCompilationUnit, not an OpString,
+// even if in LLVM IR it points to a DIFile instead of DICompileUnit.
// RUN: %clang_cc1 %s -cl-std=clc++ -emit-llvm-bc -triple spir -debug-info-kind=line-tables-only -O0 -o - | llvm-spirv -o %t.spv
// RUN: llvm-spirv %t.spv --spirv-debug-info-version=nonsemantic-shader-100 -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
// CHECK-SPIRV: String [[foo:[0-9]+]] "foo"
// CHECK-SPIRV: String [[k:[0-9]+]] "k"
-// CHECK-SPIRV: [[CU:[0-9]+]] {{[0-9]+}} DebugCompileUnit
+// CHECK-SPIRV: [[CU:[0-9]+]] {{[0-9]+}} DebugCompilationUnit
// CHECK-SPIRV: DebugFunction [[foo]] {{.*}} [[CU]] {{.*}} [[foo_id:[0-9]+]] {{[0-9]+}} {{$}}
// CHECK-SPIRV: DebugFunction [[k]] {{.*}} [[CU]] {{.*}} [[k_id:[0-9]+]] {{[0-9]+}} {{$}}
; CHECK-SPIRV-DAG: Constant [[#TypeInt32]] [[#DWARF:]] 4
; CHECK-SPIRV: ExtInst [[#]] [[#Source:]] [[#]] DebugSource [[#FileName]]
-; CHECK-SPIRV: ExtInst [[#]] [[#Parent:]] [[#]] DebugCompileUnit [[#Version]] [[#DWARF]]
+; CHECK-SPIRV: ExtInst [[#]] [[#Parent:]] [[#]] DebugCompilationUnit [[#Version]] [[#DWARF]]
; CHECK-SPIRV: ExtInst [[#]] [[#SourceEmpty:]] [[#]] DebugSource [[#EmptyStr]]
; CHECK-SPIRV: ExtInst [[#]] [[#Module:]] [[#]] DebugModule [[#Name]] [[#SourceEmpty]] [[#Constant0]] [[#Parent]] [[#Defines]] [[#IncludePath]] [[#ApiNotes]] [[#Constant0]]
; CHECK-SPIRV: ExtInst [[#]] [[#]] [[#]] DebugImportedEntity [[#]] [[#]] [[#]] [[#Source]] [[#Module]]
; CHECK-SPIRV: [[#DINoneId:]] [[#EISId]] DebugInfoNone
; CHECK-SPIRV: [[#DebugFuncId:]] [[#EISId]] DebugFunction
-; CHECK-SPIRV: [[#DebugTemplate:]] [[#EISId]] DebugTemplate [[#DebugFuncId]]
-; CHECK-SPIRV: [[#LocalVarId:]] [[#EISId]] DebugLocalVariable [[#LocalVarNameId]] [[#]] [[#]] [[#]] [[#]] [[#DebugTemplate]]
+; CHECK-SPIRV: [[#DebugTypeTemplate:]] [[#EISId]] DebugTypeTemplate [[#DebugFuncId]]
+; CHECK-SPIRV: [[#LocalVarId:]] [[#EISId]] DebugLocalVariable [[#LocalVarNameId]] [[#]] [[#]] [[#]] [[#]] [[#DebugTypeTemplate]]
; CHECK-SPIRV: [[#EISId]] DebugTypeSubrange [[#DINoneId]] [[#Constant1Id]] [[#LocalVarId]] [[#DINoneId]]
; CHECK-SPIRV: [[#DIExprId:]] [[#EISId]] DebugExpression
; RUN: llvm-spirv --spirv-debug-info-version=nonsemantic-shader-200 -spirv-text %t.bc -o - | FileCheck %s --check-prefix=CHECK-CPP14
; CHECK-C99: Constant [[#]] [[#Constant:]] 211
-; CHECK-C99: DebugCompileUnit [[#]] [[#]] [[#]] [[#Constant]]
+; CHECK-C99: DebugCompilationUnit [[#]] [[#]] [[#]] [[#Constant]]
; CHECK-OPENCLC: Constant [[#]] [[#Constant:]] 3
-; CHECK-OPENCLC: DebugCompileUnit [[#]] [[#]] [[#]] [[#Constant]]
+; CHECK-OPENCLC: DebugCompilationUnit [[#]] [[#]] [[#]] [[#Constant]]
; CHECK-CPP: Constant [[#]] [[#Constant:]] 214
-; CHECK-CPP: DebugCompileUnit [[#]] [[#]] [[#]] [[#Constant]]
+; CHECK-CPP: DebugCompilationUnit [[#]] [[#]] [[#]] [[#Constant]]
; CHECK-CPP14: Constant [[#]] [[#Constant:]] 217
-; CHECK-CPP14: DebugCompileUnit [[#]] [[#]] [[#]] [[#Constant]]
+; CHECK-CPP14: DebugCompilationUnit [[#]] [[#]] [[#]] [[#Constant]]
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir64-unknown-unknown"
; CHECK-SPIRV: Constant [[#TypeInt64Id]] [[#NegativeCount:]] 4294967295 4294967295
; CHECK-SPIRV: [[#DbgFuncId:]] [[#]] DebugFunction [[#FuncNameId]]
-; CHECK-SPIRV: [[#DbgTemplateId:]] [[#]] DebugTemplate [[#DbgFuncId]]
+; CHECK-SPIRV: [[#DbgTemplateId:]] [[#]] DebugTypeTemplate [[#DbgFuncId]]
; CHECK-SPIRV: [[#]] [[#DbgLocVarId:]] [[#]] DebugLocalVariable [[#VarNameId]] [[#]] [[#]] [[#]] [[#]] [[#DbgTemplateId]]
; CHECK-SPIRV: DebugTypeArray [[#]] [[#DbgLocVarId]] [[#LowerBoundId]]
!7 = distinct !DISubprogram(name: "func", scope: !8, file: !8, line: 1, scopeLine: 2, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
!8 = !DIFile(filename: "test.cl", directory: "/tmp", checksumkind: CSK_MD5, checksum: "18aa9ce738eaafc7b7b7181c19092815")
-; CHECK-OPENCLC: DebugCompileUnit {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} 3
-; CHECK-CPP4OPENCL: DebugCompileUnit {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} 6
+; CHECK-OPENCLC: DebugCompilationUnit {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} 3
+; CHECK-CPP4OPENCL: DebugCompilationUnit {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} 6