diff options
author | JF Bastien <jfb@chromium.org> | 2013-08-01 15:05:44 -0700 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2013-08-01 15:05:44 -0700 |
commit | e801395572ecfeb5ba913c4064944ed7fac3e806 (patch) | |
tree | 6a2fcc5d328480c472bd795644d08053e5796f83 | |
parent | 548960c21c590dcd4919a1bba000e989c140c8ef (diff) |
Add the __nacl_atomic_is_lock_free builtin
This is part of a bigger CL to fix C++11 in PNaCl, to commit in the following order:
- https://codereview.chromium.org/20552002
- https://codereview.chromium.org/20554002
- https://codereview.chromium.org/20560002
- https://codereview.chromium.org/20561002
This change is needed in Clang so that it can recognize the builtin and translate it to the intrinsic that 20554002 adds.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3475
TEST= ./scons run_synchronization_cpp11_test --verbose bitcode=1 platform=x86-64
R=dschuff@chromium.org
Review URL: https://codereview.chromium.org/20552002
-rw-r--r-- | include/clang/Basic/Builtins.def | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index 0a513efdbc..f195d896cb 100644 --- a/include/clang/Basic/Builtins.def +++ b/include/clang/Basic/Builtins.def @@ -936,5 +936,10 @@ BUILTIN(__builtin_subc, "UiUiCUiCUiCUi*", "n") BUILTIN(__builtin_subcl, "ULiULiCULiCULiCULi*", "n") BUILTIN(__builtin_subcll, "ULLiULLiCULLiCULLiCULLi*", "n") +// @LOCALMOD-BEGIN +// NaCl builtins. +BUILTIN(__nacl_atomic_is_lock_free, "bzvCD*", "n") +// @LOCALMOD-END + #undef BUILTIN #undef LIBBUILTIN |