diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2013-01-31 22:11:46 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2013-01-31 22:11:46 +0000 |
| commit | af1bce7d1d52612eaaff86618e8236c85c21d639 (patch) | |
| tree | 140ab96135e6fc703a370faeca836521ac850912 /llvm/lib | |
| parent | 95bf3b0a6cc3080da6e36acbfaeaa51e91cd97e2 (diff) | |
| download | bcm5719-llvm-af1bce7d1d52612eaaff86618e8236c85c21d639.tar.gz bcm5719-llvm-af1bce7d1d52612eaaff86618e8236c85c21d639.zip | |
R600: Make store_dummy intrinsic more general by passing export type
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 174097
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/R600/R600Instructions.td | 9 | ||||
| -rw-r--r-- | llvm/lib/Target/R600/R600Intrinsics.td | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/llvm/lib/Target/R600/R600Instructions.td b/llvm/lib/Target/R600/R600Instructions.td index 04b83bc87bf..86ee0bb0d30 100644 --- a/llvm/lib/Target/R600/R600Instructions.td +++ b/llvm/lib/Target/R600/R600Instructions.td @@ -589,9 +589,14 @@ multiclass ExportPattern<Instruction ExportInst, bits<8> cf_inst> { 0, 61, 7, 0, 7, 7, cf_inst, 0) >; - def : Pat<(int_R600_store_pixel_dummy), + def : Pat<(int_R600_store_dummy (i32 imm:$type)), (ExportInst - (v4f32 (IMPLICIT_DEF)), 0, 0, 7, 7, 7, 7, cf_inst, 0) + (v4f32 (IMPLICIT_DEF)), imm:$type, 0, 7, 7, 7, 7, cf_inst, 0) + >; + + def : Pat<(int_R600_store_dummy 1), + (ExportInst + (v4f32 (IMPLICIT_DEF)), 1, 60, 7, 7, 7, 7, cf_inst, 0) >; def : Pat<(EXPORT (v4f32 R600_Reg128:$src), (i32 0), diff --git a/llvm/lib/Target/R600/R600Intrinsics.td b/llvm/lib/Target/R600/R600Intrinsics.td index 1394a854619..9d416a60480 100644 --- a/llvm/lib/Target/R600/R600Intrinsics.td +++ b/llvm/lib/Target/R600/R600Intrinsics.td @@ -29,6 +29,6 @@ let TargetPrefix = "R600", isTarget = 1 in { Intrinsic<[], [llvm_float_ty], []>; def int_R600_store_pixel_stencil : Intrinsic<[], [llvm_float_ty], []>; - def int_R600_store_pixel_dummy : - Intrinsic<[], [], []>; + def int_R600_store_dummy : + Intrinsic<[], [llvm_i32_ty], []>; } |

