/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 86 const Instruction *UserI, const Instruction *I, unsigned OperandNo, in determineLiveOperandBits() argument 100 computeKnownBits(V1, Known, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits() 104 computeKnownBits(V2, Known2, DL, 0, &AC, UserI, &DT); in determineLiveOperandBits() 108 switch (UserI->getOpcode()) { in determineLiveOperandBits() 112 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(UserI)) in determineLiveOperandBits() 157 if (auto *ShiftAmtC = dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() 163 const ShlOperator *S = cast<ShlOperator>(UserI); in determineLiveOperandBits() 172 if (auto *ShiftAmtC = dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() 178 if (cast<LShrOperator>(UserI)->isExact()) in determineLiveOperandBits() 184 if (auto *ShiftAmtC = dyn_cast<ConstantInt>(UserI->getOperand(1))) { in determineLiveOperandBits() [all …]
|
D | ValueTracking.cpp | 4220 const Instruction *UserI = cast<Instruction>(User); in programUndefinedIfFullPoison() local 4221 if (propagatesFullPoison(UserI)) in programUndefinedIfFullPoison()
|
/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 …]
|
D | ValueTracking.cpp | 3670 const Instruction *UserI = cast<Instruction>(User); in isKnownNotFullPoison() local 3671 if (propagatesFullPoison(UserI)) in isKnownNotFullPoison()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 106 auto *UserI = cast<Instruction>(U.getUser()); in simplifyLoopInst() local 112 if (auto *UserPI = dyn_cast<PHINode>(UserI)) in simplifyLoopInst() 126 assert((L.contains(UserI) || isa<PHINode>(UserI)) && in simplifyLoopInst() 128 if (!IsFirstIteration && L.contains(UserI)) in simplifyLoopInst() 129 ToSimplify->insert(UserI); in simplifyLoopInst()
|
D | SpeculateAroundPHIs.cpp | 247 auto *UserI = cast<Instruction>(U.getUser()); in isSafeAndProfitableToSpeculateAroundPHI() local 265 if (UserI->isBinaryOp() && UserI->isCommutative() && Idx != 1) in isSafeAndProfitableToSpeculateAroundPHI() 271 if (auto *UserII = dyn_cast<IntrinsicInst>(UserI)) in isSafeAndProfitableToSpeculateAroundPHI() 283 TTI.getIntImmCost(UserI->getOpcode(), Idx, IncomingC->getValue(), in isSafeAndProfitableToSpeculateAroundPHI()
|
D | SimpleLoopUnswitch.cpp | 127 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in replaceLoopInvariantUses() local 130 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses() 2052 Instruction *UserI = dyn_cast<Instruction>(U->getUser()); in unswitchNontrivialInvariants() local 2053 if (!UserI) in unswitchNontrivialInvariants() 2058 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants() 2060 else if (DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
|
/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 …]
|
D | InstCombineSimplifyDemanded.cpp | 72 auto *UserI = dyn_cast<Instruction>(U.getUser()); in SimplifyDemandedBits() local 74 KnownOne, Depth, UserI); in SimplifyDemandedBits()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 985 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local 988 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI() 995 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI() 996 PHIUsers.push_back(PHIUsageRecord(PHIId, 0, UserI)); in SliceUpIllegalIntegerPHI() 1001 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI() 1002 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI() 1003 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI() 1006 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() 1007 PHIUsers.push_back(PHIUsageRecord(PHIId, Shift, UserI->user_back())); in SliceUpIllegalIntegerPHI() 1031 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 265 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 266 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers() 269 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 271 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers() 277 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers() 308 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local 309 if (UserI->isEHPad()) in calculateCXXStateNumbers() 375 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local 376 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers() 379 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers() [all …]
|
D | CodeGenPrepare.cpp | 2350 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local 2351 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer() 4138 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local 4139 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses() 4144 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses() 4152 if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UserI)) { in FindAllMemoryUses() 4160 if (AtomicCmpXchgInst *CmpX = dyn_cast<AtomicCmpXchgInst>(UserI)) { in FindAllMemoryUses() 4168 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses() 4183 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TLI, TRI, in FindAllMemoryUses()
|
/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 …]
|
D | CodeGenPrepare.cpp | 2414 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local 2415 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer() 3506 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local 3508 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses() 3513 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses() 3520 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses() 3535 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TM)) in FindAllMemoryUses()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 704 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local 705 unsigned PHIId = PHIUsers[UserI].PHIId; in SliceUpIllegalIntegerPHI() 707 unsigned Offset = PHIUsers[UserI].Shift; in SliceUpIllegalIntegerPHI() 708 Type *Ty = PHIUsers[UserI].Inst->getType(); in SliceUpIllegalIntegerPHI() 781 ReplaceInstUsesWith(*PHIUsers[UserI].Inst, EltPHI); in SliceUpIllegalIntegerPHI()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 826 const Instruction *UserI = cast<Instruction>(*I->user_begin()); in getMemoryOpCost() local 829 switch (UserI->getOpcode()) { in getMemoryOpCost() 851 assert (UserI->getNumOperands() == 2 && in getMemoryOpCost() 857 if (UserI->getOperand(i) == I) in getMemoryOpCost() 859 if (LoadInst *LI = dyn_cast<LoadInst>(UserI->getOperand(i))) { in getMemoryOpCost()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 56 void determineLiveOperandBits(const Instruction *UserI,
|
/external/llvm/include/llvm/Analysis/ |
D | DemandedBits.h | 58 void determineLiveOperandBits(const Instruction *UserI,
|