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

Ahmed Samara via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 9 09:13:14 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180409/1cbd1f37/attachment.html>


More information about the llvm-dev mailing list