diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-11-30 23:16:25 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-11-30 23:16:25 +0000 |
commit | 2cbc9fe83741f9239aaf99c5b71bf3635f9af9da (patch) | |
tree | b22ecde204200db98481cf0480c00f169f9af66b | |
parent | a04096580a65b6cfbe12dabf6d695f7303750c0d (diff) |
Inline classes that were used in only one place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120488 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMInstrFormats.td | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td index cd6e4c83d1..8813feb8c0 100644 --- a/lib/Target/ARM/ARMInstrFormats.td +++ b/lib/Target/ARM/ARMInstrFormats.td @@ -899,7 +899,6 @@ class T1LoadStore<bits<4> opA, bits<3> opB> : Encoding16 { let Inst{15-12} = opA; let Inst{11-9} = opB; } -class T1LdSt<bits<3> opB> : T1LoadStore<0b0101, opB>; class T1LdStSP<bits<3> opB> : T1LoadStore<0b1001, opB>; // SP relative // Helper classes to encode Thumb1 loads and stores. For immediates, the @@ -908,13 +907,11 @@ class T1LdStSP<bits<3> opB> : T1LoadStore<0b1001, opB>; // SP relative // 0b0110 => Immediate, 4 bytes // 0b1000 => Immediate, 2 bytes // 0b0111 => Immediate, 1 byte -class T1LdStImm<bits<4> opA, bits<3> opB> : T1LoadStore<opA, opB>; - class T1pIEncode<bits<3> opcode, dag oops, dag iops, AddrMode am, InstrItinClass itin, string opc, string asm, list<dag> pattern> : Thumb1pI<oops, iops, am, Size2Bytes, itin, opc, asm, "", pattern>, - T1LdSt<opcode> { + T1LoadStore<0b0101, opcode> { bits<3> Rt; bits<8> addr; let Inst{8-6} = addr{5-3}; // Rm @@ -925,7 +922,7 @@ class T1pIEncodeImm<bits<4> opA, bit opB, dag oops, dag iops, AddrMode am, InstrItinClass itin, string opc, string asm, list<dag> pattern> : Thumb1pI<oops, iops, am, Size2Bytes, itin, opc, asm, "", pattern>, - T1LdStImm<opA, {opB,?,?}> { + T1LoadStore<opA, {opB,?,?}> { bits<3> Rt; bits<8> addr; let Inst{10-6} = addr{7-3}; // imm5 |