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<[], [], []>;
20 // Deprecated in favor of llvm.amdgcn.sffbh
21 def int_AMDGPU_flbit_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
23 // Deprecated in favor of separate int_amdgcn_cube* intrinsics.
24 def int_AMDGPU_cube : Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
26 // Deprecated in favor of expanded bit operations
27 def int_AMDGPU_bfe_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
28 def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
30 // Deprecated in favor of llvm.amdgcn.rsq
31 def int_AMDGPU_rsq : Intrinsic<
32 [llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]
36 include "SIIntrinsics.td"