| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonGenPredicate.cpp | 209 MachineInstr *DefI = MRI->getVRegDef(Reg.Reg); in processPredicateGPR() local 210 DefI->eraseFromParent(); in processPredicateGPR() 231 MachineInstr *DefI = MRI->getVRegDef(Reg.Reg); in getPredRegFor() local 232 assert(DefI); in getPredRegFor() 233 unsigned Opc = DefI->getOpcode(); in getPredRegFor() 235 assert(DefI->getOperand(0).isDef() && DefI->getOperand(1).isUse()); in getPredRegFor() 236 RegSubRegPair PR = getRegSubRegPair(DefI->getOperand(1)); in getPredRegFor() 242 MachineBasicBlock &B = *DefI->getParent(); in getPredRegFor() 243 DebugLoc DL = DefI->getDebugLoc(); in getPredRegFor() 249 if (isConvertibleToPredForm(DefI)) { in getPredRegFor() [all …]
|
| H A D | HexagonExpandCondsets.cpp | 329 MachineInstr *DefI = LIS->getInstructionFromIndex(NextI->start); in updateKillFlags() local 330 if (HII->isPredicated(*DefI)) in updateKillFlags() 405 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local 406 Defs.insert(DefI->getParent()); in updateDeadsInRange() 407 if (HII->isPredicated(*DefI)) in updateDeadsInRange() 459 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local 460 for (auto &Op : DefI->operands()) { in updateDeadsInRange() 476 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() local 477 if (!HII->isPredicated(*DefI)) in updateDeadsInRange() 483 for (unsigned i = 0, e = DefI->getNumOperands(); i != e; ++i) { in updateDeadsInRange() [all …]
|
| H A D | HexagonVExtract.cpp | 144 MachineInstr *DefI = MRI.getVRegDef(VecR); in runOnMachineFunction() local 145 MachineBasicBlock::iterator At = std::next(DefI->getIterator()); in runOnMachineFunction() 146 MachineBasicBlock &DefB = *DefI->getParent(); in runOnMachineFunction() 150 Register AddrR = EmitAddr(DefB, At, DefI->getDebugLoc(), FI, 0); in runOnMachineFunction() 151 BuildMI(DefB, At, DefI->getDebugLoc(), HII->get(StoreOpc)) in runOnMachineFunction()
|
| H A D | HexagonSplitDouble.cpp | 229 MachineInstr *DefI = MRI->getVRegDef(R); in partitionRegisters() local 233 if (!DefI || isFixedInstr(DefI)) in partitionRegisters() 397 const MachineInstr *DefI = MRI->getVRegDef(Reg); in profit() local 398 switch (DefI->getOpcode()) { in profit() 406 return profit(DefI); in profit() 419 MachineInstr *DefI = MRI->getVRegDef(DR); in isProfitable() local 420 int32_t P = profit(DefI); in isProfitable() 1128 MachineInstr *DefI = MRI->getVRegDef(DR); in splitPartition() local 1129 SplitIns.insert(DefI); in splitPartition()
|
| H A D | HexagonGenInsert.cpp | 1003 const MachineInstr *DefI = MRI->getVRegDef(R); in findRemovableRegisters() local 1004 assert(DefI); in findRemovableRegisters() 1008 if (DefI->isPHI()) in findRemovableRegisters() 1010 getInstrUses(DefI, Regs[OtherS]); in findRemovableRegisters() 1139 const MachineInstr *DefI = MRI->getVRegDef(IR); in pruneUsesTooFar() local 1142 unsigned DIV = distance(DefI, DefV, RPO, M); in pruneUsesTooFar() 1325 const MachineInstr *DefI = MRI->getVRegDef(I->first); in selectCandidates() local 1326 getInstrUses(DefI, Us); in selectCandidates() 1423 MachineInstr *DefI = MRI->getVRegDef(I.first); in generateInserts() local 1425 DefI->eraseFromParent(); in generateInserts()
|
| H A D | HexagonTfrCleanup.cpp | 249 auto DefI = BuildMI(B, MI, DL, HII->get(TargetOpcode::IMPLICIT_DEF), DefR); in eraseIfRedundant() local 252 DefI->addOperand(Op); in eraseIfRedundant()
|
| H A D | HexagonEarlyIfConv.cpp | 401 const MachineInstr *DefI = MRI->getVRegDef(R); in usesUndefVReg() local 403 assert(DefI && "Expecting a reaching def in MRI"); in usesUndefVReg() 404 if (DefI->isImplicitDef()) in usesUndefVReg()
|
| H A D | HexagonConstExtenders.cpp | 1490 const MachineInstr *DefI = Rs.isVReg() ? MRI->getVRegDef(Rs.Reg) : nullptr; in calculatePlacement() local 1494 assert(!DefI || MDT->dominates(DefI->getParent(), DomB)); in calculatePlacement()
|
| H A D | HexagonBitSimplify.cpp | 2302 MachineInstr *DefI = MRI.getVRegDef(Op0.getReg()); in genBitSplit() local 2303 assert(DefI != nullptr); in genBitSplit() 2304 if (!MDT.dominates(DefI, &*At)) in genBitSplit()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegStackify.cpp | 337 const MachineInstr *DefI = Def->getParent(); in isSafeToMove() local 339 assert(DefI->getParent() == Insert->getParent()); in isSafeToMove() 353 if (Def != DefI->defs().begin()) in isSafeToMove() 361 for (const auto &SubsequentDef : drop_begin(DefI->defs())) { in isSafeToMove() 362 auto I = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove() 375 const MachineBasicBlock *MBB = DefI->getParent(); in isSafeToMove() 376 auto NextI = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove() 390 if (WebAssembly::isCatch(DefI->getOpcode())) in isSafeToMove() 395 for (const MachineOperand &MO : DefI->operands()) { in isSafeToMove() 425 query(*DefI, Read, Write, Effects, StackPointer); in isSafeToMove() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MIRCanonicalizerPass.cpp | 230 MachineBasicBlock::iterator DefI = BBE; in rescheduleCanonically() local 235 if (DefI != BBE && UseI != BBE) in rescheduleCanonically() 239 DefI = BBI; in rescheduleCanonically() 249 if (DefI == BBE || UseI == BBE) in rescheduleCanonically() 254 DefI->dump(); in rescheduleCanonically() 261 MBB->splice(UseI, MBB, DefI); in rescheduleCanonically()
|
| H A D | MachineLateInstrsCleanup.cpp | 249 for (auto DefI : llvm::make_early_inc_range(MBBDefs)) { in processBlock() local 250 Register Reg = DefI.first; in processBlock()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNSubtarget.cpp | 547 MachineInstr *DefI = Def->getInstr(); in adjustSchedDependency() local 550 if (DefI->isBundle()) { in adjustSchedDependency() 553 MachineBasicBlock::const_instr_iterator I(DefI->getIterator()); in adjustSchedDependency() 554 MachineBasicBlock::const_instr_iterator E(DefI->getParent()->instr_end()); in adjustSchedDependency() 568 unsigned Lat = InstrInfo.getInstrLatency(getInstrItineraryData(), *DefI); in adjustSchedDependency() 581 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | LoopInfo.h | 517 auto *DefI = dyn_cast<Instruction>(U.get()); in movementPreservesLCSSAForm() local 518 if (!DefI) in movementPreservesLCSSAForm() 524 auto *DefBlock = DefI->getParent(); in movementPreservesLCSSAForm()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnroll.cpp | 212 Instruction *DefI = nullptr; member 216 : DefI(Inst), Generation(Generation) {} in LoadValue() 255 if (!LV.DefI) in getMatchingValue() 257 if (LV.DefI->getType() != LI->getType()) in getMatchingValue() 263 auto *EarlierMA = MSSA->getMemoryAccess(LV.DefI); in getMatchingValue() 269 return LV.DefI; in getMatchingValue()
|
| H A D | ScalarEvolutionExpander.cpp | 2256 auto *DefI = dyn_cast<Instruction>(V); in fixupLCSSAFormFor() local 2257 if (!PreserveLCSSA || !DefI) in fixupLCSSAFormFor() 2261 Loop *DefLoop = SE.LI.getLoopFor(DefI->getParent()); in fixupLCSSAFormFor() 2274 if (DefI->getType()->isIntegerTy()) in fixupLCSSAFormFor() 2275 ToTy = PointerType::get(DefI->getContext(), 0); in fixupLCSSAFormFor() 2277 ToTy = Type::getInt32Ty(DefI->getContext()); in fixupLCSSAFormFor() 2279 CastInst::CreateBitOrPointerCast(DefI, ToTy, "tmp.lcssa.user", InsertPt); in fixupLCSSAFormFor() 2284 ToUpdate.push_back(DefI); in fixupLCSSAFormFor()
|
| H A D | SimplifyIndVar.cpp | 1211 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/Transforms/Scalar/ |
| H A D | DeadStoreElimination.cpp | 1975 Instruction *DefI = Def->getMemoryInst(); in eliminateDeadWritesAtEndOfFunction() local 1976 auto DefLoc = getLocForWrite(DefI); in eliminateDeadWritesAtEndOfFunction() 1977 if (!DefLoc || !isRemovable(DefI)) { in eliminateDeadWritesAtEndOfFunction() 1996 deleteDeadInstruction(DefI); in eliminateDeadWritesAtEndOfFunction() 2008 Instruction *DefI = Def->getMemoryInst(); in tryFoldIntoCalloc() local 2009 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in tryFoldIntoCalloc() 2017 if (!isRemovable(DefI)) in tryFoldIntoCalloc() 2165 Instruction *DefI = Def->getMemoryInst(); in storeIsNoop() local 2166 StoreInst *Store = dyn_cast<StoreInst>(DefI); in storeIsNoop() 2167 MemSetInst *MemSet = dyn_cast<MemSetInst>(DefI); in storeIsNoop() [all …]
|
| H A D | NewGVN.cpp | 4070 auto *DefI = dyn_cast<Instruction>(Def); in eliminateInstructions() local 4071 if (!EliminationStack.empty() && DefI && !FromStore) { in eliminateInstructions() 4076 if (!match(DefI, m_Intrinsic<Intrinsic::ssa_copy>())) in eliminateInstructions() 4077 patchReplacementInstruction(DefI, DominatingLeader); in eliminateInstructions() 4079 markInstructionForDeletion(DefI); in eliminateInstructions()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | PatternParser.cpp | 233 if (auto *DefI = dyn_cast<DefInit>(OpInit)) { in parseInstructionPatternOperand() local 239 const Record *Def = DefI->getDef(); in parseInstructionPatternOperand()
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | NeonEmitter.cpp | 1477 const DefInit *DefI = cast<DefInit>(DI->getOperator()); in emitDag() local 1478 std::string Op = DefI->getAsString(); in emitDag()
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Record.cpp | 2748 if (const auto *DefI = dyn_cast<DefInit>(Val)) in getOperatorAsDef() local 2749 return DefI->getDef(); in getOperatorAsDef()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2900 auto *DefI = getDefiningScopeBound(LIOps); in getAddExpr() local 2902 if (!isGuaranteedToTransferExecutionTo(DefI, ReachI)) in getAddExpr() 7292 if (auto *DefI = getNonTrivialDefiningScopeBound(S)) { in getDefiningScopeBound() local 7293 if (!Bound || DT.dominates(Bound, DefI)) in getDefiningScopeBound() 7294 Bound = DefI; in getDefiningScopeBound() 7366 auto *DefI = getDefiningScopeBound(SCEVOps); in isSCEVExprNeverPoison() local 7367 return isGuaranteedToTransferExecutionTo(DefI, I); in isSCEVExprNeverPoison()
|