tiny.choir.ir.interfaces.FoldOpInterface
Defined in ir.interfaces.
API (6)
Actions
Public operations.
Types and contracts
Public types and contracts.
Values and defaults
Public values and defaults.
Source
Source: lib/choir/src/core/interfaces/ops.zig:1269
zig
pub const FoldOpInterface = struct { pub const interface_name = "ir.interface.fold_op"; pub const id: InterfaceId = base.interfaceId(interface_name); pub const VTable = struct { fold: *const fn ( op: *const anyopaque, results: *FoldResults, ) anyerror!void, }; pub fn entry(vtable: *const VTable) InterfaceEntry { return .{ .id = id, .vtable = vtable }; } pub fn vtableFor( comptime fold: *const fn ( op: *const anyopaque, results: *FoldResults, ) anyerror!void, ) *const VTable { return &.{ .fold = fold }; } pub fn entryFor( comptime fold: *const fn ( op: *const anyopaque, results: *FoldResults, ) anyerror!void, ) InterfaceEntry { return entry(vtableFor(fold)); }};Source: lib/choir/src/core/interfaces/root.zig:52
zig
pub const FoldOpInterface = ops.FoldOpInterface;Also reachable as
backends.wasm.emission.module_encoding.common.ir.interfaces.FoldOpInterface.
Audit
| Definitions | 7 |
|---|---|
| Public names | 14 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |