<div dir="ltr">I think you can refer to Dragonegg: <a href="http://dragonegg.llvm.org/">http://dragonegg.llvm.org/</a><div style>It uses gcc frontend and llvm backend and performs "gcc ir --> llvm ir" transformation internally.</div>
<div style><br></div><div style>regards.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/24 zhangxiongpang <span dir="ltr"><<a href="mailto:zhangxiongpang@gmail.com" target="_blank">zhangxiongpang@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="MARGIN:10px">
<div>Hi, <br><br> I have a compiler front-end, and it generates a
different IR* with LLVM IR. I want to use LLVM as my back-end, so perhaps I
should translate IR* to LLVM IR. Is there an existed library in LLVM for
generating LLVM IR from some format data? Or how does clang front-end generate
the LLVM IR? Can anyone give me some suggestions or some relative article
links? <br><br>Thanks, </div>
<div> </div>
<div><span>-- Zhang Xiongpang</span></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>杨勇勇 (Yang Yong-Yong)
</div>