/external/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 74 const Instruction *UserI, const Instruction *I, unsigned OperandNo, in determineLiveOperandBits() argument 91 &AC, UserI, &DT); in determineLiveOperandBits() 97 0, &AC, UserI, &DT); in determineLiveOperandBits() 101 switch (UserI->getOpcode()) { in determineLiveOperandBits() 105 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(UserI)) in determineLiveOperandBits() 146 dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() 152 const ShlOperator *S = cast<ShlOperator>(UserI); in determineLiveOperandBits() 162 dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() 168 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits() 175 dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 87 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 …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 87 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() 188 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 196 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits() 209 if (match(UserI->getOperand(1), m_APInt(ShiftAmtC))) { in determineLiveOperandBits() 215 const ShlOperator *S = cast<ShlOperator>(UserI); in determineLiveOperandBits() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 111 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()
|
D | SpeculateAroundPHIs.cpp | 254 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()
|
D | SimpleLoopUnswitch.cpp | 151 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()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 111 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()
|
D | SpeculateAroundPHIs.cpp | 255 auto *UserI = cast<Instruction>(U.getUser()); in isSafeAndProfitableToSpeculateAroundPHI() local 273 if (UserI->isBinaryOp() && UserI->isCommutative() && Idx != 1) in isSafeAndProfitableToSpeculateAroundPHI() 279 if (auto *UserII = dyn_cast<IntrinsicInst>(UserI)) in isSafeAndProfitableToSpeculateAroundPHI() 293 TTI.getIntImmCostInst(UserI->getOpcode(), Idx, in isSafeAndProfitableToSpeculateAroundPHI()
|
D | SimpleLoopUnswitch.cpp | 158 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in replaceLoopInvariantUses() local 161 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses() 2301 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in unswitchNontrivialInvariants() local 2302 if (!UserI) in unswitchNontrivialInvariants() 2307 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants() 2310 DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 959 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() local 964 if (UserI->hasOneUse()) { in isFoldableLoad() 965 unsigned UserBits = UserI->getType()->getScalarSizeInBits(); in isFoldableLoad() 966 if (isa<TruncInst>(UserI)) in isFoldableLoad() 968 else if (isa<SExtInst>(UserI)) in isFoldableLoad() 970 else if (isa<ZExtInst>(UserI)) in isFoldableLoad() 974 FoldedValue = UserI; in isFoldableLoad() 975 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad() 978 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad() 979 UserI->getOpcode() == Instruction::SDiv || in isFoldableLoad() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 913 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 …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 729 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local 732 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI() 739 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI() 740 PHIUsers.push_back(PHIUsageRecord(PHIId, 0, UserI)); in SliceUpIllegalIntegerPHI() 745 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI() 746 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI() 747 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI() 750 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() 751 PHIUsers.push_back(PHIUsageRecord(PHIId, Shift, UserI->user_back())); in SliceUpIllegalIntegerPHI() 776 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 998 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 …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 1083 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local 1086 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI() 1093 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI() 1094 PHIUsers.push_back(PHIUsageRecord(PHIId, 0, UserI)); in SliceUpIllegalIntegerPHI() 1099 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI() 1100 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI() 1101 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI() 1105 unsigned SizeInBits = UserI->getType()->getScalarSizeInBits(); in SliceUpIllegalIntegerPHI() 1106 if (cast<ConstantInt>(UserI->getOperand(1))->getValue().uge(SizeInBits)) in SliceUpIllegalIntegerPHI() 1109 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CanonicalizeFreezeInLoops.cpp | 108 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()
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 256 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 257 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers() 260 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 262 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers() 268 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 298 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 299 if (UserI->isEHPad()) in calculateCXXStateNumbers() 365 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local 366 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers() 369 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 280 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 281 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers() 284 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 286 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { 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 399 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers() 402 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 266 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | Attributor.cpp | 830 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 …]
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | AttributorAttributes.cpp | 588 if (const Instruction *UserI = dyn_cast<Instruction>(U->getUser())) { in followUsesInContext() local 589 bool Found = Explorer.findInContextOf(UserI, EIt, EEnd); in followUsesInContext() 590 if (Found && AA.followUseInMBEC(A, U, UserI, State)) in followUsesInContext() 591 for (const Use &Us : UserI->uses()) in followUsesInContext() 1497 Instruction *UserI = cast<Instruction>(U.getUser()); in updateImpl() local 1498 if (auto *CB = dyn_cast<CallBase>(UserI)) { in updateImpl() 1510 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl() 1511 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl() 1515 if (isa<ReturnInst>(UserI)) in updateImpl() 2588 Instruction *UserI = cast<Instruction>(U.getUser()); in isKnownNoAliasDueToNoAliasPreservation() local [all …]
|
D | Attributor.cpp | 583 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in isAssumedDead() local 584 if (!UserI) in isAssumedDead() 588 if (auto *CB = dyn_cast<CallBase>(UserI)) { in isAssumedDead() 597 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(UserI)) { in isAssumedDead() 601 } else if (PHINode *PHI = dyn_cast<PHINode>(UserI)) { in isAssumedDead() 607 return isAssumedDead(IRPosition::value(*UserI), QueryingAA, FnLivenessAA, in isAssumedDead() 1256 Instruction *UserI = cast<Instruction>(U->getUser()); in cleanupIR() local 1258 ToBeChangedToUnreachableInsts.insert(UserI); in cleanupIR() 1260 TerminatorsToFold.push_back(UserI); in cleanupIR()
|
/external/llvm-project/polly/lib/Support/ |
D | ScopHelper.cpp | 593 auto *UserI = dyn_cast<Instruction>(User); in isHoistableLoad() local 594 if (!UserI || !R.contains(UserI)) in isHoistableLoad() 596 if (!UserI->mayWriteToMemory()) in isHoistableLoad() 599 auto &BB = *UserI->getParent(); in isHoistableLoad()
|
/external/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 58 void determineLiveOperandBits(const Instruction *UserI,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 66 void determineLiveOperandBits(const Instruction *UserI,
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 80 void determineLiveOperandBits(const Instruction *UserI,
|