MLIR
The MLIR module contains a dialect and translation of core MLIR dialects to SDFGs.
- SDFG Dialect: A dialect to represent SDFGs in MLIR.
- Conversion: Conversion passes to convert core dialects (arith, linalg, etc.) to the SDFG dialect.
- Translate: A translation pass to dump an SDFG from the SDFG dialect.
Build from Sources
To build the MLIR component from source install LLVM/MLIR dependencies first:
sudo apt-get install -y libmlir-19 libmlir-19-dev mlir-19-tools
Second, build from the root of the repository using cmake:
mkdir build && cd build
cmake -G Ninja \
-DCMAKE_C_COMPILER=clang-19 \
-DCMAKE_CXX_COMPILER=clang++-19 \
-DCMAKE_BUILD_TYPE=Debug \
-DMLIR_BUILD_FRONTEND=ON \
-DMLIR_BUILD_TESTS=ON \
-DMLIR_DIR=/usr/lib/llvm-19/lib/cmake/mlir \
-DLLVM_EXTERNAL_LIT=/usr/lib/llvm-19/build/utils/lit/lit.py \
-DWITH_SYMENGINE_THREAD_SAFE=ON \
-DWITH_SYMENGINE_RCP=ON \
-DINSTALL_GTEST=OFF \
-DBUILD_TESTS:BOOL=OFF \
-DBUILD_BENCHMARKS:BOOL=OFF \
-DBUILD_BENCHMARKS_GOOGLE:BOOL=OFF \
..
ninja -j$(nproc)
To verify, the basic dialects and translation work, run the tests:
ninja check-docc-mlir
License
This component is part of docc and is published under the BSD-3-Clause license. See LICENSE for details.
Release files for docc-ai 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| docc_ai-0.8.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details |
| docc_ai-0.8.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 | Details |
| docc_ai-0.8.1-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details |
| docc_ai-0.8.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details |
| docc_ai-0.8.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 | Details |
| docc_ai-0.8.1-cp311-cp311-macosx_14_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 14.0+ ARM64 | Details |
Total release size: 167.1 MB
Release files / docc_ai-0.8.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | docc_ai-0.8.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 17.7 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9e3309803e657b1b827d3c8164d51b626e00e7e04ca69c0226b651829aa11d43
|
|
BLAKE2b-256 checksum How to use checksums |
7e885088b2c99b416182f576fc87aa6df4bf3ba22ab23a3cac1bb9a66aa44562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|
Release files / docc_ai-0.8.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | docc_ai-0.8.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 16.9 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
ddf8e9b53135d62681137a96cc71fdca39cef3c3c09b960c298831f210a7a296
|
|
BLAKE2b-256 checksum How to use checksums |
15d0cd00d961dcb7ceeb6c59129ef71b1b56abced94b05cb14559ffe617a7ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|
Release files / docc_ai-0.8.1-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | docc_ai-0.8.1-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 48.9 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e8c8bcf8356e96b5670669380be6aa4007e1f972d2e3951caa7eecfde4bcbc8e
|
|
BLAKE2b-256 checksum How to use checksums |
d0cdfe271581034e8f47b391e7bef51e33fa4279ed8ac5182b6472037f0315e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|
Release files / docc_ai-0.8.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | docc_ai-0.8.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 17.7 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c5cc58605f91d930e0376dc10d0e8d5d591168a78d9ed32fc8a31cdf9d776396
|
|
BLAKE2b-256 checksum How to use checksums |
5da51fe05d54f30aa7fa0066e1bac113d3debdb0657dae051da5e10a59872879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|
Release files / docc_ai-0.8.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | docc_ai-0.8.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 16.9 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
ad24df7c64a9c1103ef85268ceb28aee49940e688388642eb87a981f8c1e2543
|
|
BLAKE2b-256 checksum How to use checksums |
90b5dc307b7508ca8117ddf0d0576a4621a86c40e5d635f542fbba7faf24d8ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|
Release files / docc_ai-0.8.1-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | docc_ai-0.8.1-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 48.9 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dd5f8bbce4084cda75f8efdb03b71850217a1b61969cace7ec858ff44ac70253
|
|
BLAKE2b-256 checksum How to use checksums |
9ae875bbf188d09211cc9655fa6fca3be45c28ed1b7ad793e496b503a46972f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|