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

Method getADN

tests/TestASTUtils.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 std::unique_ptr<UTLoader> Loader;
22
23 ASTDefNode *getADN(std::string FuncName, unsigned BIdx, unsigned IIdx,
24 int OIdx) {
25 if (!IRAccess || !ASTMap)
26 return nullptr;
27
28 auto *I = IRAccess->getInstruction(FuncName, BIdx, IIdx);
29 if (!I)
30 return nullptr;
31 if (OIdx != -1 && (unsigned)OIdx >= I->getNumOperands())
32 return nullptr;
33 return ASTMap->getASTDefNode(*I, OIdx);
34 }
35
36 const ASTNode *getRValueASTNode(std::string FuncName, unsigned BIdx,
37 unsigned IIdx, int OIdx) {

Callers

nothing calls this directly

Calls 2

getInstructionMethod · 0.80
getASTDefNodeMethod · 0.45

Tested by

no test coverage detected