[cfe-dev] Is there an existed library in LLVM for generating LLVM IR from some format data?

杨勇勇 triple.yang at gmail.com
Sun Jun 23 20:57:09 PDT 2013


I think you can refer to Dragonegg: http://dragonegg.llvm.org/
It uses gcc frontend and llvm backend and performs "gcc ir -->  llvm ir"
transformation internally.

regards.


2013/6/24 zhangxiongpang <zhangxiongpang at gmail.com>

> **
> Hi,
>
>     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?
>
> Thanks,
>
> -- Zhang Xiongpang
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


-- 
杨勇勇 (Yang Yong-Yong)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130624/f8fcc3fa/attachment.html>


More information about the cfe-dev mailing list