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.
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;Also reachable as
backends.wasm.emission.module_encoding.common.ir.interfaces.CseOpInterface.
Audit
| Definitions | 9 |
|---|---|
| Public names | 18 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |