Home
last modified time | relevance | path

Searched refs:OldMI (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonOptAddrMode.cpp109 bool changeStore(MachineInstr *OldMI, MachineOperand ImmOp,
111 bool changeLoad(MachineInstr *OldMI, MachineOperand ImmOp, unsigned ImmOpNum);
561 bool HexagonOptAddrMode::changeLoad(MachineInstr *OldMI, MachineOperand ImmOp, in changeLoad() argument
564 MachineBasicBlock *BB = OldMI->getParent(); in changeLoad()
565 auto UsePos = MachineBasicBlock::iterator(OldMI); in changeLoad()
569 unsigned OpEnd = OldMI->getNumOperands(); in changeLoad()
573 if (HII->getAddrMode(*OldMI) == HexagonII::BaseRegOffset) { in changeLoad()
574 short NewOpCode = HII->changeAddrMode_rr_ur(*OldMI); in changeLoad()
576 MIB = BuildMI(*BB, InsertPt, OldMI->getDebugLoc(), HII->get(NewOpCode)); in changeLoad()
577 MIB.add(OldMI->getOperand(0)); in changeLoad()
[all …]
H A DHexagonBlockRanges.cpp206 void HexagonBlockRanges::InstrIndexMap::replaceInstr(MachineInstr *OldMI, in replaceInstr() argument
209 if (I.second != OldMI) in replaceInstr()
H A DHexagonBlockRanges.h134 void replaceInstr(MachineInstr *OldMI, MachineInstr *NewMI);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ExpandSpecialInstrs.cpp33 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
64 const MachineInstr *OldMI, unsigned Op) { in SetFlagInNewMI() argument
65 int OpIdx = TII->getOperandIdx(*OldMI, Op); in SetFlagInNewMI()
67 uint64_t Val = OldMI->getOperand(OpIdx).getImm(); in SetFlagInNewMI()
H A DGCNSchedStrategy.cpp1553 MachineInstr *OldMI = Entry.second; in sinkTriviallyRematInsts() local
1557 OldMI->clearRegisterDeads(Reg); in sinkTriviallyRematInsts()
1567 MachineInstr *OldMI = Entry.second; in sinkTriviallyRematInsts() local
1570 DAG.BBLiveInMap.erase(OldMI); in sinkTriviallyRematInsts()
1574 LIS->RemoveMachineInstrFromMaps(*OldMI); in sinkTriviallyRematInsts()
1575 OldMI->eraseFromParent(); in sinkTriviallyRematInsts()
H A DR600MachineCFGStructurizer.cpp458 MachineInstr *OldMI = &(*I); in insertInstrBefore() local
459 MachineBasicBlock *MBB = OldMI->getParent(); in insertInstrBefore()
470 MachineInstr *OldMI = &(*I); in insertCondBranchBefore() local
471 MachineBasicBlock *MBB = OldMI->getParent(); in insertCondBranchBefore()
476 MIB.addReg(OldMI->getOperand(1).getReg(), false); in insertCondBranchBefore()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DModuloSchedule.h215 void updateMemOperands(MachineInstr &NewMI, MachineInstr &OldMI,
217 MachineInstr *cloneInstr(MachineInstr *OldMI, unsigned CurStageNum,
219 MachineInstr *cloneAndChangeInstr(MachineInstr *OldMI, unsigned CurStageNum,
418 MachineInstr *cloneInstr(MachineInstr *OldMI);
H A DLiveVariables.h199 void replaceKillInstruction(Register Reg, MachineInstr &OldMI,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DModuloSchedule.cpp966 MachineInstr &OldMI, in updateMemOperands() argument
984 if (Num != UINT_MAX && computeDelta(OldMI, Delta)) { in updateMemOperands()
998 MachineInstr *ModuloScheduleExpander::cloneInstr(MachineInstr *OldMI, in cloneInstr() argument
1001 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneInstr()
1002 updateMemOperands(*NewMI, *OldMI, CurStageNum - InstStageNum); in cloneInstr()
1010 MachineInstr *OldMI, unsigned CurStageNum, unsigned InstStageNum) { in cloneAndChangeInstr() argument
1011 MachineInstr *NewMI = MF.CloneMachineInstr(OldMI); in cloneAndChangeInstr()
1012 auto It = InstrChanges.find(OldMI); in cloneAndChangeInstr()
1016 if (!TII->getBaseAndOffsetPosition(*OldMI, BasePos, OffsetPos)) in cloneAndChangeInstr()
1018 int64_t NewOffset = OldMI->getOperand(OffsetPos).getImm(); in cloneAndChangeInstr()
[all …]
H A DLiveVariables.cpp770 void LiveVariables::replaceKillInstruction(Register Reg, MachineInstr &OldMI, in replaceKillInstruction() argument
773 std::replace(VI.Kills.begin(), VI.Kills.end(), &OldMI, &NewMI); in replaceKillInstruction()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DGIMatchTableExecutorImpl.h1030 MachineInstr *OldMI = State.MIs[OldInsnID]; in executeMatchTable() local
1032 Observer->changingInstr(*OldMI); in executeMatchTable()
1033 OutMIs[NewInsnID] = MachineInstrBuilder(*OldMI->getMF(), OldMI); in executeMatchTable()
1036 Observer->changedInstr(*OldMI); in executeMatchTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.cpp1062 static void transferDeadCC(MachineInstr *OldMI, MachineInstr *NewMI) { in transferDeadCC() argument
1063 if (OldMI->registerDefIsDead(SystemZ::CC, /*TRI=*/nullptr)) { in transferDeadCC()
1071 static void transferMIFlag(MachineInstr *OldMI, MachineInstr *NewMI, in transferMIFlag() argument
1073 if (OldMI->getFlag(Flag)) in transferMIFlag()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandPseudoInsts.cpp110 static void transferImpOps(MachineInstr &OldMI, MachineInstrBuilder &UseMI, in transferImpOps() argument
112 const MCInstrDesc &Desc = OldMI.getDesc(); in transferImpOps()
114 llvm::drop_begin(OldMI.operands(), Desc.getNumOperands())) { in transferImpOps()