diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-07 03:13:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-07 03:13:06 +0000 |
commit | b0d06b438175f22a2c680fb07e0b02a0798876e1 (patch) | |
tree | 4ba87d89d2bbfd3f142fdf00f5fd53b0a2a957ae /llvm/lib/Target/ARM/ARMInstrInfo.cpp | |
parent | f0f438a51740a13c10e3aebdeffaaade53f72ba7 (diff) | |
download | bcm5719-llvm-b0d06b438175f22a2c680fb07e0b02a0798876e1.tar.gz bcm5719-llvm-b0d06b438175f22a2c680fb07e0b02a0798876e1.zip |
Move a bunch more accessors from TargetInstrInfo to TargetInstrDescriptor
llvm-svn: 45680
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index b291d19d865..fa52be8382a 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp @@ -63,7 +63,7 @@ bool ARMInstrInfo::isMoveInstr(const MachineInstr &MI, return true; case ARM::MOVr: case ARM::tMOVr: - assert(MI.getDesc()->numOperands >= 2 && + assert(MI.getDesc()->getNumOperands() >= 2 && MI.getOperand(0).isRegister() && MI.getOperand(1).isRegister() && "Invalid ARM MOV instruction"); @@ -201,7 +201,7 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI, MachineInstr *MemMI = NULL; unsigned AddrMode = (TSFlags & ARMII::AddrModeMask); const TargetInstrDescriptor *TID = MI->getDesc(); - unsigned NumOps = TID->numOperands; + unsigned NumOps = TID->getNumOperands(); bool isLoad = TID->isSimpleLoad(); const MachineOperand &WB = isLoad ? MI->getOperand(1) : MI->getOperand(0); const MachineOperand &Base = MI->getOperand(2); @@ -897,7 +897,7 @@ unsigned ARM::GetInstSize(MachineInstr *MI) { case ARM::tBR_JTr: { // These are jumptable branches, i.e. a branch followed by an inlined // jumptable. The size is 4 + 4 * number of entries. - unsigned NumOps = TID->numOperands; + unsigned NumOps = TID->getNumOperands(); MachineOperand JTOP = MI->getOperand(NumOps - (TID->isPredicable() ? 3 : 2)); unsigned JTI = JTOP.getIndex(); |