[LLVMdev] builtin naming
Eli Friedman
eli.friedman at gmail.com
Thu May 27 16:59:14 PDT 2010
On Thu, May 27, 2010 at 4:40 PM, shreyas krishnan <shreyas76 at gmail.com> wrote:
> Hi
> Sorry ...I know I should be mailing to the clang list but I am
> waiting for my subscription.
You can send mail to cfe-dev without a subscription; it'll just be
delayed until it goes through moderation.
> My question is on how to name my builtin in source if i have a
> intrinsic definition like
>
> def int_mytarget_get_id : : Intrinsic<[llvm_i32_ty], [llvm_i32_ty]>;
>
>
> I tried
> __builtin_mytarget_get_id and clang still didnt generate my intrinsic.
You have to explicitly add builtins to clang; see
clang/include/clang/Basic/Builtins.def. Also, you need to mark the
builtin as with "GCCBuiltin".
-Eli
More information about the llvm-dev
mailing list