]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/AMDGPU/AMDGPUIntrinsics.td
Merge ^/head r314482 through r314522.
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / Target / AMDGPU / AMDGPUIntrinsics.td
1 //===-- AMDGPUIntrinsics.td - Common intrinsics  -*- tablegen -*-----------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines intrinsics that are used by all hw codegen targets.
11 //
12 //===----------------------------------------------------------------------===//
13
14 let TargetPrefix = "AMDGPU", isTarget = 1 in {
15   def int_AMDGPU_clamp : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>;
16
17   def int_AMDGPU_kill : Intrinsic<[], [llvm_float_ty], []>;
18   def int_AMDGPU_kilp : Intrinsic<[], [], []>;
19
20   // Deprecated in favor of llvm.amdgcn.sffbh
21   def int_AMDGPU_flbit_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
22
23   // Deprecated in favor of separate int_amdgcn_cube* intrinsics.
24   def int_AMDGPU_cube : Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
25
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]>;
29
30   // Deprecated in favor of llvm.amdgcn.rsq
31   def int_AMDGPU_rsq : Intrinsic<
32     [llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]
33   >;
34 }
35
36 include "SIIntrinsics.td"