| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 82 switch (UserI->getOpcode()) { in determineLiveOperandBits() 156 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 164 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 232 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 245 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 342 AOut = AliveBits[UserI]; in performAnalysis() 357 for (Use &OI : UserI->operands()) { in performAnalysis() 427 APInt AOut = getDemandedBits(UserI); in getDemandedBits() 451 if (isAlwaysLive(UserI)) in isUseDead() 460 if (UserI->getType()->isIntOrIntVectorTy()) { in isUseDead() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopInstSimplify.cpp | 103 auto *UserI = cast<Instruction>(U.getUser()); in simplifyLoopInst() local 107 if (!DT.isReachableFromEntry(UserI->getParent())) in simplifyLoopInst() 113 if (auto *UserPI = dyn_cast<PHINode>(UserI)) in simplifyLoopInst() 127 assert((L.contains(UserI) || isa<PHINode>(UserI)) && in simplifyLoopInst() 129 if (!IsFirstIteration && L.contains(UserI)) in simplifyLoopInst() 130 ToSimplify->insert(UserI); in simplifyLoopInst()
|
| H A D | ConstraintElimination.cpp | 81 Instruction *UserI = cast<Instruction>(U.getUser()); in getContextInstForUse() local 82 if (auto *Phi = dyn_cast<PHINode>(UserI)) in getContextInstForUse() 83 UserI = Phi->getIncomingBlock(U)->getTerminator(); in getContextInstForUse() 84 return UserI; in getContextInstForUse() 1030 auto *UserI = getContextInstForUse(U); in addInfoFor() local 1031 auto *DTN = DT.getNode(UserI->getParent()); in addInfoFor() 1372 auto *UserI = getContextInstForUse(U); in checkAndReplaceCondition() local 1373 auto *DTN = DT.getNode(UserI->getParent()); in checkAndReplaceCondition() 1376 if (UserI->getParent() == ContextInst->getParent() && in checkAndReplaceCondition() 1377 UserI->comesBefore(ContextInst)) in checkAndReplaceCondition()
|
| H A D | LoopInterchange.cpp | 1327 Instruction *UserI = cast<Instruction>(U.getUser()); in transform() local 1328 if (!InnerLoop->contains(UserI->getParent()) || in transform() 1329 UserI->getParent() == NewLatch || in transform() 1330 llvm::is_contained(InductionPHIs, UserI)) in transform()
|
| H A D | SimpleLoopUnswitch.cpp | 240 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in replaceLoopInvariantUses() local 243 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses() 2538 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in unswitchNontrivialInvariants() local 2539 if (!UserI) in unswitchNontrivialInvariants() 2544 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants() 2547 DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
|
| H A D | RewriteStatepointsForGC.cpp | 2493 Instruction *UserI = cast<Instruction>(*Cand->user_begin()); in rematerializeLiveValuesAtUses() local 2495 Record.ChainToBase, UserI, Record.RootOfChain, PointerToBase[Cand]); in rematerializeLiveValuesAtUses() 2496 UserI->replaceUsesOfWith(Cand, RematChain); in rematerializeLiveValuesAtUses()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 1078 if (UserI->hasOneUse()) { in isFoldableLoad() 1080 if (isa<TruncInst>(UserI)) in isFoldableLoad() 1082 else if (isa<SExtInst>(UserI)) in isFoldableLoad() 1084 else if (isa<ZExtInst>(UserI)) in isFoldableLoad() 1088 FoldedValue = UserI; in isFoldableLoad() 1089 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad() 1092 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad() 1095 UserI->getOperand(1) != FoldedValue) in isFoldableLoad() 1101 switch (UserI->getOpcode()) { in isFoldableLoad() 1137 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 1143 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local 1146 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI() 1153 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI() 1159 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI() 1160 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI() 1161 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI() 1194 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local 1195 unsigned PHIId = PHIUsers[UserI].PHIId; in SliceUpIllegalIntegerPHI() 1197 unsigned Offset = PHIUsers[UserI].Shift; in SliceUpIllegalIntegerPHI() 1198 Type *Ty = PHIUsers[UserI].Inst->getType(); in SliceUpIllegalIntegerPHI() [all …]
|
| H A D | InstructionCombining.cpp | 4221 auto *UserI = cast<Instruction>(AllocaUsers.pop_back_val()); in SoleWriteToDeadLocal() local 4222 if (isa<BitCastInst>(UserI) || isa<GetElementPtrInst>(UserI) || in SoleWriteToDeadLocal() 4223 isa<AddrSpaceCastInst>(UserI)) { in SoleWriteToDeadLocal() 4224 pushUsers(*UserI); in SoleWriteToDeadLocal() 4227 if (UserI == CB) in SoleWriteToDeadLocal()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CanonicalizeFreezeInLoops.cpp | 135 auto *UserI = cast<Instruction>(U.getUser()); in InsertFreezeAndForgetFromSCEV() local 137 assert(L->contains(UserI->getParent()) && in InsertFreezeAndForgetFromSCEV() 139 if (isGuaranteedNotToBeUndefOrPoison(ValueToFr, nullptr, UserI, &DT)) in InsertFreezeAndForgetFromSCEV() 149 SE.forgetValue(UserI); in InsertFreezeAndForgetFromSCEV()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 415 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 419 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 427 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 463 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 464 if (UserI->isEHPad()) in calculateCXXStateNumbers() 534 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local 538 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers() 567 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local 568 if (UserI->isEHPad()) in calculateSEHStateNumbers() 1063 Instruction *UserI = cast<Instruction>(U.getUser()); in cloneCommonBlocks() local [all …]
|
| H A D | CodeGenPrepare.cpp | 3148 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local 3149 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer() 5124 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local 5125 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses() 5130 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses() 5137 if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UserI)) { in FindAllMemoryUses() 5144 if (AtomicCmpXchgInst *CmpX = dyn_cast<AtomicCmpXchgInst>(UserI)) { in FindAllMemoryUses() 5151 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses() 5171 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TLI, TRI, OptSize, in FindAllMemoryUses() 5287 Instruction *UserI = cast<Instruction>(Pair.first->getUser()); in isProfitableToFoldIntoAddressingMode() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 2328 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl() 2329 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl() 2333 if (isa<StoreInst>(UserI) || isa<LoadInst>(UserI) || in updateImpl() 3902 if (UserI == getCtxI() && UserI->getNumOperands() == 1) in isKnownNoAliasDueToNoAliasPreservation() 5554 if (!UserI || isa<GetElementPtrInst>(UserI) || isa<CastInst>(UserI) || in updateImpl() 5555 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl() 5559 if (isa<LoadInst>(UserI) || isa<CmpInst>(UserI) || in updateImpl() 7034 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl() 7035 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl() 8143 if (UserI->isDroppable()) in updateImpl() [all …]
|
| H A D | Attributor.cpp | 1560 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in isAssumedDead() local 1561 if (!UserI) in isAssumedDead() 1565 if (auto *CB = dyn_cast<CallBase>(UserI)) { in isAssumedDead() 1575 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(UserI)) { in isAssumedDead() 1579 } else if (PHINode *PHI = dyn_cast<PHINode>(UserI)) { in isAssumedDead() 1583 } else if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in isAssumedDead() 1598 return isAssumedDead(IRPosition::inst(*UserI), QueryingAA, FnLivenessAA, in isAssumedDead() 2478 Instruction *UserI = cast<Instruction>(U->getUser()); in cleanupIR() local 2480 ToBeChangedToUnreachableInsts.insert(UserI); in cleanupIR() 2482 TerminatorsToFold.push_back(UserI); in cleanupIR()
|
| H A D | OpenMPOpt.cpp | 514 if (Instruction *UserI = dyn_cast<Instruction>(U.getUser())) { in collectUses() local 515 if (!CGSCC || CGSCC->empty() || CGSCC->contains(UserI->getFunction())) { in collectUses() 516 RFI.getOrCreateUseVector(UserI->getFunction()).push_back(&U); in collectUses()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | DemandedBits.h | 81 void determineLiveOperandBits(const Instruction *UserI,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXType.cpp | 497 Instruction *UserI = cast<Instruction>(U.getUser()); in replaceWithTileLoad() local 498 IRBuilder<> Builder(UserI); in replaceWithTileLoad() 504 UserI->replaceUsesOfWith(V, TileLoad); in replaceWithTileLoad()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 1127 void freeze(IRBuilder<> &Builder, Instruction &UserI) { in freeze() argument 1130 assert(is_contained(ToFreeze->users(), &UserI) && in freeze() 1133 Builder.SetInsertPoint(cast<Instruction>(&UserI)); in freeze() 1136 for (Use &U : make_early_inc_range((UserI.operands()))) in freeze()
|
| H A D | SLPVectorizer.cpp | 11856 auto *UserI = in vectorizeTree() local 11866 if (isa<PHINode>(UserI)) { in vectorizeTree() 11870 if (U == UserI) in vectorizeTree() 11882 Builder.SetCurrentDebugLocation(UserI->getDebugLoc()); in vectorizeTree()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 1508 if (auto *UserI = dyn_cast<Instruction>(U.getUser())) in createParallel() local 1509 if (ParallelRegionBlockSet.count(UserI->getParent())) in createParallel()
|