diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2008-06-14 05:48:15 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2008-06-14 05:48:15 +0000 |
commit | 507a58ac9b20ddcea2e56a014be26b8f8cc0ecb8 (patch) | |
tree | 53d5d29cee43a7eb314904ce4ada56e735f3efea /include | |
parent | c5dc660ea0b153904de601eadd40fa4962c8c71c (diff) | |
download | external_llvm-507a58ac9b20ddcea2e56a014be26b8f8cc0ecb8.zip external_llvm-507a58ac9b20ddcea2e56a014be26b8f8cc0ecb8.tar.gz external_llvm-507a58ac9b20ddcea2e56a014be26b8f8cc0ecb8.tar.bz2 |
add missing atomic intrinsic from gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 1 | ||||
-rw-r--r-- | include/llvm/Intrinsics.td | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index c2e4f1f..d784826 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -615,6 +615,7 @@ namespace ISD { ATOMIC_LOAD_AND, ATOMIC_LOAD_OR, ATOMIC_LOAD_XOR, + ATOMIC_LOAD_NAND, ATOMIC_LOAD_MIN, ATOMIC_LOAD_MAX, ATOMIC_LOAD_UMIN, diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index 633063e..18c42e4 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -302,6 +302,11 @@ def int_atomic_load_xor : Intrinsic<[llvm_anyint_ty, LLVMMatchType<0>], [IntrWriteArgMem]>, GCCBuiltin<"__sync_fetch_and_xor">; +def int_atomic_load_nand : Intrinsic<[llvm_anyint_ty, + LLVMPointerType<LLVMMatchType<0>>, + LLVMMatchType<0>], + [IntrWriteArgMem]>, + GCCBuiltin<"__sync_fetch_and_nand">; def int_atomic_load_min : Intrinsic<[llvm_anyint_ty, LLVMPointerType<LLVMMatchType<0>>, LLVMMatchType<0>], |