[llvm-commits] [llvm] r120488 - /llvm/trunk/lib/Target/ARM/ARMInstrFormats.td
Bill Wendling
isanbard at gmail.com
Tue Nov 30 15:16:25 PST 2010
Author: void
Date: Tue Nov 30 17:16:25 2010
New Revision: 120488
URL: http://llvm.org/viewvc/llvm-project?rev=120488&view=rev
Log:
Inline classes that were used in only one place.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrFormats.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrFormats.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrFormats.td?rev=120488&r1=120487&r2=120488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrFormats.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrFormats.td Tue Nov 30 17:16:25 2010
@@ -899,7 +899,6 @@
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 @@
// 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 @@
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
More information about the llvm-commits
mailing list