| 674 | } |
| 675 | |
| 676 | OpenCLDebugInfo100Instructions 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 | |
| 695 | NonSemanticShaderDebugInfoInstructions Instruction::GetShaderDebugOpcode() |
| 696 | const { |