| 113 | } |
| 114 | |
| 115 | int32_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 | |
| 133 | int32_t spvOpcodeIsConstant(const spv::Op opcode) { |
| 134 | switch (opcode) { |
no outgoing calls
no test coverage detected