[llvm-dev] Add a custom intrinsic to the ARM backend

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 10 06:30:30 PST 2017

Hi Max,

On 10 February 2017 at 02:12, Max Muster via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Can someone guide me on how to proceed and emit machine instructions for
> that intrinsic?

Next step is probably to handle FOO_CMP in ARMExpandPseudoInsts.cpp.
It's a pass that runs after most optimizations (maybe even all) so
it's where most sensitive pseudo-instructions are expanded.

There's plenty of other examples of how to do it in that file (the
ExpandMI function), all following pretty similar patterns.



More information about the llvm-dev mailing list