Home
last modified time | relevance | path

Searched refs:NewMI (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/lib/Target/Hexagon/
DHexagonExpandPredSpillCode.cpp110 MachineInstr *NewMI = BuildMI(*MBB, MII, MI->getDebugLoc(), in runOnMachineFunction() local
112 NewMI->addOperand(Op0); in runOnMachineFunction()
113 NewMI->addOperand(Op1); in runOnMachineFunction()
114 NewMI->addOperand(Op4); in runOnMachineFunction()
115 NewMI->addOperand(MachineOperand::CreateReg(Hexagon::M0, in runOnMachineFunction()
119 NewMI->addOperand(Op2); in runOnMachineFunction()
153 MachineInstr *NewMI = BuildMI(*MBB, MII, MI->getDebugLoc(), in runOnMachineFunction() local
155 NewMI->addOperand(Op1); in runOnMachineFunction()
156 NewMI->addOperand(Op0); in runOnMachineFunction()
157 NewMI->addOperand(Op2); in runOnMachineFunction()
[all …]
DHexagonNewValueJump.cpp631 MachineInstr *NewMI; in runOnMachineFunction() local
642 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
653 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
659 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
665 assert(NewMI && "New Value Jump Instruction Not created!"); in runOnMachineFunction()
666 (void)NewMI; in runOnMachineFunction()
DHexagonVLIWPacketizer.cpp764 MachineInstr *NewMI = MF.CreateMachineInstr(D, DebugLoc()); in canPromoteToDotNew() local
765 bool ResourcesAvailable = ResourceTracker->canReserveResources(NewMI); in canPromoteToDotNew()
766 MF.DeleteMachineInstr(NewMI); in canPromoteToDotNew()
/external/llvm/lib/Target/X86/
DX86FixupLEAs.cpp108 MachineInstr *NewMI; in postRAConvertToLEA() local
114 NewMI = BuildMI(*MF, MI->getDebugLoc(), in postRAConvertToLEA()
123 MFI->insert(MBBI, NewMI); // Insert the new inst in postRAConvertToLEA()
124 return NewMI; in postRAConvertToLEA()
279 MachineInstr *NewMI = in fixupIncDec() local
284 I = static_cast<MachineBasicBlock::iterator>(NewMI); in fixupIncDec()
315 MachineInstr *NewMI = postRAConvertToLEA(MFI, MBI); in seekLEAFixup() local
316 if (NewMI) { in seekLEAFixup()
320 DEBUG(dbgs() << "FixLEA: Replaced by: "; NewMI->dump();); in seekLEAFixup()
323 static_cast<MachineBasicBlock::iterator>(NewMI); in seekLEAFixup()
[all …]
DX86InstrInfo.cpp2503 MachineInstr *NewMI = std::prev(I); in reMaterialize() local
2504 NewMI->substituteRegister(Orig->getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize()
2700 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local
2708 LV->getVarInfo(leaInReg).Kills.push_back(NewMI); in convertToThreeAddressWithLEA()
2746 MachineInstr *NewMI = nullptr; in convertToThreeAddress() local
2767 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress()
2794 NewMI = MIB; in convertToThreeAddress()
2805 NewMI = BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
2828 NewMI = addOffset(MIB, 1); in convertToThreeAddress()
2836 NewMI = addOffset(BuildMI(MF, MI->getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress()
[all …]
DX86ExpandPseudo.cpp124 MachineInstr *NewMI = std::prev(MBBI); in ExpandMI() local
125 NewMI->copyImplicitOps(*MBBI->getParent()->getParent(), MBBI); in ExpandMI()
/external/llvm/lib/Target/AMDGPU/
DR600ExpandSpecialInstrs.cpp37 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
59 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
64 TII->setImmOperand(NewMI, Op, Val); in SetFlagInNewMI()
327 MachineInstr *NewMI = in runOnMachineFunction() local
331 NewMI->bundleWithPred(); in runOnMachineFunction()
333 TII->addFlag(NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction()
336 TII->addFlag(NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction()
338 SetFlagInNewMI(NewMI, &MI, AMDGPU::OpName::clamp); in runOnMachineFunction()
339 SetFlagInNewMI(NewMI, &MI, AMDGPU::OpName::literal); in runOnMachineFunction()
340 SetFlagInNewMI(NewMI, &MI, AMDGPU::OpName::src0_abs); in runOnMachineFunction()
[all …]
DR600ISelLowering.cpp212 MachineInstrBuilder NewMI; in EmitInstrWithCustomInserter() local
219 NewMI = BuildMI(*BB, I, BB->findDebugLoc(I), in EmitInstrWithCustomInserter()
222 NewMI.addOperand(MI->getOperand(i)); in EmitInstrWithCustomInserter()
229 MachineInstr *NewMI = TII->buildDefaultInstruction(*BB, I, in EmitInstrWithCustomInserter() local
233 TII->addFlag(NewMI, 0, MO_FLAG_CLAMP); in EmitInstrWithCustomInserter()
238 MachineInstr *NewMI = TII->buildDefaultInstruction(*BB, I, in EmitInstrWithCustomInserter() local
242 TII->addFlag(NewMI, 0, MO_FLAG_ABS); in EmitInstrWithCustomInserter()
247 MachineInstr *NewMI = TII->buildDefaultInstruction(*BB, I, in EmitInstrWithCustomInserter() local
251 TII->addFlag(NewMI, 0, MO_FLAG_NEG); in EmitInstrWithCustomInserter()
273 MachineInstr *NewMI = TII->buildDefaultInstruction(*BB, MI, AMDGPU::MOV, in EmitInstrWithCustomInserter() local
[all …]
DAMDILCFGStructurizer.cpp509 MachineInstr *NewMI = MF->CreateMachineInstr(TII->get(NewOpcode), DL); in insertCondBranchBefore() local
510 MBB->insert(I, NewMI); in insertCondBranchBefore()
511 MachineInstrBuilder MIB(*MF, NewMI); in insertCondBranchBefore()
513 SHOWNEWINSTR(NewMI); in insertCondBranchBefore()
/external/llvm/lib/CodeGen/
DTargetInstrInfo.cpp122 bool NewMI, in commuteInstructionImpl() argument
165 if (NewMI) { in commuteInstructionImpl()
189 bool NewMI, in commuteInstruction() argument
201 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
461 MachineInstr *NewMI = in foldPatchpoint() local
463 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
489 return NewMI; in foldPatchpoint()
512 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
517 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
518 if (NewMI) in foldMemoryOperand()
[all …]
DRegisterCoalescer.cpp710 MachineInstr *NewMI = in removeCopyByCommutingDef() local
712 if (!NewMI) in removeCopyByCommutingDef()
718 if (NewMI != DefMI) { in removeCopyByCommutingDef()
719 LIS->ReplaceMachineInstrInMaps(DefMI, NewMI); in removeCopyByCommutingDef()
721 MBB->insert(Pos, NewMI); in removeCopyByCommutingDef()
946 MachineInstr *NewMI = std::prev(MII); in reMaterializeTrivialDef() local
955 MachineOperand &DefMO = NewMI->getOperand(0); in reMaterializeTrivialDef()
970 LIS->ReplaceMachineInstrInMaps(CopyMI, NewMI); in reMaterializeTrivialDef()
978 for (unsigned i = NewMI->getDesc().getNumOperands(), in reMaterializeTrivialDef()
979 e = NewMI->getNumOperands(); i != e; ++i) { in reMaterializeTrivialDef()
[all …]
DTwoAddressInstructionPass.cpp650 MachineInstr *NewMI = TII->commuteInstruction(MI, false, RegBIdx, RegCIdx); in commuteInstruction() local
652 if (NewMI == nullptr) { in commuteInstruction()
657 DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in commuteInstruction()
658 assert(NewMI == MI && in commuteInstruction()
698 MachineInstr *NewMI = TII->convertToThreeAddress(MFI, mi, LV); in convertInstTo3Addr() local
701 if (!NewMI) in convertInstTo3Addr()
705 DEBUG(dbgs() << "2addr: TO 3-ADDR: " << *NewMI); in convertInstTo3Addr()
709 LIS->ReplaceMachineInstrInMaps(mi, NewMI); in convertInstTo3Addr()
711 if (NewMI->findRegisterUseOperand(RegB, false, TRI)) in convertInstTo3Addr()
715 Sunk = sink3AddrInstruction(NewMI, RegB, mi); in convertInstTo3Addr()
[all …]
DMachineCSE.cpp481 MachineInstr *NewMI = TII->commuteInstruction(MI); in ProcessBlock() local
482 if (NewMI) { in ProcessBlock()
484 FoundCSE = VNT.count(NewMI); in ProcessBlock()
485 if (NewMI != MI) { in ProcessBlock()
487 NewMI->eraseFromParent(); in ProcessBlock()
DTailDuplication.cpp431 MachineInstr *NewMI = TII->duplicate(MI, MF); in DuplicateInstruction() local
432 for (unsigned i = 0, e = NewMI->getNumOperands(); i != e; ++i) { in DuplicateInstruction()
433 MachineOperand &MO = NewMI->getOperand(i); in DuplicateInstruction()
457 PredBB->insert(PredBB->instr_end(), NewMI); in DuplicateInstruction()
DLiveVariables.cpp683 MachineInstr *NewMI) { in replaceKillInstruction() argument
685 std::replace(VI.Kills.begin(), VI.Kills.end(), OldMI, NewMI); in replaceKillInstruction()
/external/mesa3d/src/gallium/drivers/radeon/
DR600ISelLowering.cpp64 MachineInstr *NewMI = in EmitInstrWithCustomInserter() local
70 TII->addFlag(NewMI, 0, MO_FLAG_CLAMP); in EmitInstrWithCustomInserter()
75 MachineInstr *NewMI = in EmitInstrWithCustomInserter() local
81 TII->addFlag(NewMI, 1, MO_FLAG_ABS); in EmitInstrWithCustomInserter()
87 MachineInstr *NewMI = in EmitInstrWithCustomInserter() local
93 TII->addFlag(NewMI, 1, MO_FLAG_NEG); in EmitInstrWithCustomInserter()
206 MachineInstr *NewMI = in EmitInstrWithCustomInserter() local
212 TII->addFlag(NewMI, 1, MO_FLAG_PUSH); in EmitInstrWithCustomInserter()
220 MachineInstr *NewMI = in EmitInstrWithCustomInserter() local
226 TII->addFlag(NewMI, 1, MO_FLAG_PUSH); in EmitInstrWithCustomInserter()
DR600ExpandSpecialInstrs.cpp150 MachineInstr *NewMI = in runOnMachineFunction() local
156 NewMI->setIsInsideBundle(Chan != 0); in runOnMachineFunction()
157 TII->addFlag(NewMI, 0, Flags); in runOnMachineFunction()
/external/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp386 MachineInstr *NewMI = MRI->getVRegDef(Reg); in elideCopiesAndPHIs() local
387 if (!NewMI) in elideCopiesAndPHIs()
389 Front.push_back(NewMI); in elideCopiesAndPHIs()
394 MachineInstr *NewMI = MRI->getVRegDef(MI->getOperand(1).getReg()); in elideCopiesAndPHIs() local
395 if (!NewMI) in elideCopiesAndPHIs()
397 Front.push_back(NewMI); in elideCopiesAndPHIs()
DARMBaseInstrInfo.cpp251 MachineInstr *NewMI = (Reg == WBReg) ? UpdateMI : MemMI; in convertToThreeAddress() local
253 LV->addVirtualRegisterDead(Reg, NewMI); in convertToThreeAddress()
258 MachineInstr *NewMI = NewMIs[j]; in convertToThreeAddress() local
259 if (!NewMI->readsRegister(Reg)) in convertToThreeAddress()
261 LV->addVirtualRegisterKilled(Reg, NewMI); in convertToThreeAddress()
263 VI.Kills.push_back(NewMI); in convertToThreeAddress()
1801 bool NewMI, in commuteInstructionImpl() argument
1813 MI = TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
1822 return TargetInstrInfo::commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstructionImpl()
1907 MachineInstrBuilder NewMI = BuildMI(*MI->getParent(), MI, MI->getDebugLoc(), in optimizeSelect() local
[all …]
/external/llvm/include/llvm/CodeGen/
DLiveIntervalAnalysis.h257 void ReplaceMachineInstrInMaps(MachineInstr *MI, MachineInstr *NewMI) { in ReplaceMachineInstrInMaps() argument
258 Indexes->replaceMachineInstrInMaps(MI, NewMI); in ReplaceMachineInstrInMaps()
DLiveVariables.h196 MachineInstr *NewMI);
/external/clang/lib/Lex/
DPPMacroExpansion.cpp183 auto *NewMI = Active->getMacroInfo(); in updateModuleMacroInfo() local
194 if (MI && NewMI != MI && in updateModuleMacroInfo()
195 !MI->isIdenticalTo(*NewMI, *this, /*Syntactically=*/true)) in updateModuleMacroInfo()
198 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); in updateModuleMacroInfo()
199 MI = NewMI; in updateModuleMacroInfo()
553 if (MacroInfo *NewMI = getMacroInfo(NewII)) in HandleMacroExpandedIdentifier() local
554 if (!NewMI->isEnabled() || NewMI == MI) { in HandleMacroExpandedIdentifier()
558 if (NewMI != MI || MI->isFunctionLike()) in HandleMacroExpandedIdentifier()
/external/llvm/lib/Target/ARM/InstPrinter/
DARMInstPrinter.cpp281 MCInst NewMI; in printInst() local
283 NewMI.setOpcode(Opcode); in printInst()
286 NewMI.addOperand(MI->getOperand(0)); in printInst()
289 NewMI.addOperand(NewReg); in printInst()
293 NewMI.addOperand(MI->getOperand(i)); in printInst()
294 printInstruction(&NewMI, STI, O); in printInst()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h95 bool NewMI,
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h118 bool NewMI,
319 bool NewMI = false,

12