Kumail Ahmed via llvm-dev
2017-Feb-20 14:14 UTC
[llvm-dev] Question on GlobalISel Intermediate invariants
Hello, I just started using the GlobalISel framework. Is there a way to emit all intermediate invariants from IRTranslator to Instrution-Selection in a single instruction? It will be really handy. I mean something like '-save-temps' in clang. Best regards, Kumail Ahmed -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170220/d9f7ac36/attachment.html>
Kristof Beyls via llvm-dev
2017-Feb-20 15:00 UTC
[llvm-dev] Question on GlobalISel Intermediate invariants
Hi Kumail, I'm not aware of a clang option to dump out IR between specific passes. I think the one way to do it is to let clang generate llvm-ir, and feed that into llc, and let llc print out the IR after the pass you're interested in, e.g.: clang t.c -o- -S -emit-llvm | llc -global-isel -print-after=irtranslator If you want to see how the IR evolves after each pass, you can use the llc command line option -print-after-all. Is this what you were looking for? Thanks, Kristof> On 20 Feb 2017, at 15:14, Kumail Ahmed via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > Hello, > > I just started using the GlobalISel framework. > > Is there a way to emit all intermediate invariants from IRTranslator to Instrution-Selection in a single instruction? It will be really handy. I mean something like '-save-temps' in clang. > > Best regards, > Kumail Ahmed > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Daniel Sanders via llvm-dev
2017-Feb-20 16:38 UTC
[llvm-dev] Question on GlobalISel Intermediate invariants
Hi, There's also -print-machineinstrs which prints the MIR between each backend pass.> I'm not aware of a clang option to dump out IR between specific passes.You can pass options to the backend using -mllvm followed by the backend option. For example: clang -S hello.cpp -mllvm -print-after-all> On 20 Feb 2017, at 15:00, Kristof Beyls via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi Kumail, > > I'm not aware of a clang option to dump out IR between specific passes. > I think the one way to do it is to let clang generate llvm-ir, and feed that into llc, and let llc print out the IR after the pass you're interested in, e.g.: > clang t.c -o- -S -emit-llvm | llc -global-isel -print-after=irtranslator > > If you want to see how the IR evolves after each pass, you can use the llc command line option -print-after-all. > > Is this what you were looking for? > > Thanks, > > Kristof > > >> On 20 Feb 2017, at 15:14, Kumail Ahmed via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> >> Hello, >> >> I just started using the GlobalISel framework. >> >> Is there a way to emit all intermediate invariants from IRTranslator to Instrution-Selection in a single instruction? It will be really handy. I mean something like '-save-temps' in clang. >> >> Best regards, >> Kumail Ahmed >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Maybe Matching Threads
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel] Quick Status
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!
- [GlobalISel][AArch64] Toward flipping the switch for O0: Please give it a try!