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

Method isLoopExit

lib/inputanalysis/DefMapGenerator.cpp:150–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool DefMapGenerator::isLoopExit(const RDNode &Node,
151 const LoopAnalysisReport &LoopReport) const {
152 for (const auto &Use : Node.getFirstUses()) {
153 auto FuncName = Use.getFunctionName();
154 auto ArgNo = Use.ArgNo;
155 if (!LoopReport.has(FuncName, ArgNo))
156 continue;
157
158 auto LoopResult = LoopReport.get(FuncName, ArgNo);
159 if (LoopResult.LoopExit)
160 return true;
161 }
162
163 return false;
164}
165
166bool DefMapGenerator::isVarReference(const ASTDefNode &Node) const {
167 auto *Assigned = Node.getAssigned();

Callers

nothing calls this directly

Calls 3

getFunctionNameMethod · 0.45
hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected