Home
last modified time | relevance | path

Searched refs:UserI (Results 1 – 15 of 15) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp114 switch (UserI->getOpcode()) { in determineLiveOperandBits()
188 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
196 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
264 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
277 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
385 AOut = AliveBits[UserI]; in performAnalysis()
400 for (Use &OI : UserI->operands()) { in performAnalysis()
471 APInt AOut = getDemandedBits(UserI); in getDemandedBits()
496 if (isAlwaysLive(UserI)) in isUseDead()
505 if (UserI->getType()->isIntOrIntVectorTy()) { in isUseDead()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInstSimplify.cpp111 auto *UserI = cast<Instruction>(U.getUser()); in simplifyLoopInst() local
117 if (auto *UserPI = dyn_cast<PHINode>(UserI)) in simplifyLoopInst()
131 assert((L.contains(UserI) || isa<PHINode>(UserI)) && in simplifyLoopInst()
133 if (!IsFirstIteration && L.contains(UserI)) in simplifyLoopInst()
134 ToSimplify->insert(UserI); in simplifyLoopInst()
H A DSimpleLoopUnswitch.cpp169 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in replaceLoopInvariantUses() local
172 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses()
2376 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in unswitchNontrivialInvariants() local
2377 if (!UserI) in unswitchNontrivialInvariants()
2382 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants()
2385 DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
H A DLoopInterchange.cpp1390 Instruction *UserI = cast<Instruction>(U.getUser()); in transform() local
1391 if (!InnerLoop->contains(UserI->getParent()) || in transform()
1392 UserI->getParent() == NewLatch || UserI == InductionPHI) in transform()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp988 if (UserI->hasOneUse()) { in isFoldableLoad()
990 if (isa<TruncInst>(UserI)) in isFoldableLoad()
992 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
994 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
998 FoldedValue = UserI; in isFoldableLoad()
999 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1002 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1005 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1011 switch (UserI->getOpcode()) { in isFoldableLoad()
1047 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp280 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
284 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
292 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
328 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
329 if (UserI->isEHPad()) in calculateCXXStateNumbers()
398 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local
402 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers()
431 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local
432 if (UserI->isEHPad()) in calculateSEHStateNumbers()
921 Instruction *UserI = cast<Instruction>(U.getUser()); in cloneCommonBlocks() local
[all …]
H A DCodeGenPrepare.cpp2895 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local
2896 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer()
4883 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local
4884 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses()
4889 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses()
4897 if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UserI)) { in FindAllMemoryUses()
4905 if (AtomicCmpXchgInst *CmpX = dyn_cast<AtomicCmpXchgInst>(UserI)) { in FindAllMemoryUses()
4913 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses()
4932 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TLI, TRI, OptSize, in FindAllMemoryUses()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCanonicalizeFreezeInLoops.cpp108 auto *UserI = cast<Instruction>(U.getUser()); in InsertFreezeAndForgetFromSCEV() local
110 assert(L->contains(UserI->getParent()) && in InsertFreezeAndForgetFromSCEV()
112 if (isGuaranteedNotToBeUndefOrPoison(ValueToFr, nullptr, UserI, &DT)) in InsertFreezeAndForgetFromSCEV()
122 SE.forgetValue(UserI); in InsertFreezeAndForgetFromSCEV()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp1089 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local
1092 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI()
1099 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI()
1105 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI()
1106 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
1107 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI()
1140 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local
1141 unsigned PHIId = PHIUsers[UserI].PHIId; in SliceUpIllegalIntegerPHI()
1143 unsigned Offset = PHIUsers[UserI].Shift; in SliceUpIllegalIntegerPHI()
1144 Type *Ty = PHIUsers[UserI].Inst->getType(); in SliceUpIllegalIntegerPHI()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp2002 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl()
2003 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
2007 if (isa<StoreInst>(UserI) || isa<LoadInst>(UserI) || in updateImpl()
2008 isa<ReturnInst>(UserI)) in updateImpl()
3132 if (UserI == getCtxI() && UserI->getNumOperands() == 1) in isKnownNoAliasDueToNoAliasPreservation()
6164 if (isa<LoadInst>(UserI)) in updateImpl()
6220 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl()
6221 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
7270 if (UserI->isDroppable()) in updateImpl()
7294 if (isa<LoadInst>(UserI)) in followUsersOfUseIn()
[all …]
H A DAttributor.cpp872 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in isAssumedDead() local
873 if (!UserI) in isAssumedDead()
877 if (auto *CB = dyn_cast<CallBase>(UserI)) { in isAssumedDead()
887 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(UserI)) { in isAssumedDead()
891 } else if (PHINode *PHI = dyn_cast<PHINode>(UserI)) { in isAssumedDead()
897 return isAssumedDead(IRPosition::value(*UserI), QueryingAA, FnLivenessAA, in isAssumedDead()
1645 Instruction *UserI = cast<Instruction>(U->getUser()); in cleanupIR() local
1647 ToBeChangedToUnreachableInsts.insert(UserI); in cleanupIR()
1649 TerminatorsToFold.push_back(UserI); in cleanupIR()
H A DOpenMPOpt.cpp356 if (Instruction *UserI = dyn_cast<Instruction>(U.getUser())) { in collectUses() local
357 if (ModuleSlice.count(UserI->getFunction())) { in collectUses()
358 RFI.getOrCreateUseVector(UserI->getFunction()).push_back(&U); in collectUses()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDemandedBits.h83 void determineLiveOperandBits(const Instruction *UserI,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp433 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in replaceWithTileLoad() local
434 IRBuilder<> Builder(UserI); in replaceWithTileLoad()
440 UserI->replaceUsesOfWith(V, TileLoad); in replaceWithTileLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp757 if (auto *UserI = dyn_cast<Instruction>(U.getUser())) in createParallel() local
758 if (ParallelRegionBlockSet.count(UserI->getParent())) in createParallel()