[LLVMdev] About implementing new intrinsic
Chris Lattner
sabre at nondot.org
Sat Mar 31 13:38:33 PDT 2007
>> 3. Can I introduce an intrinsic that is actually a call to my function
>> that implements the logic? I suppose it is possible but unfortunately
>> I couldn't figure it out. For example, in GCC we can write an
>> intrinsic that translates to a C code.
>
> As part of PR1297 (http://llvm.org/PR1297) I am about to make this
> happen. There are certain kinds of intrinsics that want to have a
> function body generated for them if a target or code generator cannot
> handle the intrinsic natively. For example, the company I work for has
IntrinsicLowering already does this. It lets you lower intrinsics to
arbitrary LLVM calls, including calls to external functions.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list