56 case ARM::LDR_PRE_IMM:
57 case ARM::LDR_PRE_REG:
58 case ARM::LDR_POST_IMM:
59 case ARM::LDR_POST_REG:
64 case ARM::LDRB_PRE_IMM:
65 case ARM::LDRB_PRE_REG:
66 case ARM::LDRB_POST_IMM:
67 case ARM::LDRB_POST_REG:
75 case ARM::STR_PRE_IMM:
76 case ARM::STR_PRE_REG:
77 case ARM::STR_POST_IMM:
78 case ARM::STR_POST_REG:
83 case ARM::STRB_PRE_IMM:
84 case ARM::STRB_PRE_REG:
85 case ARM::STRB_POST_IMM:
86 case ARM::STRB_POST_REG:
99 if (TM.isPositionIndependent())
106 if (!TM.isPositionIndependent()) {
112 cast<GlobalValue>((*MI->memoperands_begin())->getValue());
121 unsigned Reg = MI->getOperand(0).getReg();
124 MIB =
BuildMI(MBB, MI, DL,
get(ARM::MOV_ga_pcrel_ldr), Reg)
132 BuildMI(MBB, MI, DL,
get(ARM::LDRi12), Reg)
135 .
setMemRefs(MI->memoperands_begin(), MI->memoperands_end())
139 std::pair<unsigned, unsigned>
142 return std::make_pair(TF & Mask, TF & ~Mask);
147 using namespace ARMII;
149 static const std::pair<unsigned, const char *>
TargetFlags[] = {
156 using namespace ARMII;
158 static const std::pair<unsigned, const char *>
TargetFlags[] = {
Compute iterated dominance frontiers using a linear time algorithm.
ArrayRef< std::pair< unsigned, const char * > > getSerializableBitmaskMachineOperandTargetFlags() const override
std::pair< unsigned, unsigned > decomposeMachineOperandsTargetFlags(unsigned TF) const override
const MachineInstrBuilder & addGlobalAddress(const GlobalValue *GV, int64_t Offset=0, unsigned char TargetFlags=0) const
void getNoop(MCInst &NopInst) const override
Return the noop instruction to use for a noop.
ARMInstrInfo(const ARMSubtarget &STI)
A description of a memory reference used in the backend.
MO_SBREL - On a symbol operand, this represents a static base relative relocation.
static MCOperand createReg(unsigned Reg)
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
const TargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
The memory access is dereferenceable (i.e., doesn't trap).
MachineMemOperand * getMachineMemOperand(MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, uint64_t s, unsigned base_alignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic)
getMachineMemOperand - Allocate a new MachineMemOperand.
bool isGVIndirectSymbol(const GlobalValue *GV) const
True if the GV will be accessed via an indirect symbol.
static std::array< MachineOperand, 2 > predOps(ARMCC::CondCodes Pred, unsigned PredReg=0)
Get the operands corresponding to the given Pred value.
MO_GOT - This flag indicates that a symbol operand represents the address of the GOT entry for the sy...
bool useMovt(const MachineFunction &MF) const
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Instances of this class represent a single low-level machine instruction.
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
MO_SECREL - On a symbol operand this indicates that the immediate is the offset from beginning of sec...
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
void expandLoadStackGuardBase(MachineBasicBlock::iterator MI, unsigned LoadImmOpc, unsigned LoadOpc) const
unsigned getUnindexedOpcode(unsigned Opc) const override
MO_LO16 - On a symbol operand, this represents a relocation containing lower 16 bit of the address...
void setOpcode(unsigned Op)
const MachineInstrBuilder & addMemOperand(MachineMemOperand *MMO) const
The memory access reads data.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
MO_DLLIMPORT - On a symbol operand, this represents that the reference to the symbol is for an import...
The memory access always returns the same value (or traps).
MO_OPTION_MASK - Most flags are mutually exclusive; this mask selects just that part of the flag set...
const MachineInstrBuilder & addReg(unsigned RegNo, unsigned flags=0, unsigned SubReg=0) const
Add a new virtual register operand.
ArrayRef< std::pair< unsigned, const char * > > getSerializableDirectMachineOperandTargetFlags() const override
static MachinePointerInfo getGOT(MachineFunction &MF)
Return a MachinePointerInfo record that refers to a GOT entry.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
MO_NONLAZY - This is an independent flag, on a symbol operand "FOO" it represents a symbol which...
Primary interface to the complete machine description for the target machine.
void addOperand(const MCOperand &Op)
const MachineInstrBuilder & setMemRefs(MachineInstr::mmo_iterator b, MachineInstr::mmo_iterator e) const
static MCOperand createImm(int64_t Val)
MO_HI16 - On a symbol operand, this represents a relocation containing higher 16 bit of the address...