mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
R600/SI: Derive all sample intrinsics from a single class.
Patch by: Michel Dänzer Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> llvm-svn: 173051
This commit is contained in:
@@ -22,9 +22,11 @@ let TargetPrefix = "SI", isTarget = 1 in {
|
||||
def int_SI_vs_load_input : Intrinsic <[llvm_v4f32_ty], [llvm_v4i32_ty, llvm_i16_ty, llvm_i32_ty], [IntrReadMem]> ;
|
||||
def int_SI_wqm : Intrinsic <[], [], []>;
|
||||
|
||||
def int_SI_sample : Intrinsic <[llvm_v4f32_ty], [llvm_i32_ty, llvm_v4f32_ty, llvm_v8i32_ty, llvm_v4i32_ty], [IntrReadMem]>;
|
||||
def int_SI_sample_bias : Intrinsic <[llvm_v4f32_ty], [llvm_i32_ty, llvm_v4f32_ty, llvm_v8i32_ty, llvm_v4i32_ty], [IntrReadMem]>;
|
||||
def int_SI_sample_lod : Intrinsic <[llvm_v4f32_ty], [llvm_i32_ty, llvm_v4f32_ty, llvm_v8i32_ty, llvm_v4i32_ty], [IntrReadMem]>;
|
||||
class Sample : Intrinsic <[llvm_v4f32_ty], [llvm_i32_ty, llvm_v4f32_ty, llvm_v8i32_ty, llvm_v4i32_ty], [IntrReadMem]>;
|
||||
|
||||
def int_SI_sample : Sample;
|
||||
def int_SI_sample_bias : Sample;
|
||||
def int_SI_sample_lod : Sample;
|
||||
|
||||
/* Interpolation Intrinsics */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user