Skip to documentation
SLOP

tiny.choir.ir.interfaces.InferTypeOpInterface

Reference tiny.choir ir interfaces InferTypeOpInterface

Defined in ir.interfaces.

API (6)

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

No direct callersNo direct callsir.interfacesInferTypeOpInterface
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/choir/src/core/interfaces/ops.zig:1194

zig
pub const InferTypeOpInterface = struct {    pub const interface_name = "ir.interface.infer_type";    pub const id: InterfaceId = base.interfaceId(interface_name);    pub const VTable = struct {        inferResultTypes: *const fn (            op: *const anyopaque,            allocator: std.mem.Allocator,            out_types: *std.ArrayListUnmanaged(IrType),        ) anyerror!void,    };    pub fn entry(vtable: *const VTable) InterfaceEntry {        return .{ .id = id, .vtable = vtable };    }    pub fn vtableFor(        comptime inferResultTypes: *const fn (            op: *const anyopaque,            allocator: std.mem.Allocator,            out_types: *std.ArrayListUnmanaged(IrType),        ) anyerror!void,    ) *const VTable {        return &.{ .inferResultTypes = inferResultTypes };    }    pub fn entryFor(        comptime inferResultTypes: *const fn (            op: *const anyopaque,            allocator: std.mem.Allocator,            out_types: *std.ArrayListUnmanaged(IrType),        ) anyerror!void,    ) InterfaceEntry {        return entry(vtableFor(inferResultTypes));    }};

Source: lib/choir/src/core/interfaces/root.zig:49

zig
pub const InferTypeOpInterface = ops.InferTypeOpInterface;

Also reachable as

backends.wasm.emission.module_encoding.common.ir.interfaces.InferTypeOpInterface.

Audit

Definitions7
Public names14
Members1
Version26.7.0
Revisiondaab053ee433