From: Tom Stellard Date: Fri, 20 Mar 2015 15:14:21 +0000 (+0000) Subject: R600/SI: Refactor VOP1 instruction defs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb9cd4bbd81d60979f9c14fd382718e35102116c;p=oota-llvm.git R600/SI: Refactor VOP1 instruction defs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index b557b068018..5deb95719f3 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -845,23 +845,28 @@ class VOP1_Pseudo pattern, string opName> : field bits<9> src0; } +class VOP1_Real_si : + VOP1, + SIMCInstr ; + +class VOP1_Real_vi : + VOP1, + SIMCInstr ; + multiclass VOP1_m pattern, string opName> { def "" : VOP1_Pseudo ; - def _si : VOP1, - SIMCInstr ; - def _vi : VOP1, - SIMCInstr ; + def _si : VOP1_Real_si ; + + def _vi : VOP1_Real_vi ; } multiclass VOP1SI_m pattern, string opName> { def "" : VOP1_Pseudo ; - def _si : VOP1, - SIMCInstr ; - // No VI instruction. This class is for SI only. + def _si : VOP1_Real_si ; } class VOP2_Pseudo pattern, string opName> :