tpt_gpu_ir_spec/lib.rs
1//! TPTIR Dialect Specification
2//!
3//! This crate is the canonical, versioned definition of the TPTIR intermediate
4//! representation shared across the TPT compute suite (tpt-gpu, tpt-crucible,
5//! tpt-spark). Any tool that reads or writes TPTIR text should depend on this
6//! crate rather than re-defining the dialect inline.
7//!
8//! # Stability
9//! Types in this crate are stable from v0.1.0 onward. Additive changes increment
10//! the minor version; breaking changes increment the major version.
11
12pub mod attr;
13pub mod dialect;
14pub mod ops;
15pub mod text;
16pub mod types;
17
18pub use attr::{Attr, AttrValue};
19pub use dialect::{Dialect, DialectRegistry, TPTIR_DIALECT_VERSION};
20pub use ops::{Op, OpCategory, OpDef};
21pub use text::{emit, parse, parse_op, parse_region, parse_type, EmitOptions, ParseError};
22pub use types::{AddressSpace, ElemType, Type, TypeKind};