#![doc = include_str!("../README.md")]
#![deny(rustdoc::broken_intra_doc_links)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]

use llzk_sys::llzkRegisterAllDialects;
use melior::dialect::DialectRegistry;

pub mod attributes;
pub mod builder;
pub mod context;
mod diagnostics;
pub mod dialect;
pub mod error;
mod macros;
pub mod map_operands;
pub mod operation;
pub mod passes;
pub mod prelude;
pub mod symbol_lookup;
pub mod symbol_ref;
pub mod targets;
#[cfg(test)]
mod test;
pub mod utils;
pub mod value_ext;

/// Adds all LLZK dialects into the given registry.
pub fn register_all_llzk_dialects(registry: &DialectRegistry) {
    unsafe { llzkRegisterAllDialects(registry.to_raw()) }
}
