Skip to main content

Crate tpt_gpu_ir_spec

Crate tpt_gpu_ir_spec 

Source
Expand description

TPTIR Dialect Specification

This crate is the canonical, versioned definition of the TPTIR intermediate representation shared across the TPT compute suite (tpt-gpu, tpt-crucible, tpt-spark). Any tool that reads or writes TPTIR text should depend on this crate rather than re-defining the dialect inline.

§Stability

Types in this crate are stable from v0.1.0 onward. Additive changes increment the minor version; breaking changes increment the major version.

Re-exports§

pub use attr::Attr;
pub use attr::AttrValue;
pub use dialect::Dialect;
pub use dialect::DialectRegistry;
pub use dialect::TPTIR_DIALECT_VERSION;
pub use ops::Op;
pub use ops::OpCategory;
pub use ops::OpDef;
pub use text::emit;
pub use text::parse;
pub use text::parse_op;
pub use text::parse_region;
pub use text::parse_type;
pub use text::EmitOptions;
pub use text::ParseError;
pub use types::AddressSpace;
pub use types::ElemType;
pub use types::Type;
pub use types::TypeKind;

Modules§

attr
dialect
ops
text
Stable TPTIR text-format emitter and parser.
types