summaryrefslogtreecommitdiff
path: root/www/compatibility.html
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-25 21:17:59 +0000
committerEric Christopher <echristo@apple.com>2010-10-25 21:17:59 +0000
commita473c9593bf50cd5d9ed2d36ea0b6210fcf45690 (patch)
tree8597d7abe014cbe7c0c09fa643358332e903398f /www/compatibility.html
parentd8f0ade43ee3f9d13d2d98b7a3d07468c2b4096e (diff)
downloadclang-a473c9593bf50cd5d9ed2d36ea0b6210fcf45690.tar.gz
Add and describe a quick script to migrate gcc builtins that clang doesn't
know about to the default APIs for x86 vector operations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'www/compatibility.html')
-rw-r--r--www/compatibility.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/www/compatibility.html b/www/compatibility.html
index bd22f9a8dc..68fd025929 100644
--- a/www/compatibility.html
+++ b/www/compatibility.html
@@ -141,6 +141,16 @@ mentioning these, the fix is simple: switch to the *mmintrin.h functions.</p>
architectures respectively. For these, make sure to use the &lt;arm_neon.h&gt;
and &lt;altivec.h&gt; headers.</p>
+<p>For x86 architectures this <a href="builtins.py">script</a> should help with
+the manual migration process. It will rewrite your source files in place to
+use the APIs instead of builtin function calls. Just call it like this:</p>
+
+<pre>
+ builtins.py *.c *.h
+</pre>
+
+<p>and it will rewrite all of the .c and .h files in the current directory to
+use the API calls instead of calls like <tt>__builtin_ia32_paddw128</tt>.</p>
<!-- ======================================================================= -->
<h3 id="lvalue-cast">Lvalue casts</h3>