[LLVMdev] inserting a target specific builtin in llvm pass
Duncan Sands
baldrick at free.fr
Tue Nov 27 00:17:49 PST 2012
Hi Sam,
> I'm writing a pass which needs to insert an intrinsic in for my target, but
> I'm not sure how to create the call. I've tried defining a function, with
> the target intrinsic as its name, and then creating a new CallInst to call
> it. But how am I supposed to declare this function as an intrinsic?
you don't have to do anything special for intrinsics, you can just declare them
like any other function declaration.
Ciao, Duncan.
More information about the llvm-dev
mailing list