Beaver.Triton (beaver v0.4.8)

Copy Markdown

Registers Triton's core dialects and passes in a Beaver MLIR context.

Once registered, a context can parse and inspect Triton IR (tt, ttgir, ttng, ttinstrument, gluon dialects), and Triton passes can be driven by name through Beaver.Composer pipelines.

Requires a Beaver native build linked against the Triton core prebuilt (build with BEAVER_TRITON_PREBUILT_DIR set); otherwise the calls raise.

Summary

Functions

Registers Triton passes and dialects, then loads the dialects on context.

Registers Triton's passes in the global MLIR pass registry.

Functions

register(context)

@spec register(Beaver.MLIR.Context.t()) :: :ok

Registers Triton passes and dialects, then loads the dialects on context.

register_passes()

@spec register_passes() :: :ok

Registers Triton's passes in the global MLIR pass registry.

Idempotent per process; safe to call multiple times.