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

Function addOutParam

tests/rootdefanalysis/TestRootDef.cpp:501–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501bool addOutParam(DirectionAnalysisReport &DirectionReport,
502 const llvm::Module &M, std::string FuncName, unsigned ArgIdx) {
503 const auto *F = M.getFunction(FuncName);
504 if (!F)
505 return false;
506
507 const auto *A = F->getArg(ArgIdx);
508 if (!A)
509 return false;
510
511 DirectionReport.set(*A, Dir_Out);
512 return true;
513}
514
515class TestDFAnalyzer : public TestBase {};
516

Callers 1

TEST_FFunction · 0.85

Calls 3

getFunctionMethod · 0.80
getArgMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected