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

Method ProcessEntryPointCallTree

source/opt/ir_context.cpp:1004–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004bool IRContext::ProcessEntryPointCallTree(ProcessFunction& pfn) {
1005 // Collect all of the entry points as the roots.
1006 std::queue<uint32_t> roots;
1007 for (auto& e : module()->entry_points()) {
1008 roots.push(e.GetSingleWordInOperand(kEntryPointFunctionIdInIdx));
1009 }
1010 return ProcessCallTreeFromRoots(pfn, &roots);
1011}
1012
1013bool IRContext::ProcessReachableCallTree(ProcessFunction& pfn) {
1014 std::queue<uint32_t> roots;

Callers 1

TEST_FFunction · 0.80

Calls 2

entry_pointsMethod · 0.80

Tested by 1

TEST_FFunction · 0.64