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

Function spvOpcodeIsSpecConstant

source/opcode.cpp:115–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int32_t spvOpcodeIsSpecConstant(const spv::Op opcode) {
116 switch (opcode) {
117 case spv::Op::OpSpecConstantTrue:
118 case spv::Op::OpSpecConstantFalse:
119 case spv::Op::OpSpecConstant:
120 case spv::Op::OpSpecConstantComposite:
121 case spv::Op::OpSpecConstantCompositeReplicateEXT:
122 case spv::Op::OpSpecConstantOp:
123 case spv::Op::OpSpecConstantArchitectureINTEL:
124 case spv::Op::OpSpecConstantTargetINTEL:
125 case spv::Op::OpSpecConstantCapabilitiesINTEL:
126 case spv::Op::OpSpecConstantDataKHR:
127 return true;
128 default:
129 return false;
130 }
131}
132
133int32_t spvOpcodeIsConstant(const spv::Op opcode) {
134 switch (opcode) {

Calls

no outgoing calls

Tested by

no test coverage detected