Skip to documentation
SLOP

tiny.chant.lower.emit

Reference tiny.chant lower emit

Defined in lower.

API (3)

Actions

Public operations.

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

Source

Called byCallsNo direct callslower.convertconvertlower.converttoIndexlower.emitemitYieldlower.emitindexConstantprivate sourcelib.chant.src.lower.localintValue+6 morelower.emitappend
Static calls · unresolved targets: 0 · external targets: 1.
Called byCallsNo direct callerslower.emitappendtiny.choirdialects.ScfDialect.YieldOpcreatelower.emitemitYield
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallslower.localdeclareprivate sourcelib.chant.src.lower.localstoreAtlower.memoryloadScalarlowerlowerFunctionlower.emitappendtiny.choirdialects.ArithDialect.ConstantOpcreateInttiny.choirdialects.ArithDialectgetIndexTypelower.emitindexConstant
Static calls · unresolved targets: 0 · external targets: 1.

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.

Audit

Definitions4
Public names4
Members0
Version26.7.0
Revisiondaab053ee433