├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── demo1-mlir-motivation ├── demo1.cpp ├── linalg_lib.h └── tensor.h ├── demo2-entering-mlir └── demo2.mlir ├── demo3-lowering-mlir ├── clean.sh ├── demo3-0-linalg-on-tensor.mlir ├── demo3-1-linalg-on-memref.mlir ├── demo3-2-loops.mlir ├── demo3-3-branches.mlir ├── demo3-4-llvm.mlir ├── demo3-5.ll └── lower.sh ├── demo4-optimizing-mlir-with-affine-analysis ├── clean.sh ├── demo4-0-linalg-on-tensor.mlir ├── demo4-1-linalg-on-memref.mlir ├── demo4-2-affine.mlir ├── demo4-3-affine-fused.mlir ├── demo4-4-affine-fused-tiled.mlir ├── demo4-5-loops.mlir └── optimize.sh └── resources ├── .gitignore ├── AffineAnalysisIntro.drawio ├── AffineAnalysisIntro.png ├── AffineLoweringDialectDiagram.drawio ├── AffineLoweringDialectDiagram.png ├── LinalgOnTensorDFG.drawio ├── LinalgOnTensorDFG.png ├── LoweringDialectDiagram.drawio └── LoweringDialectDiagram.png /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /demo1-mlir-motivation/demo1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo1-mlir-motivation/demo1.cpp -------------------------------------------------------------------------------- /demo1-mlir-motivation/linalg_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo1-mlir-motivation/linalg_lib.h -------------------------------------------------------------------------------- /demo1-mlir-motivation/tensor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo1-mlir-motivation/tensor.h -------------------------------------------------------------------------------- /demo2-entering-mlir/demo2.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo2-entering-mlir/demo2.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/clean.sh -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-0-linalg-on-tensor.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-0-linalg-on-tensor.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-1-linalg-on-memref.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-1-linalg-on-memref.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-2-loops.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-2-loops.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-3-branches.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-3-branches.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-4-llvm.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-4-llvm.mlir -------------------------------------------------------------------------------- /demo3-lowering-mlir/demo3-5.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/demo3-5.ll -------------------------------------------------------------------------------- /demo3-lowering-mlir/lower.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo3-lowering-mlir/lower.sh -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/clean.sh -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-0-linalg-on-tensor.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-0-linalg-on-tensor.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-1-linalg-on-memref.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-1-linalg-on-memref.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-2-affine.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-2-affine.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-3-affine-fused.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-3-affine-fused.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-4-affine-fused-tiled.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-4-affine-fused-tiled.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/demo4-5-loops.mlir: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/demo4-5-loops.mlir -------------------------------------------------------------------------------- /demo4-optimizing-mlir-with-affine-analysis/optimize.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/demo4-optimizing-mlir-with-affine-analysis/optimize.sh -------------------------------------------------------------------------------- /resources/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore temporary files created by draw.io 2 | *.bkp 3 | 4 | -------------------------------------------------------------------------------- /resources/AffineAnalysisIntro.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/AffineAnalysisIntro.drawio -------------------------------------------------------------------------------- /resources/AffineAnalysisIntro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/AffineAnalysisIntro.png -------------------------------------------------------------------------------- /resources/AffineLoweringDialectDiagram.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/AffineLoweringDialectDiagram.drawio -------------------------------------------------------------------------------- /resources/AffineLoweringDialectDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/AffineLoweringDialectDiagram.png -------------------------------------------------------------------------------- /resources/LinalgOnTensorDFG.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/LinalgOnTensorDFG.drawio -------------------------------------------------------------------------------- /resources/LinalgOnTensorDFG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/LinalgOnTensorDFG.png -------------------------------------------------------------------------------- /resources/LoweringDialectDiagram.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/LoweringDialectDiagram.drawio -------------------------------------------------------------------------------- /resources/LoweringDialectDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexandreSinger/mlir-beginner-friendly-tutorial/HEAD/resources/LoweringDialectDiagram.png --------------------------------------------------------------------------------