diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-07-27 19:59:26 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-07-27 19:59:26 +0000 |
commit | 27c016ba84f5607b3610f0ae63d36742ba0083f8 (patch) | |
tree | 60fd6ffd8e603e99d740c8ee245076f00ef99ea7 /lib/Target/ARM/ARMInstrFormats.td | |
parent | c84ae881650c9e38040830899a40cfd612138859 (diff) | |
download | external_llvm-27c016ba84f5607b3610f0ae63d36742ba0083f8.zip external_llvm-27c016ba84f5607b3610f0ae63d36742ba0083f8.tar.gz external_llvm-27c016ba84f5607b3610f0ae63d36742ba0083f8.tar.bz2 |
Remove TPat. No patterns depend on just isThumb(). Must use either T1Pat (isThumb1Only()) or T2Pat (is Thumb2).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrFormats.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrFormats.td | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td index c32edad..3194fbc 100644 --- a/lib/Target/ARM/ARMInstrFormats.td +++ b/lib/Target/ARM/ARMInstrFormats.td @@ -816,15 +816,6 @@ class TIx2<dag oops, dag iops, string asm, list<dag> pattern> class TJTI<dag oops, dag iops, string asm, list<dag> pattern> : ThumbI<oops, iops, AddrModeNone, SizeSpecial, asm, "", pattern>; -// TPat - Same as Pat<>, but requires that the compiler be in Thumb mode. -class TPat<dag pattern, dag result> : Pat<pattern, result> { - list<Predicate> Predicates = [IsThumb]; -} - -class Tv5Pat<dag pattern, dag result> : Pat<pattern, result> { - list<Predicate> Predicates = [IsThumb, HasV5T]; -} - // Thumb1 only class Thumb1I<dag oops, dag iops, AddrMode am, SizeFlagVal sz, string asm, string cstr, list<dag> pattern> @@ -894,10 +885,6 @@ class T1pI4<dag oops, dag iops, string opc, string asm, list<dag> pattern> class T1pIs<dag oops, dag iops, string opc, string asm, list<dag> pattern> : Thumb1pI<oops, iops, AddrModeT1_s, Size2Bytes, opc, asm, "", pattern>; -class T1Pat<dag pattern, dag result> : Pat<pattern, result> { - list<Predicate> Predicates = [IsThumb1Only]; -} - // Thumb2I - Thumb2 instruction. Almost all Thumb2 instructions are predicable. class Thumb2I<dag oops, dag iops, AddrMode am, SizeFlagVal sz, string opc, string asm, string cstr, list<dag> pattern> @@ -967,6 +954,15 @@ class T2Iidxldst<dag oops, dag iops, AddrMode am, IndexMode im, list<Predicate> Predicates = [IsThumb2]; } +// Tv5Pat - Same as Pat<>, but requires V5T Thumb mode. +class Tv5Pat<dag pattern, dag result> : Pat<pattern, result> { + list<Predicate> Predicates = [IsThumb1Only, HasV5T]; +} + +// T1Pat - Same as Pat<>, but requires that the compiler be in Thumb1 mode. +class T1Pat<dag pattern, dag result> : Pat<pattern, result> { + list<Predicate> Predicates = [IsThumb1Only]; +} // T2Pat - Same as Pat<>, but requires that the compiler be in Thumb2 mode. class T2Pat<dag pattern, dag result> : Pat<pattern, result> { |