/external/llvm/lib/Target/ARM/ |
ARMHazardRecognizer.cpp | 19 static bool hasRAWHazard(MachineInstr *DefMI, MachineInstr *MI, 30 return MI->readsRegister(DefMI->getOperand(0).getReg(), &TRI); 45 MachineInstr *DefMI = LastMI; 59 DefMI = &*I; 63 if (TII.isFpMLxInstruction(DefMI->getOpcode()) && 65 hasRAWHazard(DefMI, MI, TII.getRegisterInfo()))) {
|
MLxExpansionPass.cpp | 95 MachineInstr *DefMI = MRI->getVRegDef(Reg); 97 if (DefMI->getParent() != MBB) 99 if (DefMI->isCopyLike()) { 100 Reg = DefMI->getOperand(1).getReg(); 102 DefMI = MRI->getVRegDef(Reg); 105 } else if (DefMI->isInsertSubreg()) { 106 Reg = DefMI->getOperand(2).getReg(); 108 DefMI = MRI->getVRegDef(Reg); 114 return DefMI; 149 MachineInstr *DefMI = MRI->getVRegDef(Reg) [all...] |
ARMBaseInstrInfo.cpp | [all...] |
/external/llvm/lib/Target/PowerPC/ |
PPCMIPeephole.cpp | 124 MachineInstr *DefMI = MRI->getVRegDef(TrueReg1); 128 if (DefMI && DefMI->getOpcode() == PPC::XXPERMDI) { 129 unsigned FeedImmed = DefMI->getOperand(3).getImm(); 131 = lookThruCopyLike(DefMI->getOperand(1).getReg()); 133 = lookThruCopyLike(DefMI->getOperand(2).getReg()); 154 MI.getOperand(1).setReg(DefMI->getOperand(1).getReg()); 155 MI.getOperand(2).setReg(DefMI->getOperand(2).getReg()); 167 .addOperand(DefMI->getOperand(1));
|
PPCVSXSwapRemoval.cpp | 614 MachineInstr* DefMI = MRI->getVRegDef(Reg); 615 assert(SwapMap.find(DefMI) != SwapMap.end() && 617 int DefIdx = SwapMap[DefMI]; 624 DEBUG(DefMI->dump()); 694 MachineInstr *DefMI = MRI->getVRegDef(UseReg); 695 int DefIdx = SwapMap[DefMI]; 705 DEBUG(DefMI->dump()); 750 MachineInstr *DefMI = MRI->getVRegDef(UseReg); 751 int DefIdx = SwapMap[DefMI]; 755 DEBUG(DefMI->dump()) [all...] |
/external/llvm/lib/CodeGen/ |
LiveRangeEdit.cpp | 52 const MachineInstr *DefMI, 54 assert(DefMI && "Missing instruction"); 56 if (!TII.isTriviallyReMaterializable(DefMI, aa)) 66 MachineInstr *DefMI = LIS.getInstructionFromIndex(VNI->def); 67 if (!DefMI) 69 checkRematerializable(VNI, DefMI, aa); 166 MachineInstr *DefMI = nullptr, *UseMI = nullptr; 172 if (DefMI && DefMI != MI) 176 DefMI = MI [all...] |
TargetSchedule.cpp | 155 const MachineInstr *DefMI, unsigned DefOperIdx, 159 return TII->defaultDefLatency(SchedModel, DefMI); 164 OperLatency = TII->getOperandLatency(&InstrItins, DefMI, DefOperIdx, 168 unsigned DefClass = DefMI->getDesc().getSchedClass(); 175 unsigned InstrLatency = TII->getInstrLatency(&InstrItins, DefMI); 183 TII->defaultDefLatency(SchedModel, DefMI)); 187 const MCSchedClassDesc *SCDesc = resolveSchedClass(DefMI); 188 unsigned DefIdx = findDefIdx(DefMI, DefOperIdx); 211 if (SCDesc->isValid() && !DefMI->getOperand(DefOperIdx).isImplicit() 212 && !DefMI->getDesc().OpInfo[DefOperIdx].isOptionalDef( [all...] |
MachineSink.cpp | 174 MachineInstr *DefMI = MRI->getVRegDef(SrcReg); 175 if (DefMI->isCopyLike()) 177 DEBUG(dbgs() << "Coalescing: " << *DefMI); 393 MachineInstr *DefMI = MRI->getVRegDef(Reg); 394 if (DefMI->getParent() == MI->getParent())
|
MachineCSE.cpp | 133 MachineInstr *DefMI = MRI->getVRegDef(Reg); 134 if (!DefMI->isCopy()) 136 unsigned SrcReg = DefMI->getOperand(1).getReg(); 139 if (DefMI->getOperand(0).getSubReg()) 153 if (DefMI->getOperand(1).getSubReg()) 158 DEBUG(dbgs() << "Coalescing: " << *DefMI); 165 DefMI->eraseFromParent();
|
EarlyIfConversion.cpp | 245 MachineInstr *DefMI = MRI->getVRegDef(Reg); 246 if (!DefMI || DefMI->getParent() != Head) 248 if (InsertAfter.insert(DefMI).second) 249 DEBUG(dbgs() << "BB#" << MBB->getNumber() << " depends on " << *DefMI); 250 if (DefMI->isTerminator()) {
|
TailDuplication.cpp | 251 MachineInstr *DefMI = MRI->getVRegDef(VReg); 253 if (DefMI) { 254 DefBB = DefMI->getParent(); [all...] |
InlineSpiller.cpp | 113 MachineInstr *DefMI; 124 SpillReg(Reg), SpillVNI(VNI), SpillMBB(nullptr), DefMI(nullptr) {} 127 bool hasDef() const { return DefByOrigPHI || DefMI; } 335 if (SVI.DefMI) 336 OS << " def: " << *SVI.DefMI; 399 DepSV.DefMI = SV.DefMI; 500 return SVI->second.DefMI; 621 SVI->second.DefMI = MI; 642 return SVI->second.DefMI; [all...] |
PeepholeOptimizer.cpp | [all...] |
TwoAddressInstructionPass.cpp | 318 for (MachineInstr &DefMI : MRI->def_instructions(Reg)) { 319 if (DefMI.getParent() != BB || DefMI.isDebugValue()) 322 Ret = &DefMI; 323 else if (Ret != &DefMI) 447 MachineInstr *DefMI = &MI; 453 if (!isPlainlyKilled(DefMI, Reg, LIS)) 462 DefMI = Begin->getParent(); 467 if (!isCopyToReg(*DefMI, TII, SrcReg, DstReg, IsSrcPhys, IsDstPhys)) [all...] |
RegisterCoalescer.cpp | 654 MachineInstr *DefMI = LIS->getInstructionFromIndex(AValNo->def); 655 if (!DefMI) 657 if (!DefMI->isCommutable()) 659 // If DefMI is a two-address instruction then commuting it will change the 661 int DefIdx = DefMI->findRegisterDefOperandIdx(IntA.reg); 664 if (!DefMI->isRegTiedToUseOperand(DefIdx, &UseOpIdx)) 677 if (!TII->findCommutedOpIndices(DefMI, UseOpIdx, NewDstIdx)) 680 MachineOperand &NewDstMO = DefMI->getOperand(NewDstIdx); 705 << *DefMI); 709 MachineBasicBlock *MBB = DefMI->getParent() [all...] |
MachineScheduler.cpp | [all...] |
/external/llvm/lib/Target/X86/ |
X86OptimizeLEAs.cpp | 132 for (auto DefMI : List) { 136 if (!isSimilarMemOp(MI, MemOpNo, *DefMI, 1, AddrDispShiftTemp)) 149 MRI->getRegClass(DefMI->getOperand(0).getReg())) 156 int DistTemp = calcInstrDist(*DefMI, MI); 166 LEA = DefMI; 258 MachineInstr *DefMI; 261 if (!chooseBestLEA(List, MI, DefMI, AddrDispShift, Dist)) 271 DefMI->removeFromParent(); 272 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); 276 MRI->clearKillFlags(DefMI->getOperand(0).getReg()) [all...] |
X86InstrInfo.cpp | [all...] |
/external/llvm/lib/Target/Mips/ |
MipsOptimizePICCall.cpp | 261 MachineInstr *DefMI = MRI.getVRegDef(Reg); 263 assert(DefMI); 265 // See if DefMI is an instruction that loads from a GOT entry that holds the 267 if (!DefMI->mayLoad() || DefMI->getNumOperands() < 3) 270 unsigned Flags = DefMI->getOperand(2).getTargetFlags(); 276 assert(DefMI->hasOneMemOperand()); 277 Val = (*DefMI->memoperands_begin())->getValue(); 279 Val = (*DefMI->memoperands_begin())->getPseudoValue();
|
/external/llvm/lib/Target/AArch64/ |
AArch64InstrInfo.cpp | 285 const MachineInstr *DefMI = MRI.getVRegDef(VReg); 286 if (!DefMI->isFullCopy()) 288 VReg = DefMI->getOperand(1).getReg(); 303 const MachineInstr *DefMI = MRI.getVRegDef(VReg); 306 switch (DefMI->getOpcode()) { 310 if (DefMI->findRegisterDefOperandIdx(AArch64::NZCV, true) == -1) 316 if (!DefMI->getOperand(2).isImm() || DefMI->getOperand(2).getImm() != 1 || 317 DefMI->getOperand(3).getImm() != 0) 326 unsigned ZReg = removeCopies(MRI, DefMI->getOperand(1).getReg()) [all...] |