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

Method getLLVMFunctions

lib/utanalysis/UTAnalyzer.cpp:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::set<llvm::Function *>
78UTAnalyzer::getLLVMFunctions(const std::set<std::string> &FuncNames) const {
79 if (!Loader)
80 return {};
81
82 std::set<llvm::Function *> Result;
83 const auto &M = Loader->getSourceCollection().getLLVMModule();
84 for (const auto &FuncName : FuncNames) {
85 const auto *F = M.getFunction(FuncName);
86 if (!F)
87 continue;
88
89 Result.insert(const_cast<llvm::Function *>(F));
90 }
91 return Result;
92}
93
94void UTAnalyzer::initialize(std::string UTType) {
95 if (!Loader)

Callers

nothing calls this directly

Calls 3

getLLVMModuleMethod · 0.80
getSourceCollectionMethod · 0.80
getFunctionMethod · 0.80

Tested by

no test coverage detected