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

Method generateASTIRNode

tests/inputfilter/TestInputFilter.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 std::shared_ptr<ASTIRNode> generateASTIRNode(std::string FuncName,
74 unsigned BIdx, unsigned IIdx,
75 int OIdx) {
76 auto Node = generateRDNode(FuncName, BIdx, IIdx, OIdx);
77 if (!Node)
78 return nullptr;
79
80 auto D = Node->getDefinition();
81 if (!D.first)
82 return nullptr;
83
84 auto *ADN = AIMap->getASTDefNode(*D.first, D.second);
85 if (!ADN)
86 return nullptr;
87
88 return std::make_shared<ASTIRNode>(*ADN, *Node);
89 }
90
91 std::shared_ptr<ASTIRNode> generateASTIRNode(std::string GlobalName,
92 std::string FuncName,

Callers

nothing calls this directly

Calls 2

getDefinitionMethod · 0.80
getASTDefNodeMethod · 0.45

Tested by

no test coverage detected