Skip to content

Commit

Permalink
Merge pull request #3 from lambdaclass/fix
Browse files Browse the repository at this point in the history
prog
  • Loading branch information
edg-l authored Dec 9, 2024
2 parents 1e018d8 + 24d4126 commit 2d50a57
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Summary

- [Workshop Intro: About MLIR and LLVM](./about.md)
- [LLVM IR](./llvmir.md)
- [MLIR Basics](./mlir_basics.md)
- [Implementing the language: Part 1](./lang_1.md)
26 changes: 26 additions & 0 deletions docs/src/lang_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Implementing the language: 1

## Project Setup

### Dependencies
- Rust
- LLVM and MLIR

To install LLVM and MLIR you can do so through brew:

`brew install llvm@19` (This workshop uses LLVM/MLIR 19)

```bash
brew install llvm@19
git clone https://github.com/lambdaclass/mlir-workshop
cd mlir-workshop
```

For melior to find the library, we need to setup some env vars (tip, you can add them to `.zshenv`):
```bash
export MLIR_SYS_190_PREFIX="$(brew --prefix llvm@19)"
export LLVM_SYS_191_PREFIX="$(brew --prefix llvm@19)"
export TABLEGEN_190_PREFIX="$(brew --prefix llvm@19)"
```

TODO
Empty file removed docs/src/llvmir.md
Empty file.
15 changes: 15 additions & 0 deletions docs/src/mlir_basics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# MLIR and melior Basics

To use MLIR with Rust, the following library is used: <https://github.com/mlir-rs/melior>

This page explains a bit how to use it.

## The Context

## Module

## Operation

## Region

## Block

0 comments on commit 2d50a57

Please sign in to comment.