tiny.chant.lower.emit
Defined in lower.
API (3)
Actions
Public operations.
Source
Source: lib/chant/src/lower/emit.zig
zig
const choir = @import("choir");const context = @import("context.zig");const Error = @import("error.zig").Error;const ArithDialect = choir.dialects.ArithDialect;const ScfDialect = choir.dialects.ScfDialect;const Lowerer = context.Lowerer;pub fn append(lowerer: *Lowerer, op: *choir.Operation) Error!void { lowerer.block.addOperation(op) catch return error.OutOfMemory;}pub fn indexConstant(lowerer: *Lowerer, value: i64) Error!*choir.Value { const index_type = ArithDialect.getIndexType(lowerer.ctx) catch return error.OutOfMemory; const constant = ArithDialect.ConstantOp.createInt(lowerer.ctx, lowerer.loc, index_type, value) catch return error.OutOfMemory; try append(lowerer, constant.op); var mutable = constant; return mutable.getResult();}pub fn emitYield(lowerer: *Lowerer, values: []const *choir.Value) Error!void { if (lowerer.terminated) { lowerer.terminated = false; return; } const yield = ScfDialect.YieldOp.create(lowerer.ctx, lowerer.loc, values) catch return error.OutOfMemory; try append(lowerer, yield.op);}Source: lib/chant/src/lower/root.zig:6
zig
pub const emit = @import("emit.zig");Complete caller list for lower.emit.append
11 direct callers.
tiny.chant.lower.convert.convert[function] atlib/chant/src/lower/convert.zig:75tiny.chant.lower.convert.toIndex[function] atlib/chant/src/lower/convert.zig:90tiny.chant.lower.emit.emitYield[function] atlib/chant/src/lower/emit.zig:21tiny.chant.lower.emit.indexConstant[function] atlib/chant/src/lower/emit.zig:13lib.chant.src.lower.local.intValue[function] — private source atlib/chant/src/lower/local.zig:157in nearest public ownertiny.chant.lower.locallib.chant.src.lower.local.zeroValue[function] — private source atlib/chant/src/lower/local.zig:147in nearest public ownertiny.chant.lower.localtiny.chant.lower.memory.allocaObject[function] atlib/chant/src/lower/memory.zig:27tiny.chant.lower.memory.allocaScalar[function] atlib/chant/src/lower/memory.zig:18tiny.chant.lower.memory.loadElement[function] atlib/chant/src/lower/memory.zig:51tiny.chant.lower.memory.storeElement[function] atlib/chant/src/lower/memory.zig:59tiny.chant.lower.lowerFunction[function] atlib/chant/src/lower/unit.zig:26
Audit
| Definitions | 4 |
|---|---|
| Public names | 4 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |