/external/llvm/lib/CodeGen/GlobalISel/ |
D | MachineIRBuilder.cpp | 60 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 149 MachineInstr *NewMI = in INITIALIZE_PASS() local 159 MFI->insert(MBBI, NewMI); // Insert the new inst in INITIALIZE_PASS() 160 return NewMI; in INITIALIZE_PASS() 368 MachineInstr *NewMI = in fixupIncDec() local 373 I = static_cast<MachineBasicBlock::iterator>(NewMI); in fixupIncDec() 403 MachineInstr *NewMI = postRAConvertToLEA(MFI, MBI); in seekLEAFixup() local 404 if (NewMI) { in seekLEAFixup() 408 LLVM_DEBUG(dbgs() << "FixLEA: Replaced by: "; NewMI->dump();); in seekLEAFixup() 411 static_cast<MachineBasicBlock::iterator>(NewMI); in seekLEAFixup() 435 MachineInstr *NewMI = nullptr; in processInstructionForSLM() local [all …]
|
D | X86FixupBWInsts.cpp | 393 if (MachineInstr *NewMI = tryReplaceInstr(MI, MBB)) in processBasicBlock() local 394 MIReplacements.push_back(std::make_pair(MI, NewMI)); in processBasicBlock() 402 MachineInstr *NewMI = MIReplacements.back().second; in processBasicBlock() local 404 MBB.insert(MI, NewMI); in processBasicBlock()
|
D | X86InstrInfo.cpp | 694 MachineInstr &NewMI = *std::prev(I); in reMaterialize() local 695 NewMI.substituteRegister(Orig.getOperand(0).getReg(), DestReg, SubIdx, TRI); in reMaterialize() 876 MachineInstr *NewMI = MIB; in convertToThreeAddressWithLEA() local 884 LV->getVarInfo(leaInReg).Kills.push_back(NewMI); in convertToThreeAddressWithLEA() 919 MachineInstr *NewMI = nullptr; in convertToThreeAddress() local 940 NewMI = BuildMI(MF, MI.getDebugLoc(), get(X86::LEA64r)) in convertToThreeAddress() 974 NewMI = MIB; in convertToThreeAddress() 986 NewMI = BuildMI(MF, MI.getDebugLoc(), get(X86::LEA16r)) in convertToThreeAddress() 1015 NewMI = addOffset(MIB, 1); in convertToThreeAddress() 1023 NewMI = addOffset( in convertToThreeAddress() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 119 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 …]
|
D | X86FixupBWInsts.cpp | 279 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-7.0/llvm/lib/Target/AMDGPU/ |
D | R600ExpandSpecialInstrs.cpp | 44 void SetFlagInNewMI(MachineInstr *NewMI, const MachineInstr *OldMI, 74 void R600ExpandSpecialInstrsPass::SetFlagInNewMI(MachineInstr *NewMI, in SetFlagInNewMI() argument 79 TII->setImmOperand(*NewMI, Op, Val); in SetFlagInNewMI() 264 MachineInstr *NewMI = in runOnMachineFunction() local 268 NewMI->bundleWithPred(); in runOnMachineFunction() 270 TII->addFlag(*NewMI, 0, MO_FLAG_MASK); in runOnMachineFunction() 273 TII->addFlag(*NewMI, 0, MO_FLAG_NOT_LAST); in runOnMachineFunction() 275 SetFlagInNewMI(NewMI, &MI, R600::OpName::clamp); in runOnMachineFunction() 276 SetFlagInNewMI(NewMI, &MI, R600::OpName::literal); in runOnMachineFunction() 277 SetFlagInNewMI(NewMI, &MI, R600::OpName::src0_abs); in runOnMachineFunction() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | R600ExpandSpecialInstrs.cpp | 36 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 …]
|
D | R600OptimizeVectorRegisters.cpp | 214 MachineInstr *NewMI = in RebuildVector() local 216 DEBUG(dbgs() << " ->"; NewMI->dump();); in RebuildVector() 228 RSI->Instr = NewMI; in RebuildVector() 232 return NewMI; in RebuildVector()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonHazardRecognizer.cpp | 57 MachineInstr *NewMI = in getHazardType() local 60 if (Resources->canReserveResources(*NewMI)) in getHazardType() 64 MF->DeleteMachineInstr(NewMI); in getHazardType() 128 MachineInstr *NewMI = in EmitInstruction() local 131 assert(Resources->canReserveResources(*NewMI)); in EmitInstruction() 132 Resources->reserveResources(*NewMI); in EmitInstruction() 133 MF->DeleteMachineInstr(NewMI); in EmitInstruction()
|
D | HexagonNewValueJump.cpp | 682 MachineInstr *NewMI; in runOnMachineFunction() local 693 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction() 699 NewMI = BuildMI(*MBB, jmpPos, dl, QII->get(opc)) in runOnMachineFunction() 704 assert(NewMI && "New Value Jump Instruction Not created!"); in runOnMachineFunction() 705 (void)NewMI; in runOnMachineFunction()
|
/external/llvm/lib/CodeGen/ |
D | TargetInstrInfo.cpp | 127 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 …]
|
D | RegisterCoalescer.cpp | 720 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 …]
|
D | MachinePipeliner.cpp | 391 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 …]
|
D | TwoAddressInstructionPass.cpp | 649 MachineInstr *NewMI = TII->commuteInstruction(*MI, false, RegBIdx, RegCIdx); in commuteInstruction() local 651 if (NewMI == nullptr) { in commuteInstruction() 656 DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in commuteInstruction() 657 assert(NewMI == MI && in commuteInstruction() 697 MachineInstr *NewMI = TII->convertToThreeAddress(MFI, *mi, LV); in convertInstTo3Addr() local 700 if (!NewMI) in convertInstTo3Addr() 704 DEBUG(dbgs() << "2addr: TO 3-ADDR: " << *NewMI); in convertInstTo3Addr() 708 LIS->ReplaceMachineInstrInMaps(*mi, *NewMI); in convertInstTo3Addr() 710 if (NewMI->findRegisterUseOperand(RegB, false, TRI)) in convertInstTo3Addr() 714 Sunk = sink3AddrInstruction(NewMI, RegB, mi); in convertInstTo3Addr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetInstrInfo.cpp | 149 bool NewMI, unsigned Idx1, in commuteInstructionImpl() argument 200 if (NewMI) { in commuteInstructionImpl() 231 MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr &MI, bool NewMI, in commuteInstruction() argument 243 return commuteInstructionImpl(MI, NewMI, OpIdx1, OpIdx2); in commuteInstruction() 504 MachineInstr *NewMI = in foldPatchpoint() local 506 MachineInstrBuilder MIB(MF, NewMI); in foldPatchpoint() 532 return NewMI; in foldPatchpoint() 572 MachineInstr *NewMI = nullptr; in foldMemoryOperand() local 578 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand() 579 if (NewMI) in foldMemoryOperand() [all …]
|
D | MachinePipeliner.cpp | 429 void updateMemOperands(MachineInstr &NewMI, MachineInstr &OldMI, 436 void updateInstruction(MachineInstr *NewMI, bool LastDef, 2354 MachineInstr *NewMI = cloneInstr(CI->getInstr(), MaxStageCount, StageNum); in generatePipelinedLoop() local 2355 updateInstruction(NewMI, false, MaxStageCount, StageNum, Schedule, VRMap); in generatePipelinedLoop() 2356 KernelBB->push_back(NewMI); in generatePipelinedLoop() 2357 InstrMap[NewMI] = CI->getInstr(); in generatePipelinedLoop() 2366 MachineInstr *NewMI = MF.CloneMachineInstr(&*I); in generatePipelinedLoop() local 2367 updateInstruction(NewMI, false, MaxStageCount, 0, Schedule, VRMap); in generatePipelinedLoop() 2368 KernelBB->push_back(NewMI); in generatePipelinedLoop() 2369 InstrMap[NewMI] = &*I; in generatePipelinedLoop() [all …]
|
D | RegisterCoalescer.cpp | 770 MachineInstr *NewMI = in removeCopyByCommutingDef() local 772 if (!NewMI) in removeCopyByCommutingDef() 778 if (NewMI != DefMI) { in removeCopyByCommutingDef() 779 LIS->ReplaceMachineInstrInMaps(*DefMI, *NewMI); in removeCopyByCommutingDef() 781 MBB->insert(Pos, NewMI); in removeCopyByCommutingDef() 1173 MachineInstr &NewMI = *std::prev(MII); in reMaterializeTrivialDef() local 1174 NewMI.setDebugLoc(DL); in reMaterializeTrivialDef() 1183 MachineOperand &DefMO = NewMI.getOperand(0); in reMaterializeTrivialDef() 1216 LIS->ReplaceMachineInstrInMaps(*CopyMI, NewMI); in reMaterializeTrivialDef() 1224 for (unsigned i = NewMI.getDesc().getNumOperands(), in reMaterializeTrivialDef() [all …]
|
D | TwoAddressInstructionPass.cpp | 689 MachineInstr *NewMI = TII->commuteInstruction(*MI, false, RegBIdx, RegCIdx); in commuteInstruction() local 691 if (NewMI == nullptr) { in commuteInstruction() 696 LLVM_DEBUG(dbgs() << "2addr: COMMUTED TO: " << *NewMI); in commuteInstruction() 697 assert(NewMI == MI && in commuteInstruction() 737 MachineInstr *NewMI = TII->convertToThreeAddress(MFI, *mi, LV); in convertInstTo3Addr() local 740 if (!NewMI) in convertInstTo3Addr() 744 LLVM_DEBUG(dbgs() << "2addr: TO 3-ADDR: " << *NewMI); in convertInstTo3Addr() 748 LIS->ReplaceMachineInstrInMaps(*mi, *NewMI); in convertInstTo3Addr() 750 if (NewMI->findRegisterUseOperand(RegB, false, TRI)) in convertInstTo3Addr() 754 Sunk = sink3AddrInstruction(NewMI, RegB, mi); in convertInstTo3Addr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/InstPrinter/ |
D | RISCVInstPrinter.cpp | 47 const MCInst *NewMI = MI; in printInst() local 52 NewMI = const_cast<MCInst*>(&UncompressedMI); in printInst() 53 if (NoAliases || !printAliasInstr(NewMI, STI, O)) in printInst() 54 printInstruction(NewMI, STI, O); in printInst()
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiInstrInfo.cpp | 516 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-7.0/llvm/lib/Target/Lanai/ |
D | LanaiInstrInfo.cpp | 514 MachineInstrBuilder NewMI = in optimizeSelect() local 521 NewMI.add(DefMI->getOperand(i)); in optimizeSelect() 525 NewMI.addImm(getOppositeCondition(LPCC::CondCode(CondCode))); in optimizeSelect() 527 NewMI.addImm(CondCode); in optimizeSelect() 528 NewMI.copyImplicitOps(MI); in optimizeSelect() 534 NewMI.add(FalseReg); in optimizeSelect() 535 NewMI->tieOperands(0, NewMI->getNumOperands() - 1); in optimizeSelect() 538 SeenMIs.insert(NewMI); in optimizeSelect() 546 NewMI->clearKillInfo(); in optimizeSelect() 550 return NewMI; in optimizeSelect()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonNewValueJump.cpp | 633 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | A15SDOptimizer.cpp | 377 MachineInstr *NewMI = MRI->getVRegDef(Reg); in elideCopiesAndPHIs() local 378 if (!NewMI) in elideCopiesAndPHIs() 380 Front.push_back(NewMI); in elideCopiesAndPHIs() 385 MachineInstr *NewMI = MRI->getVRegDef(MI->getOperand(1).getReg()); in elideCopiesAndPHIs() local 386 if (!NewMI) in elideCopiesAndPHIs() 388 Front.push_back(NewMI); in elideCopiesAndPHIs()
|
/external/llvm/lib/Target/ARM/ |
D | A15SDOptimizer.cpp | 383 MachineInstr *NewMI = MRI->getVRegDef(Reg); in elideCopiesAndPHIs() local 384 if (!NewMI) in elideCopiesAndPHIs() 386 Front.push_back(NewMI); in elideCopiesAndPHIs() 391 MachineInstr *NewMI = MRI->getVRegDef(MI->getOperand(1).getReg()); in elideCopiesAndPHIs() local 392 if (!NewMI) in elideCopiesAndPHIs() 394 Front.push_back(NewMI); in elideCopiesAndPHIs()
|