Hello, Clang is used before LLVM to generate IR, and is it possible to use it in a reverse way, i.e., after running LLVM passes, we can run clang again to use LLVM pass results? If so, should I write clang functions in LLVM passes, or write LLVM pass requirements in clang? Thank you in advance! Padefic -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140611/206514e9/attachment.html>
Eli Bendersky
2014-Jun-12 15:58 UTC
[LLVMdev] A question about running Clang after LLVM passes
On Wed, Jun 11, 2014 at 12:41 AM, Padefic <padefic at 126.com> wrote:> Hello, > > Clang is used before LLVM to generate IR, and is it possible to use it in > a reverse way, i.e., after running LLVM passes, we can run clang again to > use LLVM pass results? If so, should I write clang functions in LLVM > passes, or write LLVM pass requirements in clang? > > Thank you in advance! >Clang does not consume LLVM IR, so the answer is no. What are you trying to do? Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140612/416acce4/attachment.html>
Bruce Hoult
2014-Jun-12 20:43 UTC
[LLVMdev] A question about running Clang after LLVM passes
However, LLVM can output using the C back end ... which you can then feed into Clang. On Fri, Jun 13, 2014 at 3:58 AM, Eli Bendersky <eliben at google.com> wrote:> > > > On Wed, Jun 11, 2014 at 12:41 AM, Padefic <padefic at 126.com> wrote: > >> Hello, >> >> Clang is used before LLVM to generate IR, and is it possible to use it in >> a reverse way, i.e., after running LLVM passes, we can run clang again to >> use LLVM pass results? If so, should I write clang functions in LLVM >> passes, or write LLVM pass requirements in clang? >> >> Thank you in advance! >> > > > Clang does not consume LLVM IR, so the answer is no. What are you trying > to do? > > Eli > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140613/0042acee/attachment.html>
Apparently Analagous Threads
- [LLVMdev] A question about running Clang after LLVM passes
- [LLVMdev] A question about running Clang after LLVM passes
- [LLVMdev] Creating and implementing an analysis group out of tree
- [LLVMdev] llvm-config curses-related failures
- [LLVMdev] Creating and implementing an analysis group out of tree