Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenPredicate.cpp233 DefI->eraseFromParent(); in processPredicateGPR()
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()
273 MachineBasicBlock::iterator DefIt = DefI; in getPredRegFor()
329 if (!DefI) in isScalarPred()
[all …]
H A DHexagonExpandCondsets.cpp346 if (HII->isPredicated(*DefI)) in updateKillFlags()
423 Defs.insert(DefI->getParent()); in updateDeadsInRange()
424 if (HII->isPredicated(*DefI)) in updateDeadsInRange()
477 for (auto &Op : DefI->operands()) { in updateDeadsInRange()
494 if (!HII->isPredicated(*DefI)) in updateDeadsInRange()
501 MachineOperand &Op = DefI->getOperand(i); in updateDeadsInRange()
524 DefI->tieOperands(DefIdx, DefI->getNumOperands()-1); in updateDeadsInRange()
982 if (!DefI || !isPredicable(DefI)) in predicate()
1065 if (DefI->mayLoadOrStore()) { in predicate()
1066 if (!canMoveMemTo(*DefI, TfrI, true)) in predicate()
[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 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.cpp1506 const MachineInstr *DefI = Rs.isVReg() ? MRI->getVRegDef(Rs.Reg) : nullptr; in calculatePlacement() local
1510 assert(!DefI || MDT->dominates(DefI->getParent(), DomB)); in calculatePlacement()
H A DHexagonBitSimplify.cpp2323 MachineInstr *DefI = MRI.getVRegDef(Op0.getReg()); in genBitSplit() local
2324 assert(DefI != nullptr); in genBitSplit()
2325 if (!MDT.dominates(DefI, &*At)) in genBitSplit()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp316 const MachineInstr *DefI = Def->getParent(); in isSafeToMove() local
318 assert(DefI->getParent() == Insert->getParent()); in isSafeToMove()
332 if (Def != DefI->defs().begin()) in isSafeToMove()
354 const MachineBasicBlock *MBB = DefI->getParent(); in isSafeToMove()
363 if (WebAssembly::isCatch(DefI->getOpcode())) in isSafeToMove()
368 for (const MachineOperand &MO : DefI->operands()) { in isSafeToMove()
398 query(*DefI, Read, Write, Effects, StackPointer); in isSafeToMove()
854 if (!DefI) in runOnMachineFunction()
859 if (DefI->isInlineAsm()) in runOnMachineFunction()
876 bool SameBlock = DefI->getParent() == &MBB; in runOnMachineFunction()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h515 auto *DefI = dyn_cast<Instruction>(U.get()); in movementPreservesLCSSAForm() local
516 if (!DefI) in movementPreservesLCSSAForm()
522 auto *DefBlock = DefI->getParent(); in movementPreservesLCSSAForm()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp858 MachineInstr *DefI = Def->getInstr(); in adjustSchedDependency() local
861 if (DefI->isBundle()) { in adjustSchedDependency()
864 MachineBasicBlock::const_instr_iterator I(DefI->getIterator()); in adjustSchedDependency()
865 MachineBasicBlock::const_instr_iterator E(DefI->getParent()->instr_end()); in adjustSchedDependency()
879 unsigned Lat = InstrInfo.getInstrLatency(getInstrItineraryData(), *DefI); in adjustSchedDependency()
892 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1820 Instruction *DefI = Def->getMemoryInst(); in eliminateDeadWritesAtEndOfFunction() local
1821 auto DefLoc = getLocForWrite(DefI); in eliminateDeadWritesAtEndOfFunction()
1822 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()
1929 Instruction *DefI = Def->getMemoryInst(); in storeIsNoop() local
1930 StoreInst *Store = dyn_cast<StoreInst>(DefI); in storeIsNoop()
1931 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in storeIsNoop()
[all …]
H A DNewGVN.cpp4033 auto *DefI = dyn_cast<Instruction>(Def); in eliminateInstructions() local
4034 if (!EliminationStack.empty() && DefI && !FromStore) { in eliminateInstructions()
4039 if (!match(DefI, m_Intrinsic<Intrinsic::ssa_copy>())) in eliminateInstructions()
4040 patchReplacementInstruction(DefI, DominatingLeader); in eliminateInstructions()
4042 markInstructionForDeletion(DefI); in eliminateInstructions()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp2151 auto *DefI = dyn_cast<Instruction>(V); in fixupLCSSAFormFor() local
2152 if (!PreserveLCSSA || !DefI) in fixupLCSSAFormFor()
2156 Loop *DefLoop = SE.LI.getLoopFor(DefI->getParent()); in fixupLCSSAFormFor()
2169 if (DefI->getType()->isIntegerTy()) in fixupLCSSAFormFor()
2170 ToTy = PointerType::get(DefI->getContext(), 0); in fixupLCSSAFormFor()
2172 ToTy = Type::getInt32Ty(DefI->getContext()); in fixupLCSSAFormFor()
2174 CastInst::CreateBitOrPointerCast(DefI, ToTy, "tmp.lcssa.user", InsertPt); in fixupLCSSAFormFor()
2179 ToUpdate.push_back(DefI); in fixupLCSSAFormFor()
H A DSimplifyIndVar.cpp1181 auto *DefI = dyn_cast<Instruction>(Def); in getInsertPointForUses() local
1182 if (!DefI) in getInsertPointForUses()
1185 assert(DT->dominates(DefI, InsertPt) && "def does not dominate all uses"); in getInsertPointForUses()
1187 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
/freebsd-14.2/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1416 DefInit *DefI = cast<DefInit>(DI->getOperator()); in emitDag() local
1417 std::string Op = DefI->getAsString(); in emitDag()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DGlobalISelCombinerEmitter.cpp1667 if (auto *DefI = dyn_cast<DefInit>(OpInit)) { in parseInstructionPatternOperand() local
1673 const Record *Def = DefI->getDef(); in parseInstructionPatternOperand()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp2910 auto *DefI = getDefiningScopeBound(LIOps); in getAddExpr() local
2912 if (!isGuaranteedToTransferExecutionTo(DefI, ReachI)) in getAddExpr()
7271 if (auto *DefI = getNonTrivialDefiningScopeBound(S)) { in getDefiningScopeBound() local
7272 if (!Bound || DT.dominates(Bound, DefI)) in getDefiningScopeBound()
7273 Bound = DefI; in getDefiningScopeBound()
7330 auto *DefI = getDefiningScopeBound(SCEVOps); in isSCEVExprNeverPoison() local
7331 return isGuaranteedToTransferExecutionTo(DefI, I); in isSCEVExprNeverPoison()