-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Add basic pass tutorial #7012
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for doing this. You can separate out the LLD bits and just push them to main.
You should also point out that a more complete tutorial about all aspects of MLIR design (CIRCT just being a set of MLIR dialects and passes) is available in the MLIR repo/documentation. In general, we need to plaster these types of comments all over the documentation.
There's nothing worse than an outdated tutorial, so as a future improvement we should separate out the pass, put the tutorial code in its own directory, and write tests for it.
#7018 Let me know if you all agree with the flags I added. |
Better? |
docs/GettingStarted.md
Outdated
@@ -67,7 +67,7 @@ $ mkdir llvm/build | |||
$ cd llvm/build | |||
$ cmake -G Ninja ../llvm \ | |||
-DLLVM_ENABLE_PROJECTS="mlir" \ | |||
-DLLVM_TARGETS_TO_BUILD="X86;RISCV" \ | |||
-DLLVM_TARGETS_TO_BUILD="s/X86;RISCV/host/" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah substitution error on my end, should be just host
…nto dev/dobios/docs-improvement
Getting Started contains a decent amount of info but lacks a good tutorial for people who want to quickly learn how to hack together a working CIRCT pass. This PR adds a really basic tutorial that hopefully does just that.
I also added the
-DLLVM_ENABLE_LLD=true
flag to the cmake tutorial, because everyone should be using lld, it reduces the memory usage during linking by orders of magnitude.Let me know what you all think!