forked from OSchip/llvm-project
parent
d94db9364d
commit
60444ad16f
|
@ -18,13 +18,13 @@ let TargetPrefix = "riscv" in {
|
|||
class MaskedAtomicRMW32Intrinsic
|
||||
: Intrinsic<[llvm_i32_ty],
|
||||
[llvm_anyptr_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<3>]>;
|
||||
|
||||
class MaskedAtomicRMW32WithSextIntrinsic
|
||||
: Intrinsic<[llvm_i32_ty],
|
||||
[llvm_anyptr_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
|
||||
llvm_i32_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<4>]>;
|
||||
|
||||
def int_riscv_masked_atomicrmw_xchg_i32 : MaskedAtomicRMW32Intrinsic;
|
||||
def int_riscv_masked_atomicrmw_add_i32 : MaskedAtomicRMW32Intrinsic;
|
||||
|
@ -38,18 +38,18 @@ def int_riscv_masked_atomicrmw_umin_i32 : MaskedAtomicRMW32Intrinsic;
|
|||
def int_riscv_masked_cmpxchg_i32
|
||||
: Intrinsic<[llvm_i32_ty], [llvm_anyptr_ty, llvm_i32_ty, llvm_i32_ty,
|
||||
llvm_i32_ty, llvm_i32_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<4>]>;
|
||||
|
||||
class MaskedAtomicRMW64Intrinsic
|
||||
: Intrinsic<[llvm_i64_ty],
|
||||
[llvm_anyptr_ty, llvm_i64_ty, llvm_i64_ty, llvm_i64_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<3>]>;
|
||||
|
||||
class MaskedAtomicRMW64WithSextIntrinsic
|
||||
: Intrinsic<[llvm_i64_ty],
|
||||
[llvm_anyptr_ty, llvm_i64_ty, llvm_i64_ty, llvm_i64_ty,
|
||||
llvm_i64_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<4>]>;
|
||||
|
||||
def int_riscv_masked_atomicrmw_xchg_i64 : MaskedAtomicRMW64Intrinsic;
|
||||
def int_riscv_masked_atomicrmw_add_i64 : MaskedAtomicRMW64Intrinsic;
|
||||
|
@ -63,6 +63,6 @@ def int_riscv_masked_atomicrmw_umin_i64 : MaskedAtomicRMW64Intrinsic;
|
|||
def int_riscv_masked_cmpxchg_i64
|
||||
: Intrinsic<[llvm_i64_ty], [llvm_anyptr_ty, llvm_i64_ty, llvm_i64_ty,
|
||||
llvm_i64_ty, llvm_i64_ty],
|
||||
[IntrArgMemOnly, NoCapture<0>]>;
|
||||
[IntrArgMemOnly, NoCapture<0>, ImmArg<4>]>;
|
||||
|
||||
} // TargetPrefix = "riscv"
|
||||
|
|
Loading…
Reference in New Issue