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

Function spvOpcodeIsDebug

source/opcode.cpp:562–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562bool spvOpcodeIsDebug(spv::Op opcode) {
563 switch (opcode) {
564 case spv::Op::OpName:
565 case spv::Op::OpMemberName:
566 case spv::Op::OpSource:
567 case spv::Op::OpSourceContinued:
568 case spv::Op::OpSourceExtension:
569 case spv::Op::OpString:
570 case spv::Op::OpLine:
571 case spv::Op::OpNoLine:
572 case spv::Op::OpModuleProcessed:
573 return true;
574 default:
575 return false;
576 }
577}
578
579bool spvOpcodeIsCommutativeBinaryOperator(spv::Op opcode) {
580 switch (opcode) {

Callers 6

EmitSectionCommentMethod · 0.85
ValidateTypeFunctionFunction · 0.85
SimplifyFunctionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected