AIR: linear atomic<T> (AtomicScalar), atomic.new/take/load/store/RMW/ cmpxchg (two results)/fence with explicit orderings; feature atomics published. Verifier: ordering tables (E4201), ordinary access (E4202), effects [atomic] / [atomic, atomic.weak], linearity, take while lent (E4101, also for mutex.take). Interpreter: timestamped message machine (src/interp/weak.zig); views travel through spawn/join, channels, mutexes, close and cancel; seq_cst reads the latest message and programs without weak reads make no extra draw (existing records unchanged). aji explore: exhaustive exploration that branches only before visible operations. Litmus: 20/20 tests give exactly the oracle's sets; differential test (1500 random programs) found no unsound outcome. .aji layer 10, Quick Reference atomics, source coverage 67/67, audit report atomic_operations. AIR bundle +5.9 %, QUICK.md +0.5k.
48 lines
1.4 KiB
Zig
48 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 Ordering = module.Ordering;
|
|
pub const RmwOp = module.RmwOp;
|
|
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;
|
|
}
|