Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDemandedBits.cpp87 const Instruction *UserI, const Value *Val, unsigned OperandNo, in determineLiveOperandBits() argument
104 const DataLayout &DL = UserI->getModule()->getDataLayout(); in determineLiveOperandBits()
106 computeKnownBits(V1, Known, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits()
110 computeKnownBits(V2, Known2, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits()
114 switch (UserI->getOpcode()) { in determineLiveOperandBits()
118 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(UserI)) in determineLiveOperandBits()
186 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits()
192 const ShlOperator *S = cast<ShlOperator>(UserI); in determineLiveOperandBits()
203 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits()
209 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits()
[all …]
DValueTracking.cpp4598 const Instruction *UserI = cast<Instruction>(User); in programUndefinedIfFullPoison() local
4599 if (propagatesFullPoison(UserI)) in programUndefinedIfFullPoison()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
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()
DSpeculateAroundPHIs.cpp254 auto *UserI = cast<Instruction>(U.getUser()); in isSafeAndProfitableToSpeculateAroundPHI() local
272 if (UserI->isBinaryOp() && UserI->isCommutative() && Idx != 1) in isSafeAndProfitableToSpeculateAroundPHI()
278 if (auto *UserII = dyn_cast<IntrinsicInst>(UserI)) in isSafeAndProfitableToSpeculateAroundPHI()
290 TTI.getIntImmCostInst(UserI->getOpcode(), Idx, in isSafeAndProfitableToSpeculateAroundPHI()
DSimpleLoopUnswitch.cpp151 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in replaceLoopInvariantUses() local
154 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses()
2242 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in unswitchNontrivialInvariants() local
2243 if (!UserI) in unswitchNontrivialInvariants()
2248 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants()
2251 DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
DLoopInterchange.cpp1269 Instruction *UserI = cast<Instruction>(U.getUser()); in transform() local
1270 if (!InnerLoop->contains(UserI->getParent()) || in transform()
1271 UserI->getParent() == NewLatch || UserI == InductionPHI) in transform()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp913 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local
918 if (UserI->hasOneUse()) { in isFoldableLoad()
919 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad()
920 if (isa<TruncInst>(UserI)) in isFoldableLoad()
922 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
924 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
928 FoldedValue = UserI; in isFoldableLoad()
929 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
932 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
933 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp998 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local
1001 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI()
1008 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI()
1009 PHIUsers.push_back(PHIUsageRecord(PHIId, 0, UserI)); in SliceUpIllegalIntegerPHI()
1014 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI()
1015 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
1016 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI()
1020 unsigned SizeInBits = UserI->getType()->getScalarSizeInBits(); in SliceUpIllegalIntegerPHI()
1021 if (cast<ConstantInt>(UserI->getOperand(1))->getValue().uge(SizeInBits)) in SliceUpIllegalIntegerPHI()
1024 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DWinEHPrepare.cpp266 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
267 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
270 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
272 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
278 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
309 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
310 if (UserI->isEHPad()) in calculateCXXStateNumbers()
376 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local
377 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers()
380 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers()
[all …]
DCodeGenPrepare.cpp2636 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local
2637 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer()
4553 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local
4554 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses()
4559 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses()
4567 if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UserI)) { in FindAllMemoryUses()
4575 if (AtomicCmpXchgInst *CmpX = dyn_cast<AtomicCmpXchgInst>(UserI)) { in FindAllMemoryUses()
4583 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses()
4600 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TLI, TRI, OptSize, in FindAllMemoryUses()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp830 if (const Instruction *UserI = dyn_cast<Instruction>(U->getUser())) { in updateImpl() local
831 bool Found = Explorer.findInContextOf(UserI, EIt, EEnd); in updateImpl()
832 if (Found && Base::followUse(A, U, UserI)) in updateImpl()
833 for (const Use &Us : UserI->uses()) in updateImpl()
1638 Instruction *UserI = cast<Instruction>(U.getUser()); in updateImpl() local
1639 if (auto *CB = dyn_cast<CallBase>(UserI)) { in updateImpl()
1651 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl()
1652 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
2621 Instruction *UserI = cast<Instruction>(U.getUser()); in updateImpl() local
2622 if (CallSite CS = CallSite(UserI)) { in updateImpl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DDemandedBits.h66 void determineLiveOperandBits(const Instruction *UserI,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp469 if (auto *UserI = dyn_cast<Instruction>(U.getUser())) in CreateParallel() local
470 if (ParallelRegionBlockSet.count(UserI->getParent())) in CreateParallel()