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.0
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.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| docc_ai-0.8.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 | Details |
| docc_ai-0.8.0-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details |
| docc_ai-0.8.0-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.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 | Details |
| docc_ai-0.8.0-cp311-cp311-macosx_14_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 14.0+ ARM64 | Details |
Total release size: 166.5 MB
Release files / docc_ai-0.8.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | docc_ai-0.8.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b397842e4d2ead703ea7aead3b5dc328014559b42e145909756d1c74ebf2c169
|
|
BLAKE2b-256 checksum How to use checksums |
853ebac4065aa7a7c6d0d43ebee186125f0ed05c22bc6b7e259e902c04f8104f
|
| 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.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | docc_ai-0.8.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 16.8 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
84309b95189a91f03e5161e5b279e7b571b58db1f52b9b8ea5ef6465aad0c899
|
|
BLAKE2b-256 checksum How to use checksums |
65ac6908a2af7035105f14ac0177d2d2268e759f897b61628f24b3b3ab07dbdc
|
| 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.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | docc_ai-0.8.0-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 |
5cbd2a8e8906023fc31e45c53649f48a630a28bcdc5a0b5dadc77f440f862b0a
|
|
BLAKE2b-256 checksum How to use checksums |
f2f4c281e9ecd58d4a6b9c7e5f9d6fd95bda1283dadc4ae5389a976ec7445c6b
|
| 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.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | docc_ai-0.8.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ba51f0b657d199f94008e0889b0c3f91e7d02a83716f77965c930edc25f5d2df
|
|
BLAKE2b-256 checksum How to use checksums |
0f2239e1c5543f94ba7cd139a615c072a9ab161cdc0b398f2228280b1e5525c4
|
| 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.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | docc_ai-0.8.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 16.8 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
bdc377b9115139555034f147de34827770ea34bcaf69c3713b7b2a47f90b2e53
|
|
BLAKE2b-256 checksum How to use checksums |
cd079fedb0b40775e3675bcb389590e601c5740761413808a50b99e14e3dfabc
|
| 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.0-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | docc_ai-0.8.0-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 |
734f9d42aa29b8c0a1a592c25942f7d851e1be74b4724d8a3e0769fc197904c4
|
|
BLAKE2b-256 checksum How to use checksums |
44242bf4c44ed17213dd7319afabb092b4c3aac79c2bedd049a003c501e215cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.14
|