| 864 | } |
| 865 | |
| 866 | bool 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 | |
| 882 | bool RDAnalyzer::isTargetMethodInvocation(const RDNode &Node, |
| 883 | const llvm::CallBase &CB) { |
nothing calls this directly
no test coverage detected