[LLVMdev] Removing Intrinsic Functions

Eric Christopher echristo at apple.com
Wed Mar 28 17:03:47 PDT 2012


On Mar 28, 2012, at 4:08 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:

> There are a few instrinsic functions I would like to remove, is this possible? For example, the llvm.lifetime and llvm.dbg instrinsics? 
> 
> You can't simply iterate over the funciton and remove the call instructions, this causes issues. Is there a known structured way of doing this?

You could compare against the name of the intrinsic before you delete it and isa<DbgInfoIntrinsic>.

-eric




More information about the llvm-dev mailing list