blob: eeb6ca2c7b6f7d32cd31bd4aef8e77cec29e3b7f [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===-- R600Intrinsics.td - R600 Instrinsic defs -------*- 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// R600 Intrinsic Definitions
11//
12//===----------------------------------------------------------------------===//
13
14let TargetPrefix = "R600", isTarget = 1 in {
Vincent Lejeuned3eed662013-05-17 16:50:20 +000015 class TextureIntrinsicFloatInput :
16 Intrinsic<[llvm_v4f32_ty], [
17 llvm_v4f32_ty, // Coord
18 llvm_i32_ty, // offset_x
19 llvm_i32_ty, // offset_y,
20 llvm_i32_ty, // offset_z,
21 llvm_i32_ty, // resource_id
22 llvm_i32_ty, // samplerid
23 llvm_i32_ty, // coord_type_x
24 llvm_i32_ty, // coord_type_y
25 llvm_i32_ty, // coord_type_z
26 llvm_i32_ty // coord_type_w
27 ], [IntrNoMem]>;
28 class TextureIntrinsicInt32Input :
29 Intrinsic<[llvm_v4i32_ty], [
30 llvm_v4i32_ty, // Coord
31 llvm_i32_ty, // offset_x
32 llvm_i32_ty, // offset_y,
33 llvm_i32_ty, // offset_z,
34 llvm_i32_ty, // resource_id
35 llvm_i32_ty, // samplerid
36 llvm_i32_ty, // coord_type_x
37 llvm_i32_ty, // coord_type_y
38 llvm_i32_ty, // coord_type_z
39 llvm_i32_ty // coord_type_w
40 ], [IntrNoMem]>;
41
Vincent Lejeunef143af32013-11-11 22:10:24 +000042 def int_R600_interp_const :
43 Intrinsic<[llvm_v4f32_ty], [llvm_i32_ty], [IntrNoMem]>;
44def int_R600_interp_xy :
45 Intrinsic<[llvm_v2f32_ty], [llvm_i32_ty, llvm_float_ty, llvm_float_ty], [IntrNoMem]>;
46def int_R600_interp_zw :
47 Intrinsic<[llvm_v2f32_ty], [llvm_i32_ty, llvm_float_ty, llvm_float_ty], [IntrNoMem]>;
Vincent Lejeune68501802013-02-18 14:11:19 +000048 def int_R600_load_texbuf :
49 Intrinsic<[llvm_v4f32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
Vincent Lejeuned3eed662013-05-17 16:50:20 +000050 def int_R600_tex : TextureIntrinsicFloatInput;
51 def int_R600_texc : TextureIntrinsicFloatInput;
52 def int_R600_txl : TextureIntrinsicFloatInput;
53 def int_R600_txlc : TextureIntrinsicFloatInput;
54 def int_R600_txb : TextureIntrinsicFloatInput;
55 def int_R600_txbc : TextureIntrinsicFloatInput;
56 def int_R600_txf : TextureIntrinsicInt32Input;
Vincent Lejeune6df39432013-10-02 16:00:33 +000057 def int_R600_ldptr : TextureIntrinsicInt32Input;
Vincent Lejeuned3eed662013-05-17 16:50:20 +000058 def int_R600_txq : TextureIntrinsicInt32Input;
59 def int_R600_ddx : TextureIntrinsicFloatInput;
60 def int_R600_ddy : TextureIntrinsicFloatInput;
Tom Stellard6f1b8652013-01-23 21:39:49 +000061 def int_R600_store_swizzle :
62 Intrinsic<[], [llvm_v4f32_ty, llvm_i32_ty, llvm_i32_ty], []>;
Tom Stellard75aadc22012-12-11 21:25:42 +000063 def int_R600_store_stream_output :
Tom Stellardd8ac91d2013-01-23 21:39:47 +000064 Intrinsic<[], [llvm_v4f32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], []>;
Tom Stellard75aadc22012-12-11 21:25:42 +000065 def int_R600_store_pixel_depth :
66 Intrinsic<[], [llvm_float_ty], []>;
67 def int_R600_store_pixel_stencil :
68 Intrinsic<[], [llvm_float_ty], []>;
Tom Stellardaf1bce72013-01-31 22:11:46 +000069 def int_R600_store_dummy :
70 Intrinsic<[], [llvm_i32_ty], []>;
Tom Stellard75aadc22012-12-11 21:25:42 +000071}