| 23 | /// NodeType for conditionals |
| 24 | struct 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, |
nothing calls this directly
no test coverage detected