MCPcopy Create free account
hub / github.com/chigraph/chigraph / GraphFuncCallType

Method GraphFuncCallType

libchigraph/src/GraphModule.cpp:319–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318struct 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,

Callers

nothing calls this directly

Calls 4

functionFromNameMethod · 0.80
descriptionMethod · 0.80
addEntryMethod · 0.80
fullNameMethod · 0.80

Tested by

no test coverage detected