Note: No need to download submodule and git clone --recursive unless your version is the same as ours.
2. Build the Wheel
cd flagtree_mlir
python -m build -w
After building, the .whl file will appear in the ./dist directory.
3. Install and Test
# Install the wheel package (adjust the filename according to the actual one)
pip install ./dist/flagtree_mlir-0.1.0-cp312-cp312-linux_x86_64.whl --force-reinstall
# Test import
python -c "import flagtree_mlir"
python -c "from mlir import ir"
FLAGTREE-MLIR Build Guide
This document describes how to build a wheel package from a specific version of llvm-project.
Quick Start
1. Clone the repository and build clang
2. Build the Wheel
After building, the
.whlfile will appear in the./distdirectory.3. Install and Test
No error is expected.
wheel Structure
Unzip the wheel package, the content is as below:
Build Configuration
Our cmake instruction is as below: