| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 133 switch (UseInst->getOpcode()) { in foldIVUser() 167 if (UseInst->isExact() && in foldIVUser() 172 if (!SE->isSCEVable(UseInst->getType())) in foldIVUser() 176 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser() 182 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser() 186 UseInst->dropPoisonGeneratingFlags(); in foldIVUser() 701 if (isa<PHINode>(UseInst)) in eliminateIdentitySCEV() 712 UseInst->replaceAllUsesWith(IVOperand); in eliminateIdentitySCEV() 715 DeadInsts.emplace_back(UseInst); in eliminateIdentitySCEV() 860 DeadInsts.emplace_back(UseInst); in simplifyUsers() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DeadStoreElimination.cpp | 1139 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite() 1142 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite() 1147 if (auto CC = getLocForWriteEx(UseInst)) in isCompleteOverwrite() 1191 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction() 1258 if (isNoopIntrinsic(UseInst)) in isReadClobber() 1263 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber() 1266 if (!UseInst->mayReadFromMemory()) in isReadClobber() 1269 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber() 1530 return DT.dominates(KI, UseInst); in getDomMemoryDef() 1558 if (isReadClobber(*CurrentLoc, UseInst)) { in getDomMemoryDef() [all …]
|
| H A D | Sink.cpp | 136 Instruction *UseInst = cast<Instruction>(U.getUser()); in SinkInstruction() local 137 BasicBlock *UseBlock = UseInst->getParent(); in SinkInstruction() 141 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in SinkInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 93 Instruction *UseInst, 619 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local 620 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes() 623 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes() 630 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes() 637 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes() 647 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() 655 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes() 657 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes() 681 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes() [all …]
|
| H A D | GCNNSAReassign.cpp | 209 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local 210 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
|
| H A D | SIPeepholeSDWA.cpp | 424 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert() 425 if (&UseInst != ParentMI) in potentialToConvert()
|
| H A D | SIInstrInfo.cpp | 7766 auto &UseInst = *Use.getParent(); in execMayBeModifiedBeforeAnyUse() local 7769 if (UseInst.getParent() != DefBB) in execMayBeModifiedBeforeAnyUse()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCPreEmitPeephole.cpp | 252 MachineBasicBlock::iterator UseInst; in addLinkerOpt() member 297 Pair.UseInst = BBI; in addLinkerOpt() 308 assert(Pair->UseInst.isValid() && Pair->StillValid && in addLinkerOpt() 315 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt() 337 Pair->UseInst->addOperand(ImplUse); in addLinkerOpt() 345 Pair->UseInst->addOperand(*MF, PCRelLabel); in addLinkerOpt()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MIRCanonicalizerPass.cpp | 220 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local 223 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically() 226 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically() 233 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
|
| H A D | MachineSink.cpp | 329 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 330 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock() 331 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 332 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock() 341 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local 342 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock() 343 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock() 344 if (UseInst->isPHI()) { in AllUsesDominatedByBlock() 347 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock() 758 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo() [all …]
|
| H A D | RegAllocFast.cpp | 377 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local 378 if (UseInst.getParent() != MBB || ++C >= Limit) { in mayLiveOut() 387 if (SelfLoopDef == &UseInst || in mayLiveOut() 388 !dominates(*MBB, SelfLoopDef->getIterator(), UseInst.getIterator())) { in mayLiveOut()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegStackify.cpp | 445 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local 446 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses() 451 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses() 458 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses() 464 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses() 466 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses() 481 UseInst = NewUseInst; in oneUseDominatesOtherUses()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemorySSA.cpp | 271 const Instruction *UseInst, AliasAnalysisType &AA) { in instructionClobbersQuery() argument 300 if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) { in instructionClobbersQuery() 307 if (auto *UseLoad = dyn_cast_or_null<LoadInst>(UseInst)) in instructionClobbersQuery()
|
| H A D | ScalarEvolution.cpp | 8428 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument 8437 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 1542 auto *UseInst = dyn_cast<Instruction>(U.getUser()); in removeUnusedBlocksFromParent() local 1543 if (!UseInst) in removeUnusedBlocksFromParent() 1545 if (BBsToErase.count(UseInst->getParent())) in removeUnusedBlocksFromParent()
|