13 #ifndef LLVM_LIB_TARGET_ARM_ARMBASEINSTRINFO_H 14 #define LLVM_LIB_TARGET_ARM_ARMBASEINSTRINFO_H 27 #define GET_INSTRINFO_HEADER 28 #include "ARMGenInstrInfo.inc" 32 class ARMBaseRegisterInfo;
43 unsigned LoadImmOpc,
unsigned LoadOpc)
const;
101 unsigned OpIdx2)
const override;
135 bool AllowModify =
false)
const override;
137 int *BytesRemoved =
nullptr)
const override;
141 int *BytesAdded =
nullptr)
const override;
162 std::vector<MachineOperand> &Pred)
const override;
191 int &FrameIndex)
const override;
193 int &FrameIndex)
const override;
195 int &FrameIndex)
const override;
198 unsigned SrcReg,
bool KillSrc,
201 unsigned DestReg,
bool KillSrc,
206 bool KillSrc)
const override;
210 unsigned SrcReg,
bool isKill,
int FrameIndex,
216 unsigned DestReg,
int FrameIndex,
225 unsigned DestReg,
unsigned SubIdx,
234 unsigned SubIdx,
unsigned State,
246 int64_t &Offset2)
const override;
257 int64_t Offset1, int64_t Offset2,
258 unsigned NumLoads)
const override;
265 unsigned NumCycles,
unsigned ExtraPredCycles,
270 unsigned NumF,
unsigned ExtraF,
275 return NumCycles == 1;
279 unsigned NumInsts)
const override;
290 unsigned &SrcReg2,
int &CmpMask,
291 int &CmpValue)
const override;
298 unsigned SrcReg2,
int CmpMask,
int CmpValue,
303 unsigned &FalseOp,
bool &Optimizable)
const override;
307 bool)
const override;
320 unsigned UseIdx)
const override;
322 SDNode *DefNode,
unsigned DefIdx,
323 SDNode *UseNode,
unsigned UseIdx)
const override;
326 std::pair<uint16_t, uint16_t>
339 std::pair<unsigned, unsigned>
347 unsigned getInstBundleLength(
const MachineInstr &MI)
const;
352 unsigned DefIdx,
unsigned DefAlign)
const;
356 unsigned DefIdx,
unsigned DefAlign)
const;
360 unsigned UseIdx,
unsigned UseAlign)
const;
364 unsigned UseIdx,
unsigned UseAlign)
const;
367 unsigned DefIdx,
unsigned DefAlign,
369 unsigned UseIdx,
unsigned UseAlign)
const;
376 const MCInstrDesc &UseMCID,
unsigned UseAdj)
const;
378 unsigned getPredicationCost(
const MachineInstr &MI)
const override;
382 unsigned *PredCost =
nullptr)
const override;
391 unsigned UseIdx)
const override;
394 unsigned DefIdx)
const override;
424 return MLxEntryMap.
count(Opcode);
431 unsigned &AddSubOpc,
bool &NegAcc,
432 bool &HasLane)
const;
438 return MLxHazardOpcodes.
count(Opcode);
466 unsigned PredReg = 0) {
488 return Opc ==
ARM::B || Opc == ARM::tB || Opc == ARM::t2B;
513 return Opc == ARM::MVE_VPTv16i8 || Opc == ARM::MVE_VPTv16u8 ||
514 Opc == ARM::MVE_VPTv16s8 || Opc == ARM::MVE_VPTv8i16 ||
515 Opc == ARM::MVE_VPTv8u16 || Opc == ARM::MVE_VPTv8s16 ||
516 Opc == ARM::MVE_VPTv4i32 || Opc == ARM::MVE_VPTv4u32 ||
517 Opc == ARM::MVE_VPTv4s32 || Opc == ARM::MVE_VPTv4f32 ||
518 Opc == ARM::MVE_VPTv8f16 || Opc == ARM::MVE_VPTv16i8r ||
519 Opc == ARM::MVE_VPTv16u8r || Opc == ARM::MVE_VPTv16s8r ||
520 Opc == ARM::MVE_VPTv8i16r || Opc == ARM::MVE_VPTv8u16r ||
521 Opc == ARM::MVE_VPTv8s16r || Opc == ARM::MVE_VPTv4i32r ||
522 Opc == ARM::MVE_VPTv4u32r || Opc == ARM::MVE_VPTv4s32r ||
523 Opc == ARM::MVE_VPTv4f32r || Opc == ARM::MVE_VPTv8f16r ||
524 Opc == ARM::MVE_VPST;
532 case ARM::MVE_VCMPf32:
533 return ARM::MVE_VPTv4f32;
534 case ARM::MVE_VCMPf16:
535 return ARM::MVE_VPTv8f16;
536 case ARM::MVE_VCMPi8:
537 return ARM::MVE_VPTv16i8;
538 case ARM::MVE_VCMPi16:
539 return ARM::MVE_VPTv8i16;
540 case ARM::MVE_VCMPi32:
541 return ARM::MVE_VPTv4i32;
542 case ARM::MVE_VCMPu8:
543 return ARM::MVE_VPTv16u8;
544 case ARM::MVE_VCMPu16:
545 return ARM::MVE_VPTv8u16;
546 case ARM::MVE_VCMPu32:
547 return ARM::MVE_VPTv4u32;
548 case ARM::MVE_VCMPs8:
549 return ARM::MVE_VPTv16s8;
550 case ARM::MVE_VCMPs16:
551 return ARM::MVE_VPTv8s16;
552 case ARM::MVE_VCMPs32:
553 return ARM::MVE_VPTv4s32;
555 case ARM::MVE_VCMPf32r:
556 return ARM::MVE_VPTv4f32r;
557 case ARM::MVE_VCMPf16r:
558 return ARM::MVE_VPTv8f16r;
559 case ARM::MVE_VCMPi8r:
560 return ARM::MVE_VPTv16i8r;
561 case ARM::MVE_VCMPi16r:
562 return ARM::MVE_VPTv8i16r;
563 case ARM::MVE_VCMPi32r:
564 return ARM::MVE_VPTv4i32r;
565 case ARM::MVE_VCMPu8r:
566 return ARM::MVE_VPTv16u8r;
567 case ARM::MVE_VCMPu16r:
568 return ARM::MVE_VPTv8u16r;
569 case ARM::MVE_VCMPu32r:
570 return ARM::MVE_VPTv4u32r;
571 case ARM::MVE_VCMPs8r:
572 return ARM::MVE_VPTv16s8r;
573 case ARM::MVE_VCMPs16r:
574 return ARM::MVE_VPTv8s16r;
575 case ARM::MVE_VCMPs32r:
576 return ARM::MVE_VPTv4s32r;
587 return IsDoLoop ? ARM::MVE_DLSTP_8 : ARM::MVE_WLSTP_8;
588 case ARM::MVE_VCTP16:
589 return IsDoLoop ? ARM::MVE_DLSTP_16 : ARM::MVE_WLSTP_16;
590 case ARM::MVE_VCTP32:
591 return IsDoLoop ? ARM::MVE_DLSTP_32 : ARM::MVE_WLSTP_32;
592 case ARM::MVE_VCTP64:
593 return IsDoLoop ? ARM::MVE_DLSTP_64 : ARM::MVE_WLSTP_64;
604 case ARM::MVE_VCTP16:
605 case ARM::MVE_VCTP32:
606 case ARM::MVE_VCTP64:
614 return MI.
getOpcode() == ARM::t2DoLoopStart ||
620 return Opc == ARM::Bcc || Opc == ARM::tBcc || Opc == ARM::t2Bcc;
624 return Opc == ARM::BR_JTr || Opc == ARM::BR_JTm_i12 ||
625 Opc == ARM::BR_JTm_rs || Opc == ARM::BR_JTadd || Opc == ARM::tBR_JTr ||
631 return Opc == ARM::BX || Opc == ARM::MOVPCRX || Opc == ARM::tBRIND;
635 return Opc == ARM::tPOP_RET || Opc == ARM::LDMIA_RET ||
636 Opc == ARM::t2LDMIA_RET || Opc == ARM::tPOP || Opc == ARM::LDMIA_UPD ||
637 Opc == ARM::t2LDMIA_UPD || Opc == ARM::VLDMDIA_UPD;
641 return Opc == ARM::tPUSH || Opc == ARM::t2STMDB_UPD ||
642 Opc == ARM::STMDB_UPD || Opc == ARM::VSTMDDB_UPD;
651 if (featureBits[ARM::HasV8Ops] && (Num & 0xE) != 0xE)
655 if (featureBits[ARM::HasV7Ops] && (Num & 0xE) == 0xA)
660 if (featureBits[ARM::HasV8_1MMainlineOps] &&
661 ((Num & 0xE) == 0x8 || (Num & 0xE) == 0xE))
684 const DebugLoc &dl,
unsigned DestReg,
685 unsigned BaseReg,
int NumBytes,
691 const DebugLoc &dl,
unsigned DestReg,
692 unsigned BaseReg,
int NumBytes,
697 const DebugLoc &dl,
unsigned DestReg,
698 unsigned BaseReg,
int NumBytes,
701 unsigned MIFlags = 0);
717 unsigned FrameReg,
int &
Offset,
721 unsigned FrameReg,
int &Offset,
747 bool ForCodesize =
false);
754 bool ForCodesize =
false);
758 #endif // LLVM_LIB_TARGET_ARM_ARMBASEINSTRINFO_H bool isLdstSoMinusReg(const MachineInstr &MI, unsigned Op) const
bool isProfitableToIfCvt(MachineBasicBlock &MBB, unsigned NumCycles, unsigned ExtraPredCycles, BranchProbability Probability) const override
bool isProfitableToUnpredicate(MachineBasicBlock &TMBB, MachineBasicBlock &FMBB) const override
bool getInsertSubregLikeInputs(const MachineInstr &MI, unsigned DefIdx, RegSubRegPair &BaseReg, RegSubRegPairAndIdx &InsertedReg) const override
Build the equivalent inputs of a INSERT_SUBREG for the given MI and DefIdx.
unsigned predictBranchSizeForIfCvt(MachineInstr &MI) const override
void loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned DestReg, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
int findFirstPredOperandIdx() const
Find the index of the first operand in the operand list that is used to represent the predicate...
Wrapper class representing physical registers. Should be passed by value.
bool isSchedulingBoundary(const MachineInstr &MI, const MachineBasicBlock *MBB, const MachineFunction &MF) const override
This class represents lattice values for constants.
bool DefinesPredicate(MachineInstr &MI, std::vector< MachineOperand > &Pred) const override
Describe properties that are true of each instruction in the target description file.
bool expandPostRAPseudo(MachineInstr &MI) const override
bool isPredicated(const MachineInstr &MI) const override
unsigned const TargetRegisterInfo * TRI
unsigned getPartialRegUpdateClearance(const MachineInstr &, unsigned, const TargetRegisterInfo *) const override
bool isLdstScaledRegNotPlusLsl2(const MachineInstr &MI, unsigned Op) const
bool tryFoldSPUpdateIntoPushPop(const ARMSubtarget &Subtarget, MachineFunction &MF, MachineInstr *MI, unsigned NumBytes)
Tries to add registers to the reglist of a given base-updating push/pop instruction to adjust the sta...
bool registerDefinedBetween(unsigned Reg, MachineBasicBlock::iterator From, MachineBasicBlock::iterator To, const TargetRegisterInfo *TRI)
Return true if Reg is defd between From and To.
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
std::pair< unsigned, unsigned > decomposeMachineOperandsTargetFlags(unsigned TF) const override
static bool isCPSRDefined(const MachineInstr &MI)
bool isFpMLxInstruction(unsigned Opcode) const
isFpMLxInstruction - Return true if the specified opcode is a fp MLA / MLS instruction.
unsigned getFramePred(const MachineInstr &MI) const
Returns predicate register associated with the given frame instruction.
void addUnpredicatedMveVpredROp(MachineInstrBuilder &MIB, unsigned DestReg)
Provide an instruction scheduling machine model to CodeGen passes.
const HexagonInstrInfo * TII
static bool isVPTOpcode(int Opc)
bool analyzeCompare(const MachineInstr &MI, unsigned &SrcReg, unsigned &SrcReg2, int &CmpMask, int &CmpValue) const override
analyzeCompare - For a comparison instruction, return the source registers in SrcReg and SrcReg2 if h...
bool reverseBranchCondition(SmallVectorImpl< MachineOperand > &Cond) const override
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
ARMCC::CondCodes getPredicate(const MachineInstr &MI) const
void emitT2RegPlusImmediate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, ARMCC::CondCodes Pred, unsigned PredReg, const ARMBaseInstrInfo &TII, unsigned MIFlags=0)
bool rewriteARMFrameIndex(MachineInstr &MI, unsigned FrameRegIdx, unsigned FrameReg, int &Offset, const ARMBaseInstrInfo &TII)
rewriteARMFrameIndex / rewriteT2FrameIndex - Rewrite MI to access 'Offset' bytes from the FP...
unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef< MachineOperand > Cond, const DebugLoc &DL, int *BytesAdded=nullptr) const override
const MachineInstrBuilder & AddDReg(MachineInstrBuilder &MIB, unsigned Reg, unsigned SubIdx, unsigned State, const TargetRegisterInfo *TRI) const
void setExecutionDomain(MachineInstr &MI, unsigned Domain) const override
unsigned extraSizeToPredicateInstructions(const MachineFunction &MF, unsigned NumInsts) const override
bool isAm2ScaledReg(const MachineInstr &MI, unsigned Op) const
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
void storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
ScheduleHazardRecognizer * CreateTargetHazardRecognizer(const TargetSubtargetInfo *STI, const ScheduleDAG *DAG) const override
static unsigned VCMPOpcodeToVPT(unsigned Opcode)
bool shouldScheduleLoadsNear(SDNode *Load1, SDNode *Load2, int64_t Offset1, int64_t Offset2, unsigned NumLoads) const override
shouldScheduleLoadsNear - This is a used by the pre-regalloc scheduler to determine (in conjunction w...
unsigned removeBranch(MachineBasicBlock &MBB, int *BytesRemoved=nullptr) const override
bool analyzeSelect(const MachineInstr &MI, SmallVectorImpl< MachineOperand > &Cond, unsigned &TrueOp, unsigned &FalseOp, bool &Optimizable) const override
bool PredicateInstruction(MachineInstr &MI, ArrayRef< MachineOperand > Pred) const override
bool FoldImmediate(MachineInstr &UseMI, MachineInstr &DefMI, unsigned Reg, MachineRegisterInfo *MRI) const override
FoldImmediate - 'Reg' is known to be defined by a move immediate instruction, try to fold the immedia...
static std::array< MachineOperand, 2 > predOps(ARMCC::CondCodes Pred, unsigned PredReg=0)
Get the operands corresponding to the given Pred value.
MachineInstr * commuteInstructionImpl(MachineInstr &MI, bool NewMI, unsigned OpIdx1, unsigned OpIdx2) const override
Commutes the operands in the given instruction.
unsigned getNumMicroOps(const InstrItineraryData *ItinData, const MachineInstr &MI) const override
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Itinerary data supplied by a subtarget to be used by a target.
const ARMSubtarget & getSubtarget() const
unsigned getMatchingCondBranchOpcode(unsigned Opc)
TargetInstrInfo::RegSubRegPairAndIdx RegSubRegPairAndIdx
bool canCauseFpMLxStall(unsigned Opcode) const
canCauseFpMLxStall - Return true if an instruction of the specified opcode will cause stalls when sch...
BasicBlockListType::iterator iterator
void addUnpredicatedMveVpredNOp(MachineInstrBuilder &MIB)
TargetInstrInfo - Interface to description of machine instruction set.
static bool isCondBranchOpcode(int Opc)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
unsigned const MachineRegisterInfo * MRI
Container class for subtarget features.
void addPredicatedMveVpredNOp(MachineInstrBuilder &MIB, unsigned Cond)
bool SubsumesPredicate(ArrayRef< MachineOperand > Pred1, ArrayRef< MachineOperand > Pred2) const override
HazardRecognizer - This determines whether or not an instruction can be issued this cycle...
Optional< DestSourcePair > isCopyInstrImpl(const MachineInstr &MI) const override
If the specific machine instruction is an instruction that moves/copies value from one register to an...
bool areLoadsFromSameBasePtr(SDNode *Load1, SDNode *Load2, int64_t &Offset1, int64_t &Offset2) const override
areLoadsFromSameBasePtr - This is used by the pre-regalloc scheduler to determine if two loads are lo...
MachineInstrBuilder & UseMI
unsigned isLoadFromStackSlotPostFE(const MachineInstr &MI, int &FrameIndex) const override
void expandLoadStackGuardBase(MachineBasicBlock::iterator MI, unsigned LoadImmOpc, unsigned LoadOpc) const
unsigned getInstSizeInBytes(const MachineInstr &MI) const override
GetInstSize - Returns the size of the specified MachineInstr.
static bool isJumpTableBranchOpcode(int Opc)
bool isAddrMode3OpImm(const MachineInstr &MI, unsigned Op) const
unsigned convertAddSubFlagsOpcode(unsigned OldOpc)
Map pseudo instructions that imply an 'S' bit onto real opcodes.
MachineInstr * findCMPToFoldIntoCBZ(MachineInstr *Br, const TargetRegisterInfo *TRI)
Search backwards from a tBcc to find a tCMPi8 against 0, meaning we can convert them to a tCBZ or tCB...
static MachineOperand CreateReg(Register Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isEarlyClobber=false, unsigned SubReg=0, bool isDebug=false, bool isInternalRead=false, bool isRenamable=false)
void emitARMRegPlusImmediate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, ARMCC::CondCodes Pred, unsigned PredReg, const ARMBaseInstrInfo &TII, unsigned MIFlags=0)
emitARMRegPlusImmediate / emitT2RegPlusImmediate - Emits a series of instructions to materializea des...
ARMCC::CondCodes getInstrPredicate(const MachineInstr &MI, unsigned &PredReg)
getInstrPredicate - If instruction is predicated, returns its predicate condition, otherwise returns AL.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
static bool isValidCoprocessorNumber(unsigned Num, const FeatureBitset &featureBits)
isValidCoprocessorNumber - decide whether an explicit coprocessor number is legal in generic instruct...
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
unsigned ConstantMaterializationCost(unsigned Val, const ARMSubtarget *Subtarget, bool ForCodesize=false)
Returns the number of instructions required to materialize the given constant in a register...
std::pair< uint16_t, uint16_t > getExecutionDomain(const MachineInstr &MI) const override
VFP/NEON execution domains.
ArrayRef< std::pair< unsigned, const char * > > getSerializableDirectMachineOperandTargetFlags() const override
static bool isIndirectBranchOpcode(int Opc)
void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, unsigned SubIdx, const MachineInstr &Orig, const TargetRegisterInfo &TRI) const override
static bool isUncondBranchOpcode(int Opc)
virtual unsigned getUnindexedOpcode(unsigned Opc) const =0
bool rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx, unsigned FrameReg, int &Offset, const ARMBaseInstrInfo &TII, const TargetRegisterInfo *TRI)
unsigned getLDMVariableDefsSize(const MachineInstr &MI) const
BlockVerifier::State From
static MachineOperand t1CondCodeOp(bool isDead=false)
Get the operand corresponding to the conditional code result for Thumb1.
MachineOperand class - Representation of each machine instruction operand.
bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl< MachineOperand > &Cond, bool AllowModify=false) const override
A pair composed of a register and a sub-register index.
MachineInstrBuilder MachineInstrBuilder & DefMI
void breakPartialRegDependency(MachineInstr &, unsigned, const TargetRegisterInfo *TRI) const override
Represents one node in the SelectionDAG.
static bool isPushOpcode(int Opc)
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const override
unsigned getNumLDMAddresses(const MachineInstr &MI) const
Get the number of addresses by LDM or VLDM or zero for unknown.
unsigned isLoadFromStackSlot(const MachineInstr &MI, int &FrameIndex) const override
static bool isLoopStart(MachineInstr &MI)
void copyToCPSR(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned SrcReg, bool KillSrc, const ARMSubtarget &Subtarget) const
MachineInstr * optimizeSelect(MachineInstr &MI, SmallPtrSetImpl< MachineInstr *> &SeenMIs, bool) const override
ArrayRef< std::pair< unsigned, const char * > > getSerializableBitmaskMachineOperandTargetFlags() const override
ARMBaseInstrInfo(const ARMSubtarget &STI)
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
TargetSubtargetInfo - Generic base class for all target subtargets.
MachineInstr & duplicate(MachineBasicBlock &MBB, MachineBasicBlock::iterator InsertBefore, const MachineInstr &Orig) const override
static bool isPopOpcode(int Opc)
bool isPredicable(const MachineInstr &MI) const override
isPredicable - Return true if the specified instruction can be predicated.
Representation of each machine instruction.
bool HasLowerConstantMaterializationCost(unsigned Val1, unsigned Val2, const ARMSubtarget *Subtarget, bool ForCodesize=false)
Returns true if Val1 has a lower Constant Materialization Cost than Val2.
static MachineOperand condCodeOp(unsigned CCReg=0)
Get the operand corresponding to the conditional code result.
bool isLDMBaseRegInList(const MachineInstr &MI) const
bool getExtractSubregLikeInputs(const MachineInstr &MI, unsigned DefIdx, RegSubRegPairAndIdx &InputReg) const override
Build the equivalent inputs of a EXTRACT_SUBREG for the given MI and DefIdx.
void addPredicatedMveVpredROp(MachineInstrBuilder &MIB, unsigned Cond, unsigned Inactive)
int getOperandLatency(const InstrItineraryData *ItinData, const MachineInstr &DefMI, unsigned DefIdx, const MachineInstr &UseMI, unsigned UseIdx) const override
static MachineOperand CreateImm(int64_t Val)
static unsigned VCTPOpcodeToLSTP(unsigned Opcode, bool IsDoLoop)
bool getRegSequenceLikeInputs(const MachineInstr &MI, unsigned DefIdx, SmallVectorImpl< RegSubRegPairAndIdx > &InputRegs) const override
Build the equivalent inputs of a REG_SEQUENCE for the given MI and DefIdx.
bool isProfitableToDupForIfCvt(MachineBasicBlock &MBB, unsigned NumCycles, BranchProbability Probability) const override
void emitThumbRegPlusImmediate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, const TargetInstrInfo &TII, const ARMBaseRegisterInfo &MRI, unsigned MIFlags=0)
emitThumbRegPlusImmediate - Emits a series of instructions to materialize a destreg = basereg + immed...
bool optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg, unsigned SrcReg2, int CmpMask, int CmpValue, const MachineRegisterInfo *MRI) const override
optimizeCompareInstr - Convert the instruction to set the zero flag so that we can remove a "comparis...
static bool isVCTP(MachineInstr *MI)
bool isSwiftFastImmShift(const MachineInstr *MI) const
Returns true if the instruction has a shift by immediate that can be executed in one cycle less...
size_type count(const_arg_type_t< KeyT > Val) const
Return 1 if the specified key is in the map, 0 otherwise.
unsigned isStoreToStackSlotPostFE(const MachineInstr &MI, int &FrameIndex) const override
bool isAddrMode3OpMinusReg(const MachineInstr &MI, unsigned Op) const
void copyFromCPSR(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, unsigned DestReg, bool KillSrc, const ARMSubtarget &Subtarget) const
ScheduleHazardRecognizer * CreateTargetPostRAHazardRecognizer(const InstrItineraryData *II, const ScheduleDAG *DAG) const override
bool shouldSink(const MachineInstr &MI) const override
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
virtual const ARMBaseRegisterInfo & getRegisterInfo() const =0
bool isLdstScaledReg(const MachineInstr &MI, unsigned Op) const
StringRef - Represent a constant reference to a string, i.e.
Register getReg() const
getReg - Returns the register number.
Optional< RegImmPair > isAddImmediate(const MachineInstr &MI, Register Reg) const override
bool produceSameValue(const MachineInstr &MI0, const MachineInstr &MI1, const MachineRegisterInfo *MRI) const override
const MachineOperand & getOperand(unsigned i) const
MachineInstr * convertToThreeAddress(MachineFunction::iterator &MFI, MachineInstr &MI, LiveVariables *LV) const override
Wrapper class representing virtual and physical registers.
unsigned isStoreToStackSlot(const MachineInstr &MI, int &FrameIndex) const override
size_type count(const T &V) const
count - Return 1 if the element is in the set, 0 otherwise.