tiny.choir.ir.interfaces.YieldOpInterface
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:1428
zig
pub const YieldOpInterface = struct { pub const interface_name = "ir.interface.yield_op"; pub const id: InterfaceId = base.interfaceId(interface_name); pub const VTable = struct { getYieldOperandCount: *const fn (op: *const anyopaque) usize, getYieldOperand: *const fn (op: *const anyopaque, index: usize) ?*IrValue, }; pub fn entry(vtable: *const VTable) InterfaceEntry { return .{ .id = id, .vtable = vtable }; } pub fn vtableFor( comptime getYieldOperandCount: *const fn (op: *const anyopaque) usize, comptime getYieldOperand: *const fn (op: *const anyopaque, index: usize) ?*IrValue, ) *const VTable { return &.{ .getYieldOperandCount = getYieldOperandCount, .getYieldOperand = getYieldOperand, }; } pub fn entryFor( comptime getYieldOperandCount: *const fn (op: *const anyopaque) usize, comptime getYieldOperand: *const fn (op: *const anyopaque, index: usize) ?*IrValue, ) InterfaceEntry { return entry(vtableFor(getYieldOperandCount, getYieldOperand)); }};Source: lib/choir/src/core/interfaces/root.zig:57
zig
pub const YieldOpInterface = ops.YieldOpInterface;Also reachable as
backends.wasm.emission.module_encoding.common.ir.interfaces.YieldOpInterface.
Audit
| Definitions | 7 |
|---|---|
| Public names | 14 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |