Skip to content

About

Streamline the setup of the MLIR toolchain with pre-built binaries

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

OS License: Apache-2.0 WITH LLVM-exception CI

Portable MLIR Toolchain

This repository provides pre-built MLIR binaries. Standalone zstd executables are also provided as separate assets for each supported platform to facilitate decompression.

Windows builds support Release mode only. The Linux and macOS build scripts also support Debug mode. macOS builds require Apple silicon (arm64).

Installation

For installation instructions, please refer to the setup-mlir repository. The repository provides

  • an action for setting up MLIR in GitHub Actions and
  • installation scripts for setting up MLIR locally.

Build Scripts

If desired, you can run the staged build scripts directly. Refer to

  • scripts/toolchain/linux/build-zstd.sh, scripts/toolchain/linux/build-mold.sh, and scripts/toolchain/linux/build-mlir.sh for Linux,
  • scripts/toolchain/macos/build-zstd.sh and scripts/toolchain/macos/build-mlir.sh for macOS, and
  • scripts/toolchain/windows/build-zstd.ps1, scripts/toolchain/windows/build-lld.ps1, and scripts/toolchain/windows/build-mlir.ps1 for Windows.

The usage is documented in each script. Linux builds run in a manylinux container and therefore require Docker on the host system. Windows LLVM builds require Visual Studio and clang-cl on PATH. The installation test uses MSVC.

Assertion-free release builds

Archives ending in _noassert.tar.zst disable LLVM assertions and the associated ABI-breaking checks. Archives without this suffix retain assertions. Build scripts accept LLVM_ENABLE_ASSERTIONS=ON (the default) or OFF; release CI builds and tests both. Always use headers and libraries from the same variant. Both variants contain native static libraries and tools, with LLVM exception handling and RTTI disabled.

About

Streamline the setup of the MLIR toolchain with pre-built binaries

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages