[AMDGPU][PATCH 1/3] Addition of the new intrinsics in AMDGPUIntrinsics.td
Tom Stellard
tom at stellard.net
Fri Aug 22 10:16:30 PDT 2014
On Fri, Aug 22, 2014 at 02:33:40AM +0200, Hilloulin Damien wrote:
> This patch adds the definitions of the intrisics used for
> barriers/memory fences support.
>
> Signed-off-by: Damien Hilloulin <damien.hilloulin at supelec.fr>
> ---
> lib/Target/R600/AMDGPUIntrinsics.td | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/lib/Target/R600/AMDGPUIntrinsics.td
> b/lib/Target/R600/AMDGPUIntrinsics.td
I think we should put these in include/llvm/IntrinsicsR600.td so
we can clang builtins for them.
-Tom
> index eee9c29..bee195a 100644
> --- a/lib/Target/R600/AMDGPUIntrinsics.td
> +++ b/lib/Target/R600/AMDGPUIntrinsics.td
> @@ -68,8 +68,19 @@ let TargetPrefix = "AMDGPU", isTarget = 1 in {
> def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty,
> llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
> def int_AMDGPU_bfm : Intrinsic<[llvm_i32_ty], [llvm_i32_ty,
> llvm_i32_ty], [IntrNoMem]>;
> def int_AMDGPU_brev : Intrinsic<[llvm_i32_ty], [llvm_i32_ty],
> [IntrNoMem]>;
> + def int_AMDGPU_barrier_nofence : Intrinsic<[], [], []>;
> def int_AMDGPU_barrier_local : Intrinsic<[], [], []>;
> def int_AMDGPU_barrier_global : Intrinsic<[], [], []>;
> + def int_AMDGPU_barrier_localglobal : Intrinsic<[], [], []>;
> + def int_AMDGPU_mem_fence_local : Intrinsic<[], [], []>;
> + def int_AMDGPU_mem_fence_global : Intrinsic<[], [], []>;
> + def int_AMDGPU_mem_fence_localglobal : Intrinsic<[], [], []>;
> + def int_AMDGPU_read_mem_fence_local : Intrinsic<[], [], []>;
> + def int_AMDGPU_read_mem_fence_global : Intrinsic<[], [], []>;
> + def int_AMDGPU_read_mem_fence_localglobal : Intrinsic<[], [], []>;
> + def int_AMDGPU_write_mem_fence_local : Intrinsic<[], [], []>;
> + def int_AMDGPU_write_mem_fence_global : Intrinsic<[], [], []>;
> + def int_AMDGPU_write_mem_fence_localglobal : Intrinsic<[], [], []>;
> }
>
> // Legacy names for compatibility.
> --
> 1.9.1
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list