Home
last modified time | relevance | path

Searched refs:NextMI (Results 1 – 17 of 17) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIPostRABundler.cpp56 bool canBundle(const MachineInstr &MI, const MachineInstr &NextMI) const;
115 const MachineInstr &NextMI) const { in canBundle()
118 return (IMemFlags != 0 && MI.mayLoadOrStore() && !NextMI.isBundled() && in canBundle()
119 NextMI.mayLoad() == MI.mayLoad() && NextMI.mayStore() == MI.mayStore() && in canBundle()
120 ((NextMI.getDesc().TSFlags & MemFlags) == IMemFlags) && in canBundle()
121 !isDependentLoad(NextMI)); in canBundle()
H A DGCNRegPressure.cpp337 NextMI = &MI; in reset()
338 NextMI = skipDebugInstructionsForward(NextMI, MBBEnd); in reset()
339 if (NextMI == MBBEnd) in reset()
348 return NextMI == MBBEnd; in advanceBeforeNext()
350 assert(NextMI == MBBEnd || !NextMI->isDebugInstr()); in advanceBeforeNext()
352 SlotIndex SI = NextMI == MBBEnd in advanceBeforeNext()
396 return NextMI == MBBEnd; in advanceBeforeNext()
400 LastTrackedMI = &*NextMI++; in advanceToNext()
401 NextMI = skipDebugInstructionsForward(NextMI, MBBEnd); in advanceToNext()
418 if (NextMI == MBBEnd) in advance()
[all …]
H A DGCNRegPressure.h210 MachineBasicBlock::const_iterator NextMI; variable
217 MachineBasicBlock::const_iterator getNext() const { return NextMI; } in getNext()
H A DGCNHazardRecognizer.cpp2864 auto NextMI = std::next(MI->getIterator()); in fixVALUMaskWriteHazard() local
2867 BuildMI(*MI->getParent(), NextMI, MI->getDebugLoc(), in fixVALUMaskWriteHazard()
2874 while (NextMI != MI->getParent()->end() && in fixVALUMaskWriteHazard()
2875 NextMI->isBundledWithPred()) { in fixVALUMaskWriteHazard()
2876 for (auto &Operand : NextMI->operands()) { in fixVALUMaskWriteHazard()
2880 NextMI++; in fixVALUMaskWriteHazard()
H A DSIShrinkInstructions.cpp815 if (auto *NextMI = matchSwap(MI)) { in runOnMachineFunction() local
816 Next = NextMI->getIterator(); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackSlotColoring.cpp465 MachineBasicBlock::iterator NextMI = std::next(I); in RemoveDeadStores() local
475 while ((NextMI != E) && NextMI->isDebugInstr()) { in RemoveDeadStores()
476 ++NextMI; in RemoveDeadStores()
479 if (NextMI == E) continue; in RemoveDeadStores()
480 if (!(StoreReg = TII->isStoreToStackSlot(*NextMI, SecondSS, StoreSize))) in RemoveDeadStores()
489 if (NextMI->findRegisterUseOperandIdx(LoadReg, true, nullptr) != -1) { in RemoveDeadStores()
494 toErase.push_back(&*NextMI); in RemoveDeadStores()
H A DSlotIndexes.cpp148 MachineInstr &NextMI = *Next; in removeSingleMachineInstrFromMaps() local
149 MIEntry.setInstr(&NextMI); in removeSingleMachineInstrFromMaps()
150 mi2iMap.insert(std::make_pair(&NextMI, MIIndex)); in removeSingleMachineInstrFromMaps()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMLxExpansionPass.cpp249 MachineInstr *NextMI = LastMIs[Idx]; in FindMLxHazard() local
250 if (!NextMI) in FindMLxHazard()
253 if (TII->canCauseFpMLxStall(NextMI->getOpcode())) { in FindMLxHazard()
259 if (i <= Limit2 && hasRAWHazard(getDefReg(MI), NextMI)) in FindMLxHazard()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInsertVSETVLI.cpp1534 MachineInstr *NextMI = nullptr; in doLocalPostpass() local
1553 if (NextMI) { in doLocalPostpass()
1558 } else if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) { in doLocalPostpass()
1559 if (!isVLPreservingConfig(*NextMI)) { in doLocalPostpass()
1560 MI.getOperand(0).setReg(NextMI->getOperand(0).getReg()); in doLocalPostpass()
1565 if (NextMI->getOperand(1).isImm()) in doLocalPostpass()
1566 MI.getOperand(1).ChangeToImmediate(NextMI->getOperand(1).getImm()); in doLocalPostpass()
1575 MI.setDesc(NextMI->getDesc()); in doLocalPostpass()
1577 MI.getOperand(2).setImm(NextMI->getOperand(2).getImm()); in doLocalPostpass()
1578 ToDelete.push_back(NextMI); in doLocalPostpass()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LowerHomogeneousPrologEpilog.cpp420 for (auto NextMI = NextMBBI; NextMI != MBB.end(); NextMI++) { in shouldUseFrameHelper() local
421 if (NextMI->readsRegister(AArch64::W16, TRI)) in shouldUseFrameHelper()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVAsmPrinter.cpp237 const MachineInstr *NextMI = MI->getNextNode(); in emitInstruction() local
239 (!NextMI || !isFuncOrHeaderInstr(NextMI, TII))) { in emitInstruction()
H A DSPIRVPreLegalizer.cpp551 MachineInstr *NextMI = CBr->getNextNode(); in processSwitches() local
552 assert(NextMI->getOpcode() == SPIRV::G_BR && in processSwitches()
553 NextMI->getOperand(0).isMBB()); in processSwitches()
554 MachineBasicBlock *NextMBB = NextMI->getOperand(0).getMBB(); in processSwitches()
H A DSPIRVBuiltins.cpp1572 MachineInstr *NextMI = MI->getNextNode(); in getMachineInstrType() local
1573 if (isSpvIntrinsic(*NextMI, Intrinsic::spv_assign_name)) in getMachineInstrType()
1574 NextMI = NextMI->getNextNode(); in getMachineInstrType()
1576 if (!isSpvIntrinsic(*NextMI, Intrinsic::spv_assign_type) || in getMachineInstrType()
1577 NextMI->getOperand(1).getReg() != ValueReg) in getMachineInstrType()
1579 Type *Ty = getMDOperandAsType(NextMI->getOperand(2).getMetadata(), 0); in getMachineInstrType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVLIWPacketizer.cpp1364 MachineInstr &NextMI = *NextMII; in isLegalToPacketizeTogether() local
1367 const MachineOperand &NOp0 = NextMI.getOperand(0); in isLegalToPacketizeTogether()
1368 const MachineOperand &NOp1 = NextMI.getOperand(1); in isLegalToPacketizeTogether()
1811 MachineBasicBlock::instr_iterator NextMI = std::next(MI->getIterator()); in endPacket() local
1812 for (auto &I : make_range(HII->expandVGatherPseudo(*MI), NextMI)) in endPacket()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp955 auto NextMI = std::find_if(std::next(MI.getIterator()), in LowerPATCHABLE_OP() local
962 if (NextMI != MI.getParent()->end() && !NextMI->isInlineAsm()) { in LowerPATCHABLE_OP()
967 MCIL.Lower(&*NextMI, MCI); in LowerPATCHABLE_OP()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp8157 for (MachineInstr &NextMI : llvm::make_range( in emitSelect()
8159 if (isSelectPseudo(NextMI)) { in emitSelect()
8160 assert(NextMI.getOperand(3).getImm() == CCValid && in emitSelect()
8162 if (NextMI.getOperand(4).getImm() == CCMask || in emitSelect()
8163 NextMI.getOperand(4).getImm() == (CCValid ^ CCMask)) { in emitSelect()
8164 Selects.push_back(&NextMI); in emitSelect()
8169 if (NextMI.definesRegister(SystemZ::CC) || NextMI.usesCustomInsertionHook()) in emitSelect()
8173 if (NextMI.readsVirtualRegister(SelMI->getOperand(0).getReg())) { in emitSelect()
8177 if (NextMI.isDebugInstr()) { in emitSelect()
8179 assert(NextMI.isDebugValue() && "Unhandled debug opcode."); in emitSelect()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp3135 for (const auto &NextMI : *MI->getParent()) { in beginInstruction()
3136 if (NextMI.isDebugInstr()) in beginInstruction()
3138 DL = NextMI.getDebugLoc(); in beginInstruction()