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

Method solve

lib/indcallsolver/TBAASimpleSolver.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 : Handler(std::move(Handler)) {}
10
11std::set<const Function *> TBAASimpleSolver::solve(const CallBase &CB) const {
12 const auto *CO = CB.getCalledOperand();
13 if (!CO)
14 return {};
15
16 const auto *TBAA =
17 getTBAA(dyn_cast_or_null<Instruction>(CO->stripPointerCasts()));
18 if (!TBAA)
19 return {};
20
21 return Handler.get(TBAA, CO->getType());
22}

Callers

nothing calls this directly

Calls 3

getTBAAFunction · 0.85
getMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected