Tyro Software via llvm-dev
2016-Aug-29 11:07 UTC
[llvm-dev] Annotating DAG with locations for specific machine instructions
I have a target-specific LoopPass which checks loops to see whether some machine-specific instructions can be profitably used and needs to mark them in a way that can easily be seen during machine instruction lowering. So what I imagine could work is inserting pseudo-instructions, e.g. at the end of the loop header - but I haven't seen how to do this through IRBuilder or recognized an equivalent action being performed on other targets. Please point me at an example of this approach (or educate me on why it's never going to work...) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160829/afc4e4b9/attachment.html>
Nikos Stavropoulos via llvm-dev
2016-Aug-29 11:33 UTC
[llvm-dev] Annotating DAG with locations for specific machine instructions
if i understand well, Hexagon backend may have what you need. HexagonHardwareLoops.cpp to begin. On 29/08/2016 02:07 μμ, Tyro Software via llvm-dev wrote:> I have a target-specific LoopPass which checks loops to see whether > some machine-specific instructions can be profitably used and needs to > mark them in a way that can easily be seen during machine instruction > lowering. So what I imagine could work is inserting > pseudo-instructions, e.g. at the end of the loop header - but I > haven't seen how to do this through IRBuilder or recognized an > equivalent action being performed on other targets. Please point me at > an example of this approach (or educate me on why it's never going to > work...) > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Nikos Stavropoulos Compiler Engineer Think-Silicon http://www.think-silicon.com Patras Science Park 26504, Patras, Greece tel: +30 2610 911543 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160829/39015c42/attachment.html>
Ryan Taylor via llvm-dev
2016-Aug-29 12:07 UTC
[llvm-dev] Annotating DAG with locations for specific machine instructions
Have you thought of inserting intrinsics into the IR and then picking them up and removing them in the backend? - Ryan On Mon, Aug 29, 2016 at 7:07 AM, Tyro Software via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I have a target-specific LoopPass which checks loops to see whether some > machine-specific instructions can be profitably used and needs to mark them > in a way that can easily be seen during machine instruction lowering. So > what I imagine could work is inserting pseudo-instructions, e.g. at the end > of the loop header - but I haven't seen how to do this through IRBuilder or > recognized an equivalent action being performed on other targets. Please > point me at an example of this approach (or educate me on why it's never > going to work...) > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160829/5d2a4a45/attachment.html>