Home
last modified time | relevance | path

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

1234567

/external/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp60 MachineInstr *NewMI = BuildMI(getMF(), DL, getTII().get(Opcode)); in buildInstr() local
64 NewMI->setType(Ty); in buildInstr()
68 getMBB().insert(getInsertPt(), NewMI); in buildInstr()
69 return NewMI; in buildInstr()
80 MachineInstr *NewMI = buildInstr(Opcode, Ty); in buildInstr() local
81 MachineInstrBuilder(getMF(), NewMI) in buildInstr()
85 return NewMI; in buildInstr()
90 MachineInstr *NewMI = buildInstr(Opcode, nullptr); in buildInstr() local
91 MachineInstrBuilder(getMF(), NewMI).addReg(Res, RegState::Define).addReg(Op0); in buildInstr()
92 return NewMI; in buildInstr()
[all …]
/external/llvm-project/llvm/lib/Target/X86/
DX86FixupLEAs.cpp143 MachineInstr *NewMI = in INITIALIZE_PASS() local
153 return NewMI; in INITIALIZE_PASS()
399 MachineInstr *NewMI = nullptr; in optTwoAddrLEA() local
411 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
416 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
432 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
435 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
442 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
446 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
453 MBB.getParent()->substituteDebugValuesForInst(*I, *NewMI, 1); in optTwoAddrLEA()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86FixupLEAs.cpp134 MachineInstr *NewMI = in INITIALIZE_PASS() local
144 return NewMI; in INITIALIZE_PASS()
383 MachineInstr *NewMI = nullptr; in optTwoAddrLEA() local
395 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
400 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
416 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
419 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
426 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
430 NewMI = BuildMI(MBB, I, MI.getDebugLoc(), TII->get(NewOpcode), DestReg) in optTwoAddrLEA()
438 I = NewMI; in optTwoAddrLEA()
[all …]
/external/llvm/lib/Target/X86/
DX86FixupLEAs.cpp119 MachineInstr *NewMI = in postRAConvertToLEA() local
129 MFI->insert(MBBI, NewMI); // Insert the new inst in postRAConvertToLEA()
130 return NewMI; in postRAConvertToLEA()
288 MachineInstr *NewMI = in fixupIncDec() local
293 I = static_cast<MachineBasicBlock::iterator>(NewMI); in fixupIncDec()
323 MachineInstr *NewMI = postRAConvertToLEA(MFI, MBI); in seekLEAFixup() local
324 if (NewMI) { in seekLEAFixup()
328 DEBUG(dbgs() << "FixLEA: Replaced by: "; NewMI->dump();); in seekLEAFixup()
331 static_cast<MachineBasicBlock::iterator>(NewMI); in seekLEAFixup()
373 MachineInstr *NewMI = nullptr; in processInstructionForSLM() local
[all …]
DX86FixupBWInsts.cpp279 MachineInstr *NewMI = nullptr; in tryReplaceInstr() local
291 NewMI = tryReplaceLoad(X86::MOVZX32rm8, MI); in tryReplaceInstr()
302 NewMI = tryReplaceLoad(X86::MOVZX32rm16, MI); in tryReplaceInstr()
312 NewMI = tryReplaceCopy(MI); in tryReplaceInstr()
321 return NewMI; in tryReplaceInstr()
350 MachineInstr *NewMI = tryReplaceInstr(MI, MBB, WasCandidate); in processBasicBlock() local
355 MIReplacements.push_back(std::make_pair(MI, NewMI)); in processBasicBlock()
364 MachineInstr *NewMI = MIReplacements.back().second; in processBasicBlock() local
366 if (NewMI) { in processBasicBlock()
367 MBB.insert(MI, NewMI); in processBasicBlock()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600ExpandSpecialInstrs.cpp43 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
73 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
78 TII->setImmOperand(*NewMI, Op, Val); in SetFlagInNewMI()
263 MachineInstr *NewMI = in runOnMachineFunction() local
267 NewMI->bundleWithPred(); in runOnMachineFunction()
269 TII->addFlag(*NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction()
272 TII->addFlag(*NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction()
274 SetFlagInNewMI(NewMI, &MI, R600::OpName::clamp); in runOnMachineFunction()
275 SetFlagInNewMI(NewMI, &MI, R600::OpName::literal); in runOnMachineFunction()
276 SetFlagInNewMI(NewMI, &MI, R600::OpName::src0_abs); in runOnMachineFunction()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DR600ExpandSpecialInstrs.cpp43 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
73 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
78 TII->setImmOperand(*NewMI, Op, Val); in SetFlagInNewMI()
263 MachineInstr *NewMI = in runOnMachineFunction() local
267 NewMI->bundleWithPred(); in runOnMachineFunction()
269 TII->addFlag(*NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction()
272 TII->addFlag(*NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction()
274 SetFlagInNewMI(NewMI, &MI, R600::OpName::clamp); in runOnMachineFunction()
275 SetFlagInNewMI(NewMI, &MI, R600::OpName::literal); in runOnMachineFunction()
276 SetFlagInNewMI(NewMI, &MI, R600::OpName::src0_abs); in runOnMachineFunction()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600ExpandSpecialInstrs.cpp36 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI,
58 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument
63 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 …]
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonHazardRecognizer.cpp56 MachineInstr *NewMI = in getHazardType() local
59 if (Resources->canReserveResources(*NewMI)) in getHazardType()
63 MF->DeleteMachineInstr(NewMI); in getHazardType()
127 MachineInstr *NewMI = in EmitInstruction() local
130 assert(Resources->canReserveResources(*NewMI)); in EmitInstruction()
131 Resources->reserveResources(*NewMI); in EmitInstruction()
132 MF->DeleteMachineInstr(NewMI); in EmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonHazardRecognizer.cpp56 MachineInstr *NewMI = in getHazardType() local
59 if (Resources->canReserveResources(*NewMI)) in getHazardType()
63 MF->DeleteMachineInstr(NewMI); in getHazardType()
127 MachineInstr *NewMI = in EmitInstruction() local
130 assert(Resources->canReserveResources(*NewMI)); in EmitInstruction()
131 Resources->reserveResources(*NewMI); in EmitInstruction()
132 MF->DeleteMachineInstr(NewMI); in EmitInstruction()
/external/llvm/lib/CodeGen/
DTargetInstrInfo.cpp127 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
170 if (NewMI) { in commuteInstructionImpl()
195 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
207 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
460 MachineInstr *NewMI = in foldPatchpoint() local
462 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
488 return NewMI; in foldPatchpoint()
511 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
516 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
517 if (NewMI) in foldMemoryOperand()
[all …]
DRegisterCoalescer.cpp720 MachineInstr *NewMI = in removeCopyByCommutingDef() local
722 if (!NewMI) in removeCopyByCommutingDef()
728 if (NewMI != DefMI) { in removeCopyByCommutingDef()
729 LIS->ReplaceMachineInstrInMaps(*DefMI, *NewMI); in removeCopyByCommutingDef()
731 MBB->insert(Pos, NewMI); in removeCopyByCommutingDef()
957 MachineInstr &NewMI = *std::prev(MII); in reMaterializeTrivialDef() local
958 NewMI.setDebugLoc(DL); in reMaterializeTrivialDef()
967 MachineOperand &DefMO = NewMI.getOperand(0); in reMaterializeTrivialDef()
999 LIS->ReplaceMachineInstrInMaps(*CopyMI, NewMI); in reMaterializeTrivialDef()
1007 for (unsigned i = NewMI.getDesc().getNumOperands(), in reMaterializeTrivialDef()
[all …]
DMachinePipeliner.cpp391 void updateMemOperands(MachineInstr &NewMI, MachineInstr &OldMI,
398 void updateInstruction(MachineInstr *NewMI, bool LastDef,
2236 MachineInstr *NewMI = cloneInstr(CI->getInstr(), MaxStageCount, StageNum); in generatePipelinedLoop() local
2237 updateInstruction(NewMI, false, MaxStageCount, StageNum, Schedule, VRMap); in generatePipelinedLoop()
2238 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2239 InstrMap[NewMI] = CI->getInstr(); in generatePipelinedLoop()
2248 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
2249 updateInstruction(NewMI, false, MaxStageCount, 0, Schedule, VRMap); in generatePipelinedLoop()
2250 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2251 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DTargetInstrInfo.cpp168 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
219 if (NewMI) { in commuteInstructionImpl()
250 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
262 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
521 MachineInstr *NewMI = in foldPatchpoint() local
523 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
556 NewMI->tieOperands(TiedTo, NewMI->getNumOperands() - 1); in foldPatchpoint()
560 return NewMI; in foldPatchpoint()
601 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
607 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
[all …]
DModuloSchedule.cpp136 MachineInstr *NewMI = cloneInstr(CI, MaxStageCount, StageNum); in generatePipelinedLoop() local
137 updateInstruction(NewMI, false, MaxStageCount, StageNum, VRMap); in generatePipelinedLoop()
138 KernelBB->push_back(NewMI); in generatePipelinedLoop()
139 InstrMap[NewMI] = CI; in generatePipelinedLoop()
147 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
148 updateInstruction(NewMI, false, MaxStageCount, 0, VRMap); in generatePipelinedLoop()
149 KernelBB->push_back(NewMI); in generatePipelinedLoop()
150 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
219 MachineInstr *NewMI = in generateProlog() local
221 updateInstruction(NewMI, false, i, (unsigned)StageNum, VRMap); in generateProlog()
[all …]
DFixupStatepointCallerSaved.cpp472 MachineInstr *NewMI = in rewriteStatepoint() local
474 MachineInstrBuilder MIB(MF, NewMI); in rewriteStatepoint()
490 NewIndices.push_back(NewMI->getNumOperands()); in rewriteStatepoint()
526 NewMI->setMemRefs(MF, MI.memoperands()); in rewriteStatepoint()
537 NewMI->addMemOperand(MF, MMO); in rewriteStatepoint()
541 MI.getParent()->insert(MI, NewMI); in rewriteStatepoint()
543 LLVM_DEBUG(dbgs() << "rewritten statepoint to : " << *NewMI << "\n"); in rewriteStatepoint()
545 return NewMI; in rewriteStatepoint()
DMachineLoopUtils.cpp48 MachineInstr *NewMI = MF.CloneMachineInstr(&MI); in PeelSingleBlockLoop() local
49 NewBB->insert(InsertPt, NewMI); in PeelSingleBlockLoop()
50 for (MachineOperand &MO : NewMI->defs()) { in PeelSingleBlockLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTargetInstrInfo.cpp158 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument
209 if (NewMI) { in commuteInstructionImpl()
240 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument
252 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction()
501 MachineInstr *NewMI = in foldPatchpoint() local
503 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint()
529 return NewMI; in foldPatchpoint()
570 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local
576 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand()
577 if (NewMI) in foldMemoryOperand()
[all …]
DModuloSchedule.cpp137 MachineInstr *NewMI = cloneInstr(CI, MaxStageCount, StageNum); in generatePipelinedLoop() local
138 updateInstruction(NewMI, false, MaxStageCount, StageNum, VRMap); in generatePipelinedLoop()
139 KernelBB->push_back(NewMI); in generatePipelinedLoop()
140 InstrMap[NewMI] = CI; in generatePipelinedLoop()
148 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local
149 updateInstruction(NewMI, false, MaxStageCount, 0, VRMap); in generatePipelinedLoop()
150 KernelBB->push_back(NewMI); in generatePipelinedLoop()
151 InstrMap[NewMI] = &*I; in generatePipelinedLoop()
220 MachineInstr *NewMI = in generateProlog() local
222 updateInstruction(NewMI, false, i, (unsigned)StageNum, VRMap); in generateProlog()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVInstPrinter.cpp70 const MCInst *NewMI = MI; in printInst() local
75 NewMI = const_cast<MCInst *>(&UncompressedMI); in printInst()
76 if (NoAliases || !printAliasInstr(NewMI, STI, O)) in printInst()
77 printInstruction(NewMI, Address, STI, O); in printInst()
/external/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp516 MachineInstrBuilder NewMI = in optimizeSelect() local
523 NewMI.addOperand(DefMI->getOperand(i)); in optimizeSelect()
527 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect()
529 NewMI.addImm(CondCode); in optimizeSelect()
530 NewMI.copyImplicitOps(MI); in optimizeSelect()
536 NewMI.addOperand(FalseReg); in optimizeSelect()
537 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect()
540 SeenMIs.insert(NewMI); in optimizeSelect()
548 NewMI->clearKillInfo(); in optimizeSelect()
552 return NewMI; in optimizeSelect()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp513 MachineInstrBuilder NewMI = in optimizeSelect() local
520 NewMI.add(DefMI->getOperand(i)); in optimizeSelect()
524 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect()
526 NewMI.addImm(CondCode); in optimizeSelect()
527 NewMI.copyImplicitOps(MI); in optimizeSelect()
533 NewMI.add(FalseReg); in optimizeSelect()
534 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect()
537 SeenMIs.insert(NewMI); in optimizeSelect()
545 NewMI->clearKillInfo(); in optimizeSelect()
549 return NewMI; in optimizeSelect()
/external/llvm-project/llvm/lib/Target/Lanai/
DLanaiInstrInfo.cpp513 MachineInstrBuilder NewMI = in optimizeSelect() local
520 NewMI.add(DefMI->getOperand(i)); in optimizeSelect()
524 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect()
526 NewMI.addImm(CondCode); in optimizeSelect()
527 NewMI.copyImplicitOps(MI); in optimizeSelect()
533 NewMI.add(FalseReg); in optimizeSelect()
534 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect()
537 SeenMIs.insert(NewMI); in optimizeSelect()
545 NewMI->clearKillInfo(); in optimizeSelect()
549 return NewMI; in optimizeSelect()
/external/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
DRISCVInstPrinter.cpp70 const MCInst *NewMI = MI; in printInst() local
75 NewMI = const_cast<MCInst *>(&UncompressedMI); in printInst()
76 if (NoAliases || !printAliasInstr(NewMI, Address, STI, O)) in printInst()
77 printInstruction(NewMI, Address, STI, O); in printInst()
/external/llvm/lib/Target/Hexagon/
DHexagonNewValueJump.cpp633 MachineInstr *NewMI; in runOnMachineFunction() local
644 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
655 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
661 NewMI = BuildMI(*MBB, jmpPos, dl, in runOnMachineFunction()
667 assert(NewMI && "New Value Jump Instruction Not created!"); in runOnMachineFunction()
668 (void)NewMI; in runOnMachineFunction()

1234567