1 //===- ARMInstrInfo.cpp - ARM Instruction Information -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the ARM implementation of the TargetInstrInfo class.
12 //===----------------------------------------------------------------------===//
14 #include "ARMInstrInfo.h"
16 #include "ARMMachineFunctionInfo.h"
17 #include "MCTargetDesc/ARMAddressingModes.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/CodeGen/LiveVariables.h"
20 #include "llvm/CodeGen/MachineFrameInfo.h"
21 #include "llvm/CodeGen/MachineInstrBuilder.h"
22 #include "llvm/CodeGen/MachineJumpTableInfo.h"
23 #include "llvm/MC/MCAsmInfo.h"
26 ARMInstrInfo::ARMInstrInfo(const ARMSubtarget &STI)
27 : ARMBaseInstrInfo(STI), RI(*this, STI) {
30 unsigned ARMInstrInfo::getUnindexedOpcode(unsigned Opc) const {
33 case ARM::LDR_PRE_IMM:
34 case ARM::LDR_PRE_REG:
35 case ARM::LDR_POST_IMM:
36 case ARM::LDR_POST_REG:
41 case ARM::LDRB_PRE_IMM:
42 case ARM::LDRB_PRE_REG:
43 case ARM::LDRB_POST_IMM:
44 case ARM::LDRB_POST_REG:
52 case ARM::STR_PRE_IMM:
53 case ARM::STR_PRE_REG:
54 case ARM::STR_POST_IMM:
55 case ARM::STR_POST_REG:
60 case ARM::STRB_PRE_IMM:
61 case ARM::STRB_PRE_REG:
62 case ARM::STRB_POST_IMM:
63 case ARM::STRB_POST_REG: