[LLVMdev] About implementing new intrinsic

Chris Lattner sabre at nondot.org
Sat Mar 31 15:02:24 PDT 2007


On Sat, 31 Mar 2007, Ferad Zyulkyarov wrote:
>> IntrinsicLowering already does this.  It lets you lower intrinsics to
>> arbitrary LLVM calls, including calls to external functions.
>
> I will try to do that in IntrinscLowering class. May you point me an
> intrinsic implementation that lowers to an llvm call.

bswap expands into a series of shifts and or's, for example.  It would be 
straight-forward to expand it into a libcall if you desired.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list