[llvm-dev] A beginner's tutorial about LLVM IR

Shivam Gupta via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 22 05:28:18 PST 2021


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>


More information about the llvm-dev mailing list