MCPcopy Create free account
hub / github.com/Samsung/UTopia / add

Method add

lib/propanalysis/DirectionAnalysisReport.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void DirectionAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) {
34 auto &A = AF.getLLVMArg();
35 set(A, AF.getArgDir(), Indices);
36
37 auto SI = AF.getStructInfo();
38 if (!SI)
39 return;
40
41 for (auto Iter : SI->FieldResults) {
42 if (!Iter.second)
43 continue;
44
45 Indices.push_back(Iter.first);
46 add(*Iter.second, Indices);
47 Indices.pop_back();
48 }
49}
50
51} // namespace ftg

Callers

nothing calls this directly

Calls 2

getArgDirMethod · 0.80
getStructInfoMethod · 0.80

Tested by

no test coverage detected