From 20bf339ded43fb85a15befb5281fa9ccdcdfb1aa Mon Sep 17 00:00:00 2001 From: MocusEZ Date: Thu, 8 Aug 2024 08:23:52 +0000 Subject: [PATCH] docs: update README --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 4384deb..4b25171 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -**Note: This repository is only for reference purposes, if you want to use it, you need to find your own solutions to configure** - # CMake MLIR Toy Tutorial -This contains sample code to support the tutorial on using MLIR for building a compiler for a simple Toy language. +This repository contains sample code to support the tutorial on using MLIR for building a compiler for a simple Toy language. -See [docs/Tutorials/Toy](../../docs/Tutorials/Toy) at the root of the project for more informations. +See [docs/Tutorials/Toy](https://github.com/llvm/llvm-project/tree/main/mlir/docs/Tutorials/Toy) for more information. In this repository, you can **run the MLIR toy tutorial (on Debian) without compile the LLVM project** 😋 ## Environment +**Notice: You should enable Debian sid source** + - Debian - CMake - Ninja-Build @@ -22,13 +22,8 @@ apt install llvm-18 clang-18 cmake ninja-build mlir-18-tools libmlir-18-dev ``` ## Note - -The `.td` file need run shell script to generate `.h` and `.cpp` , The reference shell script are on the folder - +If you want Debug, you have to install GDB ``` -mlir-tblgen-18 -gen-op-decls -I /usr/lib/llvm-18/include Ops.td > Ops.h.inc -mlir-tblgen-18 -gen-op-defs -I /usr/lib/llvm-18/include Ops.td > Ops.cpp.inc -mlir-tblgen-18 -gen-dialect-decls -I /usr/lib/llvm-18/include Ops.td > Dialect.h.inc -mlir-tblgen-18 -gen-dialect-defs -I /usr/lib/llvm-18/include Ops.td > Dialect.cpp.inc +apt install gdb ```