[LLVMdev] About implementing new intrinsic

Ferad Zyulkyarov feradz at gmail.com
Sat Mar 31 13:38:32 PDT 2007


> >> 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.

I will throw a look how bswap is implemented. Currently I work on the
1.9 source.. are these features available there or I should checkout
from svn?

Thanks again for your helpful advices,
Ferad

-- 
Ferad Zyulkyarov
Barcelona Supercomputing Center



More information about the llvm-dev mailing list