I am a professor who wants my students to write a very simple compiler using LLVM. The students will have their own frontends. They will generate machine code after converting their codes to LLVM IR. I just want them to have the basic understanding of LLVM IR. Which tutorial will be best to learn the basics of LLVM IR ? I understand that the documentation in the link https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html is the best document; however, I also understand that this is very elaborate for a beginner to LLVM.
Here’s a tutorial that I think will be helpful: https://www.youtube.com/watch?v=m8G_S5LwlTo
Στις Δευ, 22 Φεβ 2021 στις 1:23 μ.μ., ο/η Sudakshina Dutta via llvm-dev <email@example.com> έγραψε:
It would be very helpful if in the learning process a few of your interested students update the OCaml Kaleidoscope. It is similar to the tutorial written in C++ but not updated from a long time.
Currently, It is not in the trunk of the LLVM mono repo but can be found in 11.0.0 here- https://releases.llvm.org/11.0.0/docs/tutorial/index.html#kaleidoscope-implementing-a-language-with-llvm-in-objective-caml.
They may have a good chance to learn LLVM IR, LLVM APIs, OCaml binding, writing test cases in LLVM IR using lit and filecheck, patch review process with Phabricator instance (https://reviews.llvm.org/), etc.