From 233b3a2f95b32cec22f246a191e3321d2007fd85 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 6 Oct 2010 20:36:55 +0000 Subject: [PATCH] Add a 'pattern' arg to the ARM PseudoNeonI class. llvm-svn: 115831 --- llvm/lib/Target/ARM/ARMInstrFormats.td | 4 +++- llvm/lib/Target/ARM/ARMInstrNEON.td | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMInstrFormats.td b/llvm/lib/Target/ARM/ARMInstrFormats.td index 1d87ae47ae12..263f151b2bfb 100644 --- a/llvm/lib/Target/ARM/ARMInstrFormats.td +++ b/llvm/lib/Target/ARM/ARMInstrFormats.td @@ -1550,11 +1550,13 @@ class PseudoNLdSt list Predicates = [HasNEON]; } -class PseudoNeonI +class PseudoNeonI pattern> : InstARM { let OutOperandList = oops; let InOperandList = !con(iops, (ins pred:$p)); + let Pattern = pattern; list Predicates = [HasNEON]; } diff --git a/llvm/lib/Target/ARM/ARMInstrNEON.td b/llvm/lib/Target/ARM/ARMInstrNEON.td index bf24d0a88534..eaf2f794a5b3 100644 --- a/llvm/lib/Target/ARM/ARMInstrNEON.td +++ b/llvm/lib/Target/ARM/ARMInstrNEON.td @@ -3816,11 +3816,11 @@ def VTBL4 } // hasExtraSrcRegAllocReq = 1 def VTBL2Pseudo - : PseudoNeonI<(outs DPR:$dst), (ins QPR:$tbl, DPR:$src), IIC_VTB2, "">; + : PseudoNeonI<(outs DPR:$dst), (ins QPR:$tbl, DPR:$src), IIC_VTB2, "", []>; def VTBL3Pseudo - : PseudoNeonI<(outs DPR:$dst), (ins QQPR:$tbl, DPR:$src), IIC_VTB3, "">; + : PseudoNeonI<(outs DPR:$dst), (ins QQPR:$tbl, DPR:$src), IIC_VTB3, "", []>; def VTBL4Pseudo - : PseudoNeonI<(outs DPR:$dst), (ins QQPR:$tbl, DPR:$src), IIC_VTB4, "">; + : PseudoNeonI<(outs DPR:$dst), (ins QQPR:$tbl, DPR:$src), IIC_VTB4, "", []>; // VTBX : Vector Table Extension def VTBX1 @@ -3849,13 +3849,13 @@ def VTBX4 def VTBX2Pseudo : PseudoNeonI<(outs DPR:$dst), (ins DPR:$orig, QPR:$tbl, DPR:$src), - IIC_VTBX2, "$orig = $dst">; + IIC_VTBX2, "$orig = $dst", []>; def VTBX3Pseudo : PseudoNeonI<(outs DPR:$dst), (ins DPR:$orig, QQPR:$tbl, DPR:$src), - IIC_VTBX3, "$orig = $dst">; + IIC_VTBX3, "$orig = $dst", []>; def VTBX4Pseudo : PseudoNeonI<(outs DPR:$dst), (ins DPR:$orig, QQPR:$tbl, DPR:$src), - IIC_VTBX4, "$orig = $dst">; + IIC_VTBX4, "$orig = $dst", []>; //===----------------------------------------------------------------------===// // NEON instructions for single-precision FP math