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

Function spvOpcodeIsReturn

source/opcode.cpp:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377bool spvOpcodeIsReturn(spv::Op opcode) {
378 switch (opcode) {
379 case spv::Op::OpReturn:
380 case spv::Op::OpReturnValue:
381 return true;
382 default:
383 return false;
384 }
385}
386
387bool spvOpcodeIsAbort(spv::Op opcode) {
388 switch (opcode) {

Callers 6

spvOpcodeIsReturnOrAbortFunction · 0.85
IsReturnMethod · 0.85
HasEarlyReturnMethod · 0.85
HasNoReturnInLoopMethod · 0.85
AnalyzeReturnsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected