Skip to main content

pliron_math/
lib.rs

1//! pliron implementation of the MLIR `math` dialect.
2
3#![doc = include_str!("../README.md")]
4#![deny(missing_docs, unreachable_pub, private_interfaces, private_bounds)]
5#![deny(rustdoc::broken_intra_doc_links, rustdoc::private_intra_doc_links)]
6#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
7/// The IR framework used by this dialect, re-exported to keep context and handle types aligned.
8pub use pliron;
9/// Shared error envelope and result type used by fallible IR APIs.
10pub use pliron::result::{Error, Result};
11/// The `arith` dialect that supplies fast-math flags and shaped-type helpers.
12pub use pliron_arith;
13mod error;
14/// Structured diagnostics and recovery categories for failed dialect operations.
15pub use error::{Diagnostic, RecoveryCategory};
16#[cfg(feature = "mlir-interop")]
17pub mod mlir;
18pub mod ops;
19
20/// Shared MLIR builtin types and attributes.
21pub use pliron_arith::pliron_mlir_builtin;