1 //===-- SIIntrinsics.td - SI Intrinsic 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 // SI Intrinsic Definitions 11 // 12 //===----------------------------------------------------------------------===// 13 14 15 let TargetPrefix = "SI", isTarget = 1 in { 16 17 def int_SI_packf16 : Intrinsic <[llvm_i32_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem]>; 18 def int_SI_export : Intrinsic <[], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], []>; 19 /* XXX: We may need a seperate intrinsic here for loading integer values */ 20 def int_SI_load_const : Intrinsic <[llvm_float_ty], [llvm_i64_ty, llvm_i32_ty], []>; 21 def int_SI_vs_load_buffer_index : Intrinsic <[llvm_i32_ty], [], [IntrNoMem]>; 22 def int_SI_vs_load_input : Intrinsic <[llvm_v4f32_ty], [llvm_v4i32_ty, llvm_i16_ty, llvm_i32_ty], []> ; 23 24 def int_SI_sample : Intrinsic <[llvm_v4f32_ty], [llvm_i32_ty, llvm_v4f32_ty, llvm_v8i32_ty, llvm_v4i32_ty]>; 25 26 /* Interpolation Intrinsics */ 27 28 def int_SI_set_M0 : Intrinsic <[llvm_i32_ty], [llvm_i32_ty]>; 29 class Interp : Intrinsic <[llvm_float_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrReadMem]>; 30 31 def int_SI_fs_interp_linear_center : Interp; 32 def int_SI_fs_interp_linear_centroid : Interp; 33 def int_SI_fs_interp_persp_center : Interp; 34 def int_SI_fs_interp_persp_centroid : Interp; 35 def int_SI_fs_interp_constant : Interp; 36 } 37