(builder: IRBuilder, expr: CallExpr, callee: RefExpr)
| 1170 | |
| 1171 | @specialize_function("builtins.bool") |
| 1172 | def translate_bool(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Value | None: |
| 1173 | if len(expr.args) != 1 or expr.arg_kinds[0] != ARG_POS: |
| 1174 | return None |
| 1175 | arg = expr.args[0] |
| 1176 | src = builder.accept(arg) |
| 1177 | return builder.builder.bool_value(src) |
| 1178 | |
| 1179 | |
| 1180 | @specialize_function("builtins.float") |
nothing calls this directly
no test coverage detected
searching dependent graphs…