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

Function spvOpcodeReturnsLogicalPointer

source/opcode.cpp:214–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214int32_t spvOpcodeReturnsLogicalPointer(const spv::Op opcode) {
215 switch (opcode) {
216 case spv::Op::OpVariable:
217 case spv::Op::OpUntypedVariableKHR:
218 case spv::Op::OpAccessChain:
219 case spv::Op::OpInBoundsAccessChain:
220 case spv::Op::OpUntypedAccessChainKHR:
221 case spv::Op::OpUntypedInBoundsAccessChainKHR:
222 case spv::Op::OpBufferPointerEXT:
223 case spv::Op::OpFunctionParameter:
224 case spv::Op::OpImageTexelPointer:
225 case spv::Op::OpUntypedImageTexelPointerEXT:
226 case spv::Op::OpCopyObject:
227 case spv::Op::OpRawAccessChainNV:
228 case spv::Op::OpAllocateNodePayloadsAMDX:
229 return true;
230 default:
231 return false;
232 }
233}
234
235int32_t spvOpcodeGeneratesType(spv::Op op) {
236 switch (op) {

Calls

no outgoing calls

Tested by

no test coverage detected