[llvm-branch-commits] [llvm-branch] r166696 - in /llvm/branches/R600/lib/Target/AMDGPU: SIInstructions.td SIIntrinsics.td

Tom Stellard thomas.stellard at amd.com
Thu Oct 25 10:08:45 PDT 2012


Author: tstellar
Date: Thu Oct 25 12:08:45 2012
New Revision: 166696

URL: http://llvm.org/viewvc/llvm-project?rev=166696&view=rev
Log:
SI: Add intrinsic for reading the FRONT_FACE VGPR.

Patch by: Michel Dänzer

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Modified:
    llvm/branches/R600/lib/Target/AMDGPU/SIInstructions.td
    llvm/branches/R600/lib/Target/AMDGPU/SIIntrinsics.td

Modified: llvm/branches/R600/lib/Target/AMDGPU/SIInstructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/SIInstructions.td?rev=166696&r1=166695&r2=166696&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/SIInstructions.td (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/SIInstructions.td Thu Oct 25 12:08:45 2012
@@ -1203,6 +1203,11 @@
 >;
 
 def : Pat <
+  (int_SI_fs_read_face),
+  (f32 FRONT_FACE)
+>;
+
+def : Pat <
   (int_SI_fs_read_pos 0),
   (f32 POS_X_FLOAT)
 >;

Modified: llvm/branches/R600/lib/Target/AMDGPU/SIIntrinsics.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/SIIntrinsics.td?rev=166696&r1=166695&r2=166696&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/SIIntrinsics.td (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/SIIntrinsics.td Thu Oct 25 12:08:45 2012
@@ -35,5 +35,6 @@
   def int_SI_fs_interp_persp_centroid : Interp;
   def int_SI_fs_interp_constant : Interp;
 
+  def int_SI_fs_read_face : Intrinsic <[llvm_float_ty], [], [IntrNoMem]>;
   def int_SI_fs_read_pos : Intrinsic <[llvm_float_ty], [llvm_i32_ty], [IntrNoMem]>;
 }





More information about the llvm-branch-commits mailing list