[llvm-dev] Rewriting LLVM IR intrinsic functions

serge guelton via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 10 02:09:37 PDT 2015


On Thu, Sep 10, 2015 at 04:20:01PM +0800, Dipanjan Das via llvm-dev wrote:
> Hello,
> 
> I can see the occurrences of several LLVM intrinsic functions in the LLVM
> IR generated by llvm-dis disassembler. Is there any means to rewrite these
> functions reliably using basic LLVM IR statements?

You can use `LowerIntrinsicCall` from "llvm/CodeGen/IntrinsicLowering.h"
to do so.

It doesn't seem to be designed to be called from a pass, but with a few
checks it does the job right.


More information about the llvm-dev mailing list