diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-07-06 21:35:46 +0000 | 
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-07-06 21:35:46 +0000 | 
| commit | 7c301ea093dc14a29ea642a883faa6cd7a4b15e4 (patch) | |
| tree | e4cae27f5e6d51ac61d35d3af061e8445a4ec87d /llvm/lib | |
| parent | f3fd36e0f5238d338a94241c0a1d9f6b2fba076e (diff) | |
| download | bcm5719-llvm-7c301ea093dc14a29ea642a883faa6cd7a4b15e4.tar.gz bcm5719-llvm-7c301ea093dc14a29ea642a883faa6cd7a4b15e4.zip | |
Mark ARM pseudo-instructions as isPseudo.
This allows us to remove the (bogus and unneeded) encoding information from
the pseudo-instruction class definitions. All of the pseudos that haven't
been converted yet and still need encoding information instance from the normal
instruction classes and explicitly set isCodeGenOnly, and so are distinct
from this change.
llvm-svn: 134540
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrFormats.td | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/llvm/lib/Target/ARM/ARMInstrFormats.td b/llvm/lib/Target/ARM/ARMInstrFormats.td index 897d8a5d79e..088c8153a2f 100644 --- a/llvm/lib/Target/ARM/ARMInstrFormats.td +++ b/llvm/lib/Target/ARM/ARMInstrFormats.td @@ -282,15 +282,13 @@ class InstThumb<AddrMode am, SizeFlagVal sz, IndexMode im,    : InstTemplate<am, sz, im, f, d, cstr, itin>;  class PseudoInst<dag oops, dag iops, InstrItinClass itin, list<dag> pattern> -  // FIXME: This really should derive from InstTemplate instead, as pseudos -  //        don't need encoding information. TableGen doesn't like that -  //        currently. Need to figure out why and fix it. -  : InstARM<AddrModeNone, SizeSpecial, IndexModeNone, Pseudo, GenericDomain, -            "", itin> { +  : InstTemplate<AddrModeNone, SizeSpecial, IndexModeNone, Pseudo, +                 GenericDomain, "", itin> {    let OutOperandList = oops;    let InOperandList = iops;    let Pattern = pattern;    let isCodeGenOnly = 1; +  let isPseudo = 1;  }  // PseudoInst that's ARM-mode only. | 

