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

Function FunctionIsEntryPoint

source/fuzz/fuzzer_util.cpp:654–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654bool FunctionIsEntryPoint(opt::IRContext* context, uint32_t function_id) {
655 for (auto& entry_point : context->module()->entry_points()) {
656 if (entry_point.GetSingleWordInOperand(1) == function_id) {
657 return true;
658 }
659 }
660 return false;
661}
662
663bool IdIsAvailableAtUse(opt::IRContext* context,
664 opt::Instruction* use_instruction,

Callers 12

IsApplicableMethod · 0.85
ApplyMethod · 0.85
IsApplicableMethod · 0.85
IsApplicableMethod · 0.85
IsApplicableMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
RemoveParameterFunction · 0.85
ApplyMethod · 0.85
IsApplicableMethod · 0.85
ApplyMethod · 0.85
MaybeAddFactMethod · 0.85

Calls 3

entry_pointsMethod · 0.80
moduleMethod · 0.45

Tested by

no test coverage detected