Skip to documentation
SLOP

tiny.choir.ir.interfaces.CseOpInterface

Reference tiny.choir ir interfaces CseOpInterface

Defined in ir.interfaces.

API (8)

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

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

Source

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

zig
pub const CseOpInterface = struct {    pub const interface_name = "ir.interface.cse_op";    pub const id: InterfaceId = base.interfaceId(interface_name);    pub const VTable = struct {        includeAttributeInKey: *const fn (            op: *const anyopaque,            name: []const u8,            value: IrAttribute,        ) bool,        commuteOperandsInKey: *const fn (op: *const anyopaque) bool,    };    pub fn entry(vtable: *const VTable) InterfaceEntry {        return .{ .id = id, .vtable = vtable };    }    fn neverCommuteOperandsInKey(_: *const anyopaque) bool {        return false;    }    pub fn vtableFor(        comptime includeAttributeInKey: *const fn (            op: *const anyopaque,            name: []const u8,            value: IrAttribute,        ) bool,    ) *const VTable {        return &.{            .includeAttributeInKey = includeAttributeInKey,            .commuteOperandsInKey = neverCommuteOperandsInKey,        };    }    pub fn keyPolicyVTableFor(        comptime includeAttributeInKey: *const fn (            op: *const anyopaque,            name: []const u8,            value: IrAttribute,        ) bool,        comptime commuteOperandsInKey: *const fn (op: *const anyopaque) bool,    ) *const VTable {        return &.{            .includeAttributeInKey = includeAttributeInKey,            .commuteOperandsInKey = commuteOperandsInKey,        };    }    pub fn entryFor(        comptime includeAttributeInKey: *const fn (            op: *const anyopaque,            name: []const u8,            value: IrAttribute,        ) bool,    ) InterfaceEntry {        return entry(vtableFor(includeAttributeInKey));    }    pub fn keyPolicyEntryFor(        comptime includeAttributeInKey: *const fn (            op: *const anyopaque,            name: []const u8,            value: IrAttribute,        ) bool,        comptime commuteOperandsInKey: *const fn (op: *const anyopaque) bool,    ) InterfaceEntry {        return entry(keyPolicyVTableFor(includeAttributeInKey, commuteOperandsInKey));    }};

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

zig
pub const CseOpInterface = ops.CseOpInterface;
Called byCallsNo direct callersir.interfaces.CseOpInterfacekeyPolicyVTableForir.interfaces.CseOpInterfacekeyPolicyEntryFor
Static calls · unresolved targets: 2 · external targets: 0.
Called byCallsNo direct callsir.interfaces.CseOpInterfacekeyPolicyEntryForir.interfaces.CseOpInterfacekeyPolicyVTableFor
Static calls · unresolved targets: 1 · external targets: 0.

Also reachable as

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

Audit

Definitions9
Public names18
Members2
Version26.7.0
Revisiondaab053ee433