Skip to documentation
SLOP

tiny.choir.ir.interfaces.effects.EffectOpInterface

Reference tiny.choir ir interfaces effects EffectOpInterface

Defined in ir.interfaces.effects.

API (5)

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

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

Source

Source: lib/choir/src/core/interfaces/effects.zig:214

zig
pub const EffectOpInterface = struct {    pub const interface_name = "ir.interface.effects";    pub const id = interfaces.interfaceId(interface_name);    pub const VTable = struct {        capacity: Capacity,        collect: *const fn (*const anyopaque, *Collector) void,    };    pub fn entry(vtable: *const VTable) interfaces.InterfaceEntry {        return .{ .id = id, .vtable = vtable };    }    pub fn entryFor(comptime spec: Spec) interfaces.InterfaceEntry {        const Implementation = struct {            fn collect(raw: *const anyopaque, collector: *Collector) void {                const op: *const ir.Operation = @ptrCast(@alignCast(raw));                collector.complete = spec.complete;                for (spec.facts) |fact| collector.append(fact);                if (spec.enumerate) |enumerate| enumerate(op, collector);            }            const vtable = VTable{                .capacity = .{                    .entries = spec.facts.len + spec.capacity.entries,                    .per_operand = spec.capacity.per_operand,                    .per_result = spec.capacity.per_result,                    .per_region = spec.capacity.per_region,                },                .collect = collect,            };        };        return entry(&Implementation.vtable);    }};
Called byCallsNo direct callsir.interfaces.EffectOpInterfaceentryForir.interfaces.EffectOpInterfaceentry
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallstest sourcelib.choir.src.backends.x64.regalloctest: the ordered effect probe conser...private sourcelib.choir.src.core.interfaces.effectstestVerifyWithoutScratchtest sourcelib.choir.src.core.interfaces.effectstest: EffectOpInterface normal verifi...test sourcelib.choir.src.core.interfaces.effectstest: EffectOpInterface registers sta...private sourcelib.choir.src.dialects.gpu.dialectgpuEffects+5 moreir.interfaces.EffectOpInterfaceentrytiny.sysfontenumerateir.interfaces.EffectOpInterfaceentryFor
Static calls · unresolved targets: 1 · external targets: 0.

Also reachable as

backends.wasm.emission.module_encoding.common.ir.interfaces.EffectOpInterface, backends.wasm.emission.module_encoding.common.ir.interfaces.effects.EffectOpInterface, ir.interfaces.EffectOpInterface.

Complete caller list for ir.interfaces.EffectOpInterface.entryFor

10 direct callers.

Audit

Definitions6
Public names24
Members2
Version26.7.0
Revisiondaab053ee433