2012-12-11 22:25:42 +01:00
|
|
|
//===-- AMDGPUIntrinsics.td - Common intrinsics -*- tablegen -*-----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines intrinsics that are used by all hw codegen targets.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
let TargetPrefix = "AMDGPU", isTarget = 1 in {
|
2014-06-12 23:15:44 +02:00
|
|
|
def int_AMDGPU_clamp : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>;
|
2014-06-25 00:13:39 +02:00
|
|
|
|
2012-12-11 22:25:42 +01:00
|
|
|
def int_AMDGPU_kill : Intrinsic<[], [llvm_float_ty], []>;
|
|
|
|
def int_AMDGPU_kilp : Intrinsic<[], [], []>;
|
2016-07-18 20:35:05 +02:00
|
|
|
|
|
|
|
// Deprecated in favor of llvm.amdgcn.sffbh
|
2016-01-26 05:29:56 +01:00
|
|
|
def int_AMDGPU_flbit_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
|
|
|
|
|
|
|
|
// Deprecated in favor of separate int_amdgcn_cube* intrinsics.
|
2012-12-11 22:25:42 +01:00
|
|
|
def int_AMDGPU_cube : Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
|
2016-01-26 05:29:56 +01:00
|
|
|
|
|
|
|
// Deprecated in favor of expanded bit operations
|
2014-03-31 20:21:18 +02:00
|
|
|
def int_AMDGPU_bfe_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
|
|
|
def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
2016-01-22 22:30:34 +01:00
|
|
|
|
2016-01-26 05:14:16 +01:00
|
|
|
// Deprecated in favor of llvm.amdgcn.rsq
|
|
|
|
def int_AMDGPU_rsq : Intrinsic<
|
|
|
|
[llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]
|
|
|
|
>;
|
2012-12-11 22:25:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
include "SIIntrinsics.td"
|