I read that llvm is backend having multiple frontend, c, c++, swift ... So, can I convert ir code based something to ir code based another? Or, can I just use ir code in different language project?
3
-
If you meant to ask whether you can generate IR in a commit for a new language: yes you can. If not, then you might perhaps clarify your question.– arntAug 9, 2021 at 10:39
-
I mean it is possible to use ir code generated such language in another frontend.– user14806483Aug 9, 2021 at 13:39
-
You can. It's not simple. For example, mapping inheritance, structure layout or exception handling will keep you busy. But it can be done.– arntAug 10, 2021 at 20:59
Add a comment
|