1 //===-- AMDGPUIntrinsics.td - Common intrinsics -*- tablegen -*-----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines intrinsics that are used by all hw codegen targets.
12 //===----------------------------------------------------------------------===//
14 let TargetPrefix = "AMDGPU", isTarget = 1 in {
15 def int_AMDGPU_clamp : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>;
17 def int_AMDGPU_kill : Intrinsic<[], [llvm_float_ty], []>;
18 def int_AMDGPU_kilp : Intrinsic<[], [], []>;
19 def int_AMDGPU_flbit_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
21 // Deprecated in favor of separate int_amdgcn_cube* intrinsics.
22 def int_AMDGPU_cube : Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
24 // Deprecated in favor of expanded bit operations
25 def int_AMDGPU_bfe_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
26 def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
28 // Deprecated in favor of llvm.amdgcn.rsq
29 def int_AMDGPU_rsq : Intrinsic<
30 [llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]
33 // Deprecated in favor of llvm.amdgcn.read.workdim
34 def int_AMDGPU_read_workdim : Intrinsic<[llvm_i32_ty], [], [IntrNoMem]>;
37 include "SIIntrinsics.td"