MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetOpenCL100DebugOpcode

Method GetOpenCL100DebugOpcode

source/opt/instruction.cpp:676–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676OpenCLDebugInfo100Instructions Instruction::GetOpenCL100DebugOpcode() const {
677 if (opcode() != spv::Op::OpExtInst &&
678 opcode() != spv::Op::OpExtInstWithForwardRefsKHR) {
679 return OpenCLDebugInfo100InstructionsMax;
680 }
681
682 if (!context()->get_feature_mgr()->GetExtInstImportId_OpenCL100DebugInfo()) {
683 return OpenCLDebugInfo100InstructionsMax;
684 }
685
686 if (GetSingleWordInOperand(kExtInstSetIdInIdx) !=
687 context()->get_feature_mgr()->GetExtInstImportId_OpenCL100DebugInfo()) {
688 return OpenCLDebugInfo100InstructionsMax;
689 }
690
691 return OpenCLDebugInfo100Instructions(
692 GetSingleWordInOperand(kExtInstInstructionInIdx));
693}
694
695NonSemanticShaderDebugInfoInstructions Instruction::GetShaderDebugOpcode()
696 const {

Callers 6

RegisterDbgFunctionMethod · 0.80
AnalyzeDebugInstMethod · 0.80
ClearDebugInfoMethod · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80

Calls 2

get_feature_mgrMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TESTFunction · 0.64