2019 EuroLLVM Developers’ Meeting: V. Bridgers & F. Piovezan “LLVM IR Tutorial - Phis, GEPs ...”

preview_player
Показать описание

LLVM IR Tutorial - Phis, GEPs and other things, oh my! - Vince Bridgers (Intel Corporation), Felipe de Azevedo Piovezan (Intel Corporation)


LLVM intermediate representation (IR) is the abstract description machine operations used to translate LLVM front ends to a form that's executable by a target machine. Optimizations and transformations are performed on the IR by the LLVM library to create executable images. This tutorial will introduce the IR syntax, describe basic tools for manipulating IR formats, and describe mappings of IR from various common source code control structures. Tutorial materials with specific examples will be made available for the tutorial presentation, and for offline review.

Рекомендации по теме
Комментарии
Автор

This is a big help. The lang ref and docs are kind of scary when you have no background info.
Now I feel like I can go in and read them with a lot less confusion. Thanks!

miguelmuscat
Автор

Always find myself coming back to this talk. It's clear and concise! 👍

Jan_Jan_
Автор

The presentation is well-designed for beginners.
Thank you for the tutorial!

eopXD
Автор

Nice tutorial, but it seems that there's a small mistake in the example (13:20):
recursive_base should be
```
recursive_base:
%1 = add i32 -1, %val
%2 = call i32 @factorial(i32 %1)
%3 = mul i32 %val, %2
ret i32 %3
```

higuoxing
Автор

Probably the best talk on this channel

hampus
Автор

Thank. This is very helpful. Excellent tutorial.

osdtconf
Автор

Nice and clear explaination. Thank you.

omerguzel
Автор

This is great. I have to write a small IR compiler(while having no idea what LLVM IR is) and this was of great help.

jortz
Автор

Is any of this changed by LLVM opaque pointers?

abuyoyo
Автор

кто по ссылке from Konstantin Vladimirov?

apivovarov
Автор

13:24 haha the IR is wrong, its supposed to return %3 not %2

KeithMakank