<div dir="ltr"><div dir="ltr"><div dir="ltr">This was removed because it bit-rotted. Nobody was maintaining it as IR changed, nor was it the best way to write IR.<div><br></div><div>You'll probably want to walk through your AST and use an IRBuilder similar to the description in the Kaleidoscope tutorial.</div><div><a href="https://llvm.org/docs/tutorial/index.html">https://llvm.org/docs/tutorial/index.html</a></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Feb 2019 at 13:32, Yafei Liu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi, I'm learning to build a compiler for my toy language, and LLVM is totally a new thing for me. I feel hard to turn an AST to the C++ API code, and sometimes I have to write some C++ source code and turn it into IR code to find some clue, but most time this will not help, I don't know what API I should use even if I got the IR code.<div><br></div><div>I search for a long time and find that there used to be a backend which can turn IR code back to C++ API code called "cpp", but it is removed. And there used to be a online demo page which can do this, can it is disabled.</div><div><br></div><div>So is there still a way to turn IR code back to C++ API? If not, what the best way to learn how to represent AST by using C++ APIs?</div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>