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

Method collectAnalyzableIRFunctions

lib/target_analysis/TargetLibAnalyzer.cpp:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110TargetLib &TargetLibAnalyzer::getTargetLib() { return *AnalyzedTargetLib; }
111
112std::vector<const llvm::Function *>
113TargetLibAnalyzer::collectAnalyzableIRFunctions() const {
114 if (!SC)
115 return {};
116
117 std::vector<const llvm::Function *> Result;
118 bool All = AC.size() == 0 ? true : false;
119 for (const auto &F : SC->getLLVMModule()) {
120 if (F.isDeclaration())
121 continue;
122
123 if (!All && AC.find(F.getName().str()) == AC.end())
124 continue;
125
126 Result.push_back(&F);
127 }
128 return Result;
129}
130
131void TargetLibAnalyzer::loadExternals(const std::string &ExternLibDir) {
132 if (!fs::is_directory(ExternLibDir))

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
getLLVMModuleMethod · 0.80
endMethod · 0.80
findMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected