| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 131 switch (UseInst->getOpcode()) { in foldIVUser() 175 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser() 181 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser() 672 for (User *U : UseInst->users()) { in replaceFloatIVWithIntegerIV() 740 if (isa<PHINode>(UseInst)) in eliminateIdentitySCEV() 761 SE->forgetValue(UseInst); in eliminateIdentitySCEV() 765 DeadInsts.emplace_back(UseInst); in eliminateIdentitySCEV() 913 DeadInsts.emplace_back(UseInst); in simplifyUsers() 918 if (UseInst == CurrIV) continue; in simplifyUsers() 927 if ((isa<PtrToIntInst>(UseInst)) || (isa<TruncInst>(UseInst))) in simplifyUsers() [all …]
|
| H A D | Local.cpp | 1331 if (Instruction *UseInst = dyn_cast<Instruction>(U.getUser())) in TryToSimplifyUncondBranchFromEmptyBlock() local 1332 return UseInst->getParent() != CommonPred && in TryToSimplifyUncondBranchFromEmptyBlock() 1333 BBPreds.contains(UseInst->getParent()); in TryToSimplifyUncondBranchFromEmptyBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DeadStoreElimination.cpp | 1143 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite() 1146 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite() 1151 if (auto CC = getLocForWrite(UseInst)) in isCompleteOverwrite() 1198 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction() 1265 if (isNoopIntrinsic(UseInst)) in isReadClobber() 1270 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber() 1273 if (!UseInst->mayReadFromMemory()) in isReadClobber() 1276 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber() 1543 return DT.dominates(KI, UseInst); in getDomMemoryDef() 1571 if (isReadClobber(MaybeDeadLoc, UseInst)) { in getDomMemoryDef() [all …]
|
| H A D | Sink.cpp | 131 Instruction *UseInst = cast<Instruction>(U.getUser()); in SinkInstruction() local 132 BasicBlock *UseBlock = UseInst->getParent(); in SinkInstruction() 133 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in SinkInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineSink.cpp | 436 MachineInstr &UseInst = *MO.getParent(); in PerformSinkAndFold() local 437 if (UseInst.isCopy()) { in PerformSinkAndFold() 455 } else if (UseInst.mayLoadOrStore()) { in PerformSinkAndFold() 464 if (UseInst.getParent() != MI.getParent()) { in PerformSinkAndFold() 495 SinkInto.emplace_back(&UseInst, MaybeAM); in PerformSinkAndFold() 614 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 617 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock() 626 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 627 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 629 if (UseInst->isPHI()) { in AllUsesDominatedByBlock() [all …]
|
| H A D | MIRCanonicalizerPass.cpp | 210 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local 213 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically() 216 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically() 223 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
|
| H A D | RegAllocFast.cpp | 498 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local 499 if (UseInst.getParent() != MBB || ++C >= Limit) { in mayLiveOut() 508 if (SelfLoopDef == &UseInst || in mayLiveOut() 509 !dominates(PosIndexes, *SelfLoopDef, UseInst)) { in mayLiveOut()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCPreEmitPeephole.cpp | 258 MachineBasicBlock::iterator UseInst; in addLinkerOpt() member 303 Pair.UseInst = BBI; in addLinkerOpt() 314 assert(Pair->UseInst.isValid() && Pair->StillValid && in addLinkerOpt() 321 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt() 343 Pair->UseInst->addOperand(ImplUse); in addLinkerOpt() 351 Pair->UseInst->addOperand(*MF, PCRelLabel); in addLinkerOpt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 95 Instruction *UseInst, int OpIdx0, 1080 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local 1081 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes() 1084 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes() 1091 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes() 1098 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes() 1108 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() 1116 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes() 1118 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes() 1142 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes() [all …]
|
| H A D | GCNNSAReassign.cpp | 220 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local 221 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
|
| H A D | SIPeepholeSDWA.cpp | 425 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert() 426 if (&UseInst != ParentMI) in potentialToConvert()
|
| H A D | SIInstrInfo.cpp | 9292 auto &UseInst = *Use.getParent(); in execMayBeModifiedBeforeAnyUse() local 9295 if (UseInst.getParent() != DefBB || UseInst.isPHI()) in execMayBeModifiedBeforeAnyUse()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegStackify.cpp | 449 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local 450 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses() 455 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses() 462 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses() 468 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses() 470 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses() 484 UseInst = NewUseInst; in oneUseDominatesOtherUses()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FastPreTileConfig.cpp | 143 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local 144 if (UseInst.getParent() != MBB) { in mayLiveOut() 153 if (dominates(*MBB, *CfgMI, UseInst)) { in mayLiveOut()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemorySSA.cpp | 282 const Instruction *UseInst, AliasAnalysisType &AA) { in instructionClobbersQuery() argument 310 if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) { in instructionClobbersQuery() 316 if (auto *UseLoad = dyn_cast_or_null<LoadInst>(UseInst)) in instructionClobbersQuery()
|
| H A D | ScalarEvolution.cpp | 9441 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument 9450 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 3148 auto *UseInst = dyn_cast<Instruction>(U.getUser()); in removeUnusedBlocksFromParent() local 3149 if (!UseInst) in removeUnusedBlocksFromParent() 3151 if (BBsToErase.count(UseInst->getParent())) in removeUnusedBlocksFromParent()
|