From 18e8ab1112d3e674913d7f0ab16b2145270584e7 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 20 Mar 2015 15:14:23 +0000 Subject: [PATCH] R600/SI: Refactor VOP2 instruction defs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232817 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/SIInstrInfo.td | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index 5deb95719f3..86e10826cf2 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -877,13 +877,20 @@ class VOP2_Pseudo pattern, string opName> : let isCodeGenOnly = 1; } +class VOP2_Real_si : + VOP2 , + SIMCInstr ; + +class VOP2_Real_vi : + VOP2 , + SIMCInstr ; + multiclass VOP2SI_m pattern, string opName, string revOp> { def "" : VOP2_Pseudo , VOP2_REV; - def _si : VOP2 , - SIMCInstr ; + def _si : VOP2_Real_si ; } multiclass VOP2_m pattern, @@ -891,10 +898,10 @@ multiclass VOP2_m pattern, def "" : VOP2_Pseudo , VOP2_REV; - def _si : VOP2 , - SIMCInstr ; - def _vi : VOP2 , - SIMCInstr ; + def _si : VOP2_Real_si ; + + def _vi : VOP2_Real_vi ; + } class VOP3DisableFields {