forked from OSchip/llvm-project
parent
2a30ea6269
commit
b9bd5a879d
|
@ -265,18 +265,23 @@ def int_init_trampoline : Intrinsic<[llvm_ptr_ty, llvm_ptr_ty, llvm_ptr_ty,
|
||||||
//===------------------------- Atomic Intrinsics --------------------------===//
|
//===------------------------- Atomic Intrinsics --------------------------===//
|
||||||
//
|
//
|
||||||
def int_memory_barrier : Intrinsic<[llvm_void_ty, llvm_i1_ty, llvm_i1_ty,
|
def int_memory_barrier : Intrinsic<[llvm_void_ty, llvm_i1_ty, llvm_i1_ty,
|
||||||
llvm_i1_ty, llvm_i1_ty, llvm_i1_ty], []>;
|
llvm_i1_ty, llvm_i1_ty, llvm_i1_ty], []>;
|
||||||
|
|
||||||
def int_atomic_lcs : Intrinsic<[llvm_anyint_ty, LLVMPointerType<LLVMMatchType<0>>,
|
def int_atomic_lcs : Intrinsic<[llvm_anyint_ty,
|
||||||
|
LLVMPointerType<LLVMMatchType<0>>,
|
||||||
LLVMMatchType<0>, LLVMMatchType<0>],
|
LLVMMatchType<0>, LLVMMatchType<0>],
|
||||||
[IntrWriteArgMem]>, GCCBuiltin<"__sync_val_compare_and_swap">;
|
[IntrWriteArgMem]>,
|
||||||
def int_atomic_las : Intrinsic<[llvm_anyint_ty, LLVMPointerType<LLVMMatchType<0>>,
|
GCCBuiltin<"__sync_val_compare_and_swap">;
|
||||||
|
def int_atomic_las : Intrinsic<[llvm_anyint_ty,
|
||||||
|
LLVMPointerType<LLVMMatchType<0>>,
|
||||||
LLVMMatchType<0>],
|
LLVMMatchType<0>],
|
||||||
[IntrWriteArgMem]>, GCCBuiltin<"__sync_fetch_and_add">;
|
[IntrWriteArgMem]>,
|
||||||
def int_atomic_swap : Intrinsic<[llvm_anyint_ty, LLVMPointerType<LLVMMatchType<0>>,
|
GCCBuiltin<"__sync_fetch_and_add">;
|
||||||
|
def int_atomic_swap : Intrinsic<[llvm_anyint_ty,
|
||||||
|
LLVMPointerType<LLVMMatchType<0>>,
|
||||||
LLVMMatchType<0>],
|
LLVMMatchType<0>],
|
||||||
[IntrWriteArgMem]>, GCCBuiltin<"__sync_lock_test_and_set">;
|
[IntrWriteArgMem]>,
|
||||||
|
GCCBuiltin<"__sync_lock_test_and_set">;
|
||||||
|
|
||||||
//===-------------------------- Other Intrinsics --------------------------===//
|
//===-------------------------- Other Intrinsics --------------------------===//
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue