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

Method CollectCallTreeFromRoots

source/opt/ir_context.cpp:1062–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060}
1061
1062void IRContext::CollectCallTreeFromRoots(unsigned entryId,
1063 std::unordered_set<uint32_t>* funcs) {
1064 std::queue<uint32_t> roots;
1065 roots.push(entryId);
1066 while (!roots.empty()) {
1067 const uint32_t fi = roots.front();
1068 roots.pop();
1069 funcs->insert(fi);
1070 Function* fn = GetFunction(fi);
1071 AddCalls(fn, &roots);
1072 }
1073}
1074
1075void IRContext::EmitErrorMessage(std::string message, Instruction* inst) {
1076 if (!consumer()) {

Calls 4

GetFunctionFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected