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

Method terminates

lib/rootdefanalysis/RDAnalyzer.cpp:849–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849bool RDAnalyzer::terminates(RDNode &Node) const {
850 if (Node.isRootDefinition())
851 return true;
852
853 auto &Location = Node.getLocation();
854 auto *CB = dyn_cast_or_null<CallBase>(&Location);
855 if (!CB)
856 return false;
857
858 auto Idx = Node.getIdx();
859 if (Idx < 0)
860 return false;
861 assert((size_t)Idx < CB->getNumArgOperands() && "Unexpected Program State");
862
863 return Extension.isTermination(*CB, Idx);
864}
865
866bool RDAnalyzer::isMemoryIntrinsic(llvm::CallBase &CB) const {
867

Callers

nothing calls this directly

Calls 3

isRootDefinitionMethod · 0.80
getIdxMethod · 0.80
isTerminationMethod · 0.80

Tested by

no test coverage detected