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

Method IfNodeType

libchigraph/src/LangModule.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/// NodeType for conditionals
24struct IfNodeType : NodeType {
25 IfNodeType(LangModule& mod) : NodeType(mod, "if", "branch on a bools") {
26 setExecInputs({""});
27 setExecOutputs({"True", "False"});
28
29 setDataInputs({{"condition", mod.typeFromName("i1")}});
30 }
31
32 Result codegen(
33 size_t /*execInputID*/, const llvm::DebugLoc& nodeLocation,

Callers

nothing calls this directly

Calls 1

typeFromNameMethod · 0.45

Tested by

no test coverage detected