[cfe-commits] r116202 - in /cfe/trunk: include/clang/Basic/Builtins.def test/Parser/MicrosoftExtensions.c
Francois Pichet
pichet2000 at gmail.com
Mon Oct 11 05:00:10 PDT 2010
Author: fpichet
Date: Mon Oct 11 07:00:10 2010
New Revision: 116202
URL: http://llvm.org/viewvc/llvm-project?rev=116202&view=rev
Log:
Add 2 Microsoft compiler intrinsics that don't require prototypes:
__assume
__noop
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
cfe/trunk/test/Parser/MicrosoftExtensions.c
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=116202&r1=116201&r2=116202&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Mon Oct 11 07:00:10 2010
@@ -498,7 +498,9 @@
BUILTIN(__builtin_index, "c*cC*i", "Fn")
BUILTIN(__builtin_rindex, "c*cC*i", "Fn")
-
+// Microsoft builtins.
+BUILTIN(__assume, "vb", "n")
+BUILTIN(__noop, "v.", "n")
// C99 library functions
// C99 stdlib.h
Modified: cfe/trunk/test/Parser/MicrosoftExtensions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.c?rev=116202&r1=116201&r2=116202&view=diff
==============================================================================
--- cfe/trunk/test/Parser/MicrosoftExtensions.c (original)
+++ cfe/trunk/test/Parser/MicrosoftExtensions.c Mon Oct 11 07:00:10 2010
@@ -78,3 +78,11 @@
// FIXME, this must not compile
_uuidof(c);
}
+
+
+void ms_intrinsics(int a)
+{
+ __noop();
+ __assume(a);
+
+}
More information about the cfe-commits
mailing list