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

Function getCalledFunction

include/ftg/utils/LLVMUtil.h:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace util {
24
25static inline llvm::Function *
26getCalledFunction(const llvm::CallBase &CB,
27 IndCallSolverMgr *Solver = nullptr) {
28 if (const auto *CO = CB.getCalledOperand()) {
29 const auto *F =
30 llvm::dyn_cast_or_null<llvm::Function>(CO->stripPointerCasts());
31 if (F)
32 return const_cast<llvm::Function *>(F);
33 }
34 if (!Solver)
35 return nullptr;
36
37 return const_cast<llvm::Function *>(Solver->getCalledFunction(CB));
38}
39
40static inline llvm::StringRef
41getFileContent(const clang::FileID &ID,

Callers 15

buildCallerMapMethod · 0.85
handleRegisterMethod · 0.85
getASTNodeMethod · 0.85
getASTDefNodeMethod · 0.85
checkMethod · 0.85
visitCallBaseMethod · 0.85
updateMethod · 0.85
APICallMethod · 0.85
isFilePathMethod · 0.85
handleUserMethod · 0.85
handleUserMethod · 0.85
handleUserMethod · 0.85

Calls 1

getCalledFunctionMethod · 0.80

Tested by 2

TEST_FFunction · 0.68