[llvm-dev] Why does Clang use GCCBuiltInFunctions? How can intrinsics that don't depend on GCC be added?

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 9 09:37:56 PDT 2018


It doesn't depend on GCC, it's just a way to provide a name for the 
intrinsic.

-Krzysztof

On 4/9/2018 11:13 AM, Ahmed Samara via llvm-dev wrote:
> http://llvm.org/doxygen/namespacellvm_1_1Intrinsic.html#a441f366e90feb68d310546c271bcd31e
> 
> 
> I noticed that there are a lot of intrinsice in 
> `include/llvm/IR/Intrinsics*.td` that reference GCCBultIn, and looking 
> at the functions they're referencing it seems to be based on things 
> already built into GCC. Why is it done this way instead of just building 
> them from scratch (or importing the functions themselves) instead of 
> depending on gcc? Is building target-specific intrinsics from scratch 
> problematic?
> 
> -- 
> Ahmed Samara
> PhD Student Computer Engineering
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list