| 317 | |
| 318 | struct GraphFuncCallType : public NodeType { |
| 319 | GraphFuncCallType(GraphModule& json_module, std::string funcname, Result* resPtr) |
| 320 | : NodeType(json_module, std::move(funcname), ""), JModule(&json_module) { |
| 321 | Result& res = *resPtr; |
| 322 | |
| 323 | auto* mygraph = JModule->functionFromName(name()); |
| 324 | setDescription(mygraph->description()); |
| 325 | |
| 326 | if (mygraph == nullptr) { |
| 327 | res.addEntry("EINT", "Graph doesn't exist in module", |
| 328 | {{"Module Name", JModule->fullName()}, {"Requested Name", name()}}); |
| 329 | return; |
| 330 | } |
| 331 | |
| 332 | setDataOutputs(mygraph->dataOutputs()); |
| 333 | |
| 334 | setDataInputs(mygraph->dataInputs()); |
| 335 | |
| 336 | setExecInputs(mygraph->execInputs()); |
| 337 | setExecOutputs(mygraph->execOutputs()); |
| 338 | } |
| 339 | |
| 340 | Result codegen(size_t execInputID, const llvm::DebugLoc& nodeLocation, |
| 341 | const std::vector<llvm::Value*>& io, llvm::BasicBlock* codegenInto, |
nothing calls this directly
no test coverage detected