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

Method visit

lib/rootdefanalysis/RDNode.cpp:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void RDNode::visit(const RDTarget &T, const Instruction &I) {
100 const auto *F = I.getFunction();
101 assert(F && "Unexpected Program State");
102
103 auto Iter = Visit.find(F);
104 if (Iter != Visit.end()) {
105 if (!Iter->second.emplace(T, I).second) {
106 assert(false && "Unexpected Program State");
107 }
108 return;
109 }
110
111 std::set<RDVisitNode> VisitNodes;
112 VisitNodes.emplace(T, I);
113 Visit.emplace(F, VisitNodes);
114}
115
116void RDNode::addFirstUse(llvm::CallBase &CB, int ArgNo) {
117

Callers 2

traverseFunctionMethod · 0.80
traceMethod · 0.80

Calls 3

getFunctionMethod · 0.80
endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected