32 unsigned FirstOpcode =
34 :
static_cast<unsigned>(ARM::INSTRUCTION_LIST_END);
35 unsigned SecondOpcode = SecondMI.
getOpcode();
39 switch(SecondOpcode) {
42 return FirstOpcode == ARM::AESE ||
43 FirstOpcode == ARM::INSTRUCTION_LIST_END;
46 return FirstOpcode == ARM::AESD ||
47 FirstOpcode == ARM::INSTRUCTION_LIST_END;
const HexagonInstrInfo * TII
std::unique_ptr< ScheduleDAGMutation > createMacroFusionDAGMutation(ShouldSchedulePredTy shouldScheduleAdjacent)
Create a DAG scheduling mutation to pair instructions back to back for instructions that benefit acco...
std::unique_ptr< ScheduleDAGMutation > createARMMacroFusionDAGMutation()
Note that you have to add: DAG.addMutation(createARMMacroFusionDAGMutation()); to ARMPassConfig::crea...
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
TargetInstrInfo - Interface to description of machine instruction set.
static bool shouldScheduleAdjacent(const TargetInstrInfo &TII, const TargetSubtargetInfo &TSI, const MachineInstr *FirstMI, const MachineInstr &SecondMI)
Check if the instr pair, FirstMI and SecondMI, should be fused together.
TargetSubtargetInfo - Generic base class for all target subtargets.
Representation of each machine instruction.