Files
aji/src/air.zig
T
dev aaf32b6853 Phase 3: channels, mutex, select and cancellation points (RFC 0012)
- features cancellation, channels, sync supported
- AIR model/parser/printer: shield, sender<T>, receiver<T>, mutex<T>,
  guard<T>; task.check_cancel, task.join.cancel, task.shield.*,
  channel.*, select (bracketed arms), mutex.*
- verifier: arities (E5002), element rules (E4001/E1001, E0006
  channel_transfer), guard_transfer gating, task.wait effect (gated for
  task.join by cancellation), per-edge consumption with values and
  handles returned as block parameters, loans moved to the handle on
  task.join.cancel's cancelled edge, shield order (E4305), guard
  children (E2102), critical-section rule (E4304)
- interpreter: waiting-operation rule (ready, else cancelled if
  observable, else wait), shield depth, bounded and rendezvous channels
  with FIFO offers, drain-then-close receiver, budget release at the
  last close, select with seeded draw among ready arms, mutex wakeups;
  schedule record also after a select draw
- report counts task.spawn, task.wait and channel allocations
- spec erratum: mutex<T> is linear (format 0 has no droppable
  move-only class)
- 30 new conformance tests (10 run with schedules, 4 accept, 16
  reject); 6000-run schedule stress and 4350 mutants without failure
2026-10-04 16:49:37 +03:00

46 lines
1.4 KiB
Zig

//! AIR — Aji Intermediate Representation (spec 07, spec 07a, RFC 0004).
//!
//! Text AIR is the canonical interchange until opcode numbering freezes
//! (RFC 0004 "Binary stability").
const module = @import("air/module.zig");
pub const format_version = module.format_version;
pub const lang_version = module.lang_version;
pub const Module = module.Module;
pub const Function = module.Function;
pub const Block = module.Block;
pub const Inst = module.Inst;
pub const Op = module.Op;
pub const Type = module.Type;
pub const IntType = module.IntType;
pub const TypeDecl = module.TypeDecl;
pub const ValueId = module.ValueId;
pub const Span = module.Span;
pub const Param = module.Param;
pub const Target = module.Target;
pub const ArithOp = module.ArithOp;
pub const ArithMode = module.ArithMode;
pub const BitOp = module.BitOp;
pub const CmpOp = module.CmpOp;
pub const CastMode = module.CastMode;
pub const forEachUse = module.forEachUse;
pub const successors = module.successors;
pub const allocTargets = module.allocTargets;
pub const waitTargets = module.waitTargets;
pub const WaitTarget = module.WaitTarget;
pub const parse = @import("air/parse.zig");
pub const print = @import("air/print.zig");
pub const features = @import("air/features.zig");
pub const authority = module.authority;
test {
_ = module;
_ = parse;
_ = print;
_ = features;
_ = authority;
}