[llvm-dev] Annotating DAG with locations for specific machine instructions

Ryan Taylor via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 29 05:07:27 PDT 2016


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>


More information about the llvm-dev mailing list