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

Method isMemoryIntrinsic

lib/rootdefanalysis/RDAnalyzer.cpp:866–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866bool RDAnalyzer::isMemoryIntrinsic(llvm::CallBase &CB) const {
867
868 auto *F = CB.getCalledFunction();
869 if (!F || !F->isIntrinsic())
870 return false;
871
872 auto IntrinsicID = F->getIntrinsicID();
873 if (IntrinsicID != Intrinsic::memcpy &&
874 IntrinsicID != Intrinsic::memcpy_element_unordered_atomic &&
875 IntrinsicID != Intrinsic::memset &&
876 IntrinsicID != Intrinsic::memset_element_unordered_atomic)
877 return false;
878
879 return true;
880}
881
882bool RDAnalyzer::isTargetMethodInvocation(const RDNode &Node,
883 const llvm::CallBase &CB) {

Callers

nothing calls this directly

Calls 1

getCalledFunctionMethod · 0.80

Tested by

no test coverage detected