Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedro-ramalho/ignota-dialect
The MLIR Ignota dialect.
https://github.com/pedro-ramalho/ignota-dialect
compiler dialect llvm mlir
Last synced: 24 days ago
JSON representation
The MLIR Ignota dialect.
- Host: GitHub
- URL: https://github.com/pedro-ramalho/ignota-dialect
- Owner: pedro-ramalho
- Created: 2024-04-17T11:05:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T20:39:15.000Z (7 months ago)
- Last Synced: 2024-09-30T03:40:52.957Z (about 1 month ago)
- Topics: compiler, dialect, llvm, mlir
- Language: CMake
- Homepage:
- Size: 37.1 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MLIR Ignota Dialect
The Ignota dialect is being developed in collaboration with SPeCS as part of a scholarship initiative. The goal of this project is to provide comprehensive guidance on building a custom MLIR dialect from scratch.
## Getting Started
### Prerequisites
In order to run the project you must have a proper installation of LLVM and MLIR in your system. For a comprehensive list of the required packages necessary to build LLVM, please click [here](https://llvm.org/docs/GettingStarted.html#requirements).
### Dependencies
Dependencies include:
- CMake, version >= 3.20.0
- Ninja, version >= 1.10.0
- Clang, version >= 14.0.0### Utilities
For code editing features, navigation, analysis, suggestions and assistants, you may use LLVM's official LSP, Clangd. The file `.clangd` placed in the root of this repository provides a very simple configuration of this LSP.
### Building
When all pre-requisites are met, simply run:
```bash
mkdir build && cd build
cmake -G Ninja ..
cmake --build .
```If the building process is successful there should be a binary called `ignota-opt` located in `/build/bin/ignota-opt`, which is the entry point of the dialect.