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

Method isForcedDef

lib/rootdefanalysis/RDAnalyzer.cpp:835–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835bool RDAnalyzer::isForcedDef(RDNode &Node) const {
836 auto &Location = Node.getLocation();
837 auto *CB = dyn_cast_or_null<CallBase>(&Location);
838 if (!CB)
839 return false;
840
841 auto Idx = Node.getIdx();
842 if (Idx < 0)
843 return false;
844 assert((size_t)Idx < CB->getNumArgOperands() && "Unexpected Program State");
845
846 return Extension.isTermination(*CB, Idx);
847}
848
849bool RDAnalyzer::terminates(RDNode &Node) const {
850 if (Node.isRootDefinition())

Callers

nothing calls this directly

Calls 2

getIdxMethod · 0.80
isTerminationMethod · 0.80

Tested by

no test coverage detected