[cfe-commits] r101858 - /cfe/trunk/include/clang/Basic/Builtins.def

Chris Lattner sabre at nondot.org
Mon Apr 19 18:31:15 PDT 2010


Author: lattner
Date: Mon Apr 19 20:31:15 2010
New Revision: 101858

URL: http://llvm.org/viewvc/llvm-project?rev=101858&view=rev
Log:
add __builtin_[r]index.  Perhaps all LIBBUILTIN's should get 
these or something?

Modified:
    cfe/trunk/include/clang/Basic/Builtins.def

Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=101858&r1=101857&r2=101858&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Mon Apr 19 20:31:15 2010
@@ -348,12 +348,9 @@
 
 BUILTIN(__builtin_expect, "LiLiLi"   , "nc")
 BUILTIN(__builtin_prefetch, "vvC*.", "nc")
-BUILTIN(__builtin_abort, "v", "Fnr")
 BUILTIN(__builtin_trap, "v", "nr")
 BUILTIN(__builtin_unreachable, "v", "nr")
-
 BUILTIN(__builtin_shufflevector, "v."   , "nc")
-
 BUILTIN(__builtin_alloca, "v*z"   , "n")
 
 // "Overloaded" Atomic operator builtins.  These are overloaded to support data
@@ -475,6 +472,13 @@
 BUILTIN(__sync_fetch_and_umin, "UiUi*Ui", "n")
 BUILTIN(__sync_fetch_and_umax, "UiUi*Ui", "n")
 
+// Random libc builtins.
+BUILTIN(__builtin_abort, "v", "Fnr")
+BUILTIN(__builtin_index, "c*cC*i", "Fn")
+BUILTIN(__builtin_rindex, "c*cC*i", "Fn")
+
+
+
 // C99 library functions
 // C99 stdlib.h
 LIBBUILTIN(abort, "v",            "fr",    "stdlib.h")





More information about the cfe-commits mailing list