<div dir="ltr"><div>Have you thought of inserting intrinsics into the IR and then picking them up and removing them in the backend?</div><div><br></div><div>- Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 7:07 AM, Tyro Software via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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...) <div><br></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>