import * as binaryen from "./wasm-encoder.js"; import type { IRExpr } from "../ir/types.js"; import { type CompilationContext, FunctionContext } from "./types.js"; /** * Get the WASM type for an IR expression. * * Unlike `inferExprWasmType` (which walks AST nodes, probes locals, chases * function signatures, and handles special cases), this is a trivial lookup * because the IR lowering pass already resolved all types. * * Falls back to `binaryen.i32` for unknown types via `edictTypeToWasm`. */ export declare function irExprWasmType(expr: IRExpr): binaryen.Type; /** * Compile an IR expression to a binaryen ExpressionRef. * * Dispatches by IR node kind. All IR kinds are implemented. */ export declare function compileIRExpr(expr: IRExpr, cc: CompilationContext, ctx: FunctionContext): binaryen.ExpressionRef; //# sourceMappingURL=compile-ir-expr.d.ts.map