Home
last modified time | relevance | path

Searched refs:DefI (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenPredicate.cpp232 MachineInstr *DefI = MRI->getVRegDef(Reg.R); in processPredicateGPR() local
233 DefI->eraseFromParent(); in processPredicateGPR()
254 MachineInstr *DefI = MRI->getVRegDef(Reg.R); in getPredRegFor() local
255 assert(DefI); in getPredRegFor()
256 unsigned Opc = DefI->getOpcode(); in getPredRegFor()
258 assert(DefI->getOperand(0).isDef() && DefI->getOperand(1).isUse()); in getPredRegFor()
259 RegisterSubReg PR = DefI->getOperand(1); in getPredRegFor()
265 MachineBasicBlock &B = *DefI->getParent(); in getPredRegFor()
266 DebugLoc DL = DefI->getDebugLoc(); in getPredRegFor()
272 if (isConvertibleToPredForm(DefI)) { in getPredRegFor()
[all …]
H A DHexagonExpandCondsets.cpp345 MachineInstr *DefI = LIS->getInstructionFromIndex(NextI->start); in updateKillFlags() local
346 if (HII->isPredicated(*DefI)) in updateKillFlags()
422 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local
423 Defs.insert(DefI->getParent()); in updateDeadsInRange()
424 if (HII->isPredicated(*DefI)) in updateDeadsInRange()
476 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local
477 for (auto &Op : DefI->operands()) { in updateDeadsInRange()
493 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local
494 if (!HII->isPredicated(*DefI)) in updateDeadsInRange()
500 for (unsigned i = 0, e = DefI->getNumOperands(); i != e; ++i) { in updateDeadsInRange()
[all …]
H A DHexagonVExtract.cpp149 MachineInstr *DefI = MRI.getVRegDef(VecR); in runOnMachineFunction() local
150 MachineBasicBlock::iterator At = std::next(DefI->getIterator()); in runOnMachineFunction()
151 MachineBasicBlock &DefB = *DefI->getParent(); in runOnMachineFunction()
155 Register AddrR = EmitAddr(DefB, At, DefI->getDebugLoc(), FI, 0); in runOnMachineFunction()
156 BuildMI(DefB, At, DefI->getDebugLoc(), HII->get(StoreOpc)) in runOnMachineFunction()
H A DHexagonSplitDouble.cpp235 MachineInstr *DefI = MRI->getVRegDef(R); in partitionRegisters() local
239 if (!DefI || isFixedInstr(DefI)) in partitionRegisters()
403 const MachineInstr *DefI = MRI->getVRegDef(Reg); in profit() local
404 switch (DefI->getOpcode()) { in profit()
412 return profit(DefI); in profit()
425 MachineInstr *DefI = MRI->getVRegDef(DR); in isProfitable() local
426 int32_t P = profit(DefI); in isProfitable()
1134 MachineInstr *DefI = MRI->getVRegDef(DR); in splitPartition() local
1135 SplitIns.insert(DefI); in splitPartition()
H A DHexagonGenInsert.cpp1007 const MachineInstr *DefI = MRI->getVRegDef(R); in findRemovableRegisters() local
1008 assert(DefI); in findRemovableRegisters()
1012 if (DefI->isPHI()) in findRemovableRegisters()
1014 getInstrUses(DefI, Regs[OtherS]); in findRemovableRegisters()
1143 const MachineInstr *DefI = MRI->getVRegDef(IR); in pruneUsesTooFar() local
1146 unsigned DIV = distance(DefI, DefV, RPO, M); in pruneUsesTooFar()
1329 const MachineInstr *DefI = MRI->getVRegDef(I->first); in selectCandidates() local
1330 getInstrUses(DefI, Us); in selectCandidates()
1427 MachineInstr *DefI = MRI->getVRegDef(I.first); in generateInserts() local
1429 DefI->eraseFromParent(); in generateInserts()
H A DHexagonTfrCleanup.cpp268 auto DefI = BuildMI(B, MI, DL, HII->get(TargetOpcode::IMPLICIT_DEF), DefR); in eraseIfRedundant() local
271 DefI->addOperand(Op); in eraseIfRedundant()
H A DHexagonEarlyIfConv.cpp408 const MachineInstr *DefI = MRI->getVRegDef(R); in usesUndefVReg() local
410 assert(DefI && "Expecting a reaching def in MRI"); in usesUndefVReg()
411 if (DefI->isImplicitDef()) in usesUndefVReg()
H A DHexagonConstExtenders.cpp1509 const MachineInstr *DefI = Rs.isVReg() ? MRI->getVRegDef(Rs.Reg) : nullptr; in calculatePlacement() local
1513 assert(!DefI || MDT->dominates(DefI->getParent(), DomB)); in calculatePlacement()
H A DHexagonBitSimplify.cpp2324 MachineInstr *DefI = MRI.getVRegDef(Op0.getReg()); in genBitSplit() local
2325 assert(DefI != nullptr); in genBitSplit()
2326 if (!MDT.dominates(DefI, &*At)) in genBitSplit()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp317 const MachineInstr *DefI = Def->getParent(); in isSafeToMove() local
319 assert(DefI->getParent() == Insert->getParent()); in isSafeToMove()
333 if (Def != DefI->defs().begin()) in isSafeToMove()
341 for (const auto &SubsequentDef : drop_begin(DefI->defs())) { in isSafeToMove()
342 auto I = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove()
355 const MachineBasicBlock *MBB = DefI->getParent(); in isSafeToMove()
356 auto NextI = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove()
364 if (WebAssembly::isCatch(DefI->getOpcode())) in isSafeToMove()
369 for (const MachineOperand &MO : DefI->operands()) { in isSafeToMove()
399 query(*DefI, Read, Write, Effects, StackPointer); in isSafeToMove()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRCanonicalizerPass.cpp229 MachineBasicBlock::iterator DefI = BBE; in rescheduleCanonically() local
234 if (DefI != BBE && UseI != BBE) in rescheduleCanonically()
238 DefI = BBI; in rescheduleCanonically()
248 if (DefI == BBE || UseI == BBE) in rescheduleCanonically()
253 DefI->dump(); in rescheduleCanonically()
260 MBB->splice(UseI, MBB, DefI); in rescheduleCanonically()
H A DMachineLateInstrsCleanup.cpp228 for (auto DefI : llvm::make_early_inc_range(MBBDefs)) { in processBlock() local
229 Register Reg = DefI.first; in processBlock()
H A DMachineTraceMetrics.cpp657 MachineRegisterInfo::def_iterator DefI = MRI->def_begin(VirtReg); in DataDep() local
658 assert(!DefI.atEnd() && "Register has no defs"); in DataDep()
659 DefMI = DefI->getParent(); in DataDep()
660 DefOp = DefI.getOperandNo(); in DataDep()
661 assert((++DefI).atEnd() && "Register has multiple defs"); in DataDep()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h520 auto *DefI = dyn_cast<Instruction>(U.get()); in movementPreservesLCSSAForm() local
521 if (!DefI) in movementPreservesLCSSAForm()
527 auto *DefBlock = DefI->getParent(); in movementPreservesLCSSAForm()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp216 Instruction *DefI = nullptr; member
220 : DefI(Inst), Generation(Generation) {} in LoadValue()
259 if (!LV.DefI) in getMatchingValue()
261 if (LV.DefI->getType() != LI->getType()) in getMatchingValue()
267 auto *EarlierMA = MSSA->getMemoryAccess(LV.DefI); in getMatchingValue()
273 return LV.DefI; in getMatchingValue()
H A DScalarEvolutionExpander.cpp2249 auto *DefI = dyn_cast<Instruction>(V); in fixupLCSSAFormFor() local
2250 if (!PreserveLCSSA || !DefI) in fixupLCSSAFormFor()
2254 Loop *DefLoop = SE.LI.getLoopFor(DefI->getParent()); in fixupLCSSAFormFor()
2267 if (DefI->getType()->isIntegerTy()) in fixupLCSSAFormFor()
2268 ToTy = PointerType::get(DefI->getContext(), 0); in fixupLCSSAFormFor()
2270 ToTy = Type::getInt32Ty(DefI->getContext()); in fixupLCSSAFormFor()
2272 CastInst::CreateBitOrPointerCast(DefI, ToTy, "tmp.lcssa.user", InsertPt); in fixupLCSSAFormFor()
2277 ToUpdate.push_back(DefI); in fixupLCSSAFormFor()
H A DSimplifyIndVar.cpp1211 auto *DefI = dyn_cast<Instruction>(Def); in getInsertPointForUses() local
1212 if (!DefI) in getInsertPointForUses()
1215 assert(DT->dominates(DefI, InsertPt) && "def does not dominate all uses"); in getInsertPointForUses()
1217 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp874 MachineInstr *DefI = Def->getInstr(); in adjustSchedDependency() local
877 if (DefI->isBundle()) { in adjustSchedDependency()
880 MachineBasicBlock::const_instr_iterator I(DefI->getIterator()); in adjustSchedDependency()
881 MachineBasicBlock::const_instr_iterator E(DefI->getParent()->instr_end()); in adjustSchedDependency()
895 unsigned Lat = InstrInfo.getInstrLatency(getInstrItineraryData(), *DefI); in adjustSchedDependency()
908 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1817 Instruction *DefI = Def->getMemoryInst(); in eliminateDeadWritesAtEndOfFunction() local
1818 auto DefLoc = getLocForWrite(DefI); in eliminateDeadWritesAtEndOfFunction()
1819 if (!DefLoc || !isRemovable(DefI)) { in eliminateDeadWritesAtEndOfFunction()
1838 deleteDeadInstruction(DefI); in eliminateDeadWritesAtEndOfFunction()
1850 Instruction *DefI = Def->getMemoryInst(); in tryFoldIntoCalloc() local
1851 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in tryFoldIntoCalloc()
1859 if (!isRemovable(DefI)) in tryFoldIntoCalloc()
1980 Instruction *DefI = Def->getMemoryInst(); in storeIsNoop() local
1981 StoreInst *Store = dyn_cast<StoreInst>(DefI); in storeIsNoop()
1982 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in storeIsNoop()
[all …]
H A DNewGVN.cpp4038 auto *DefI = dyn_cast<Instruction>(Def); in eliminateInstructions() local
4039 if (!EliminationStack.empty() && DefI && !FromStore) { in eliminateInstructions()
4044 if (!match(DefI, m_Intrinsic<Intrinsic::ssa_copy>())) in eliminateInstructions()
4045 patchReplacementInstruction(DefI, DominatingLeader); in eliminateInstructions()
4047 markInstructionForDeletion(DefI); in eliminateInstructions()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DPatternParser.cpp244 if (auto *DefI = dyn_cast<DefInit>(OpInit)) { in parseInstructionPatternOperand() local
250 const Record *Def = DefI->getDef(); in parseInstructionPatternOperand()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1409 DefInit *DefI = cast<DefInit>(DI->getOperator()); in emitDag() local
1410 std::string Op = DefI->getAsString(); in emitDag()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DRecord.cpp2605 if (DefInit *DefI = dyn_cast<DefInit>(Val)) in getOperatorAsDef() local
2606 return DefI->getDef(); in getOperatorAsDef()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp2912 auto *DefI = getDefiningScopeBound(LIOps); in getAddExpr() local
2914 if (!isGuaranteedToTransferExecutionTo(DefI, ReachI)) in getAddExpr()
7287 if (auto *DefI = getNonTrivialDefiningScopeBound(S)) { in getDefiningScopeBound() local
7288 if (!Bound || DT.dominates(Bound, DefI)) in getDefiningScopeBound()
7289 Bound = DefI; in getDefiningScopeBound()
7346 auto *DefI = getDefiningScopeBound(SCEVOps); in isSCEVExprNeverPoison() local
7347 return isGuaranteedToTransferExecutionTo(DefI, I); in isSCEVExprNeverPoison()