Sudakshina Dutta via llvm-dev
2021-Feb-22 11:23 UTC
[llvm-dev] A beginner's tutorial about LLVM IR
Dear all, 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. Thanks, Sudakshina -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210222/135e15d2/attachment.html>
Stefanos Baziotis via llvm-dev
2021-Feb-22 12:27 UTC
[llvm-dev] A beginner's tutorial about LLVM IR
Hi Sudakshina, Here's a tutorial that I think will be helpful: https://www.youtube.com/watch?v=m8G_S5LwlTo Best, Stefanos Στις Δευ, 22 Φεβ 2021 στις 1:23 μ.μ., ο/η Sudakshina Dutta via llvm-dev < llvm-dev at lists.llvm.org> έγραψε:> Dear all, > > 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. > > Thanks, > Sudakshina > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210222/9ca18ef8/attachment.html>
Shivam Gupta via llvm-dev
2021-Feb-22 13:28 UTC
[llvm-dev] A beginner's tutorial about LLVM IR
Hello, 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. Best, Shivam On Mon, Feb 22, 2021 at 4:53 PM Sudakshina Dutta via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Dear all, > > 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. > > Thanks, > Sudakshina > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210222/07dffdf1/attachment.html>