File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/CodeGen/SPIRV/debug-info Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
117117
118118 // To correct placement of a OpLabel instruction during SPIRVAsmPrinter
119119 // emission all new instructions needs to be placed after OpFunction
120- MachineIRBuilder MIRBuilder (MBB, MBB.end ());
120+ MachineIRBuilder MIRBuilder (MBB, MBB.getFirstTerminator ());
121121
122122 // Emit OpString with FilePath which is required by DebugSource
123123 const Register StrReg = MRI.createVirtualRegister (&SPIRV::IDRegClass);
Original file line number Diff line number Diff line change 1- ; RUN: llc --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info --print-after=spirv-nonsemantic-debug-info -O0 -mtriple=spirv64-unknown-unknown %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK-MIR
2- ; RUN: llc --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3- ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info %s -o - | FileCheck %s --check-prefix=CHECK-OPTION
1+ ; RUN: llc --verify-machineinstrs -- spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info --print-after=spirv-nonsemantic-debug-info -O0 -mtriple=spirv64-unknown-unknown %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK-MIR
2+ ; RUN: llc --verify-machineinstrs -- spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3+ ; RUN: llc --verify-machineinstrs - O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info %s -o - | FileCheck %s --check-prefix=CHECK-OPTION
44; RUN: %if spirv-tools %{ llc --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
55
66; CHECK-MIR-DAG: [[type_void:%[0-9]+\:type]] = OpTypeVoid
You can’t perform that action at this time.
0 commit comments