Skip to content

Commit 1155965

Browse files
committed
--Added support for the extension SPV_KHR_relaxed_extended_instruction
--Modified the SPIRVEmitNonSemanticDI.cpp file for forward referencing --Modified the test files to reflect the changes made in SPIRVEmitNonSemanticDI.cpp.
1 parent 0b9225e commit 1155965

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,9 @@ void SPIRVModuleAnalysis::processOtherInstrs(const Module &M) {
647647
const unsigned OpCode = MI.getOpcode();
648648
if (OpCode == SPIRV::OpString) {
649649
collectOtherInstr(MI, MAI, SPIRV::MB_DebugStrings, IS);
650-
} else if ((OpCode == SPIRV::OpExtInst|| OpCode == SPIRV::OpExtInstWithForwardRefsKHR) && MI.getOperand(2).isImm() &&
650+
} else if ((OpCode == SPIRV::OpExtInst ||
651+
OpCode == SPIRV::OpExtInstWithForwardRefsKHR) &&
652+
MI.getOperand(2).isImm() &&
651653
MI.getOperand(2).getImm() ==
652654
SPIRV::InstructionSet::
653655
NonSemantic_Shader_DebugInfo_100) {

0 commit comments

Comments
 (0)