builtin naming

Hi
   Sorry ...I know I should be mailing to the clang list but I am
waiting for my subscription.

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.

thanks
shrey

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