/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 15 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument 17 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad() 38 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) != in canCoerceMustAliasedValueToLoad() 43 if (auto *CI = dyn_cast<Constant>(StoredVal)) in canCoerceMustAliasedValueToLoad() 52 static T *coerceAvailableValueToLoadTypeHelper(T *StoredVal, Type *LoadedTy, in coerceAvailableValueToLoadTypeHelper() argument 55 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadTypeHelper() 57 if (auto *C = dyn_cast<Constant>(StoredVal)) in coerceAvailableValueToLoadTypeHelper() 59 StoredVal = FoldedStoredVal; in coerceAvailableValueToLoadTypeHelper() 62 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper() 71 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper() [all …]
|
D | GlobalStatus.cpp | 111 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux() local 113 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 120 if (GV->hasInitializer() && StoredVal == GV->getInitializer()) { in analyzeGlobalAux() 123 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux() 124 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux() 129 GS.StoredOnceValue = StoredVal; in analyzeGlobalAux() 131 GS.StoredOnceValue == StoredVal) { in analyzeGlobalAux()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 17 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument 19 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad() 47 if (auto *CI = dyn_cast<Constant>(StoredVal)) in canCoerceMustAliasedValueToLoad() 67 static T *coerceAvailableValueToLoadTypeHelper(T *StoredVal, Type *LoadedTy, in coerceAvailableValueToLoadTypeHelper() argument 70 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadTypeHelper() 72 if (auto *C = dyn_cast<Constant>(StoredVal)) in coerceAvailableValueToLoadTypeHelper() 73 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadTypeHelper() 76 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper() 85 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper() 90 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadTypeHelper() [all …]
|
D | GlobalStatus.cpp | 110 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux() local 112 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 119 if (GV->hasInitializer() && StoredVal == GV->getInitializer()) { in analyzeGlobalAux() 122 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux() 123 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux() 128 GS.StoredOnceValue = StoredVal; in analyzeGlobalAux() 130 GS.StoredOnceValue == StoredVal) { in analyzeGlobalAux()
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 99 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux() local 101 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 108 if (GV->hasInitializer() && StoredVal == GV->getInitializer()) { in analyzeGlobalAux() 111 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux() 112 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux() 117 GS.StoredOnceValue = StoredVal; in analyzeGlobalAux() 119 GS.StoredOnceValue == StoredVal) { in analyzeGlobalAux()
|
/external/llvm-project/polly/lib/Transform/ |
D | Simplify.cpp | 273 Value *StoredVal = MA->tryGetValueStored(); in coalesceWrites() local 274 if (!StoredVal) in coalesceWrites() 275 StoredVal = MA->getAccessValue(); in coalesceWrites() 276 ValSet = makeValueSet(StoredVal); in coalesceWrites() 435 Value *StoredVal = MA->tryGetValueStored(); in removeRedundantWrites() local 436 if (!StoredVal) in removeRedundantWrites() 437 StoredVal = MA->getAccessValue(); in removeRedundantWrites() 439 if (StoredVal) { in removeRedundantWrites() 442 AccRelWrapped, makeValueSet(StoredVal)); in removeRedundantWrites() 445 LLVM_DEBUG(dbgs() << " Scalar: " << *StoredVal << "\n"); in removeRedundantWrites()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | VNCoercion.h | 37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, 46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | VNCoercion.h | 37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, 46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 698 static bool CanCoerceMustAliasedValueToLoad(Value *StoredVal, in CanCoerceMustAliasedValueToLoad() argument 704 StoredVal->getType()->isStructTy() || in CanCoerceMustAliasedValueToLoad() 705 StoredVal->getType()->isArrayTy()) in CanCoerceMustAliasedValueToLoad() 709 if (DL.getTypeSizeInBits(StoredVal->getType()) < in CanCoerceMustAliasedValueToLoad() 722 static Value *CoerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy, in CoerceAvailableValueToLoadType() argument 725 assert(CanCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in CoerceAvailableValueToLoadType() 729 Type *StoredValTy = StoredVal->getType(); in CoerceAvailableValueToLoadType() 739 return IRB.CreateBitCast(StoredVal, LoadedTy); in CoerceAvailableValueToLoadType() 744 StoredVal = IRB.CreatePtrToInt(StoredVal, StoredValTy); in CoerceAvailableValueToLoadType() 752 StoredVal = IRB.CreateBitCast(StoredVal, TypeToCastTo); in CoerceAvailableValueToLoadType() [all …]
|
D | LoopIdiomRecognize.cpp | 116 unsigned StoreAlignment, Value *StoredVal, 345 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 349 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore() 371 Value *SplatValue = isBytewiseValue(StoredVal); in isLegalStore() 386 (PatternValue = getMemSetPatternValue(StoredVal, DL))) { in isLegalStore() 623 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 636 StoredVal, HeadStore, AdjacentStores, StoreEv, in processLoopStores() 746 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 749 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore() 753 PatternValue = getMemSetPatternValue(StoredVal, DL); in processLoopStridedStore()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 205 MaybeAlign StoreAlignment, Value *StoredVal, 462 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 467 if (DL->isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in isLegalStore() 473 TypeSize SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore() 496 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() 513 (PatternValue = getMemSetPatternValue(StoredVal, DL))) { in isLegalStore() 763 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 777 StoredVal, HeadStore, AdjacentStores, StoreEv, in processLoopStores() 924 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 927 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() [all …]
|
D | MemCpyOptimizer.cpp | 414 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local 418 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset() 422 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset() 655 Value *StoredVal = SI->getValueOperand(); in processStore() local 659 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore() 663 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in processStore()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 175 MaybeAlign StoreAlignment, Value *StoredVal, 429 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 433 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore() 455 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() 472 (PatternValue = getMemSetPatternValue(StoredVal, DL))) { in isLegalStore() 722 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 736 StoredVal, HeadStore, AdjacentStores, StoreEv, in processLoopStores() 883 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 886 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() 890 PatternValue = getMemSetPatternValue(StoredVal, DL); in processLoopStridedStore()
|
D | LowerMatrixIntrinsics.cpp | 793 bool VisitStore(Instruction *Inst, Value *StoredVal, Value *Ptr, in VisitStore() argument 795 auto I = ShapeMap.find(StoredVal); in VisitStore() 799 LowerStore(Inst, StoredVal, Ptr, Builder.getInt32(I->second.NumRows), I->second); in VisitStore()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | NullabilityChecker.cpp | 350 auto StoredVal = State->getSVal(*RegionVal).getAs<loc::MemRegionVal>(); in checkValueAtLValForInvariantViolation() local 351 if (!StoredVal || !isa<SymbolicRegion>(StoredVal->getRegion())) in checkValueAtLValForInvariantViolation() 354 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation() 543 auto StoredVal = State->getSVal(Region).getAs<loc::MemRegionVal>(); in checkLocation() local 544 if (!StoredVal) in checkLocation() 553 if (ProgramStateRef NewState = State->assume(*StoredVal, true)) { in checkLocation()
|
D | NonNullParamChecker.cpp | 265 auto StoredVal = in checkBeginFunction() local 269 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 1244 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 1248 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern() 1252 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern() 1259 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 1303 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 1334 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local 1335 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand() 1373 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand() 1377 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand() 1399 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
|
D | SystemZTargetTransformInfo.cpp | 1043 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local 1044 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 1248 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 1252 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern() 1256 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern() 1263 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 1307 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 1338 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local 1339 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand() 1377 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand() 1381 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand() 1403 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
|
D | SystemZTargetTransformInfo.cpp | 1094 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local 1095 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 2872 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 2877 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern() 2880 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern() 2886 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern() 2969 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 3005 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local 3006 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand() 3022 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand() 3038 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() 3045 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1061 Instruction *StoredVal) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA() argument 1082 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA() 1608 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local 1613 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean() 1619 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean() 1621 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | NullabilityChecker.cpp | 370 auto StoredVal = in checkValueAtLValForInvariantViolation() local 372 if (!StoredVal) in checkValueAtLValForInvariantViolation() 375 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 1797 SDValue StoredVal, SelectionDAG *CurDAG, in isLoadIncOrDecStore() argument 1804 if (StoredVal.getResNo() != 0) return false; in isLoadIncOrDecStore() 1807 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isLoadIncOrDecStore() 1813 SDValue Load = StoredVal->getOperand(0); in isLoadIncOrDecStore() 2660 SDValue StoredVal = StoreNode->getOperand(1); in Select() local 2661 unsigned Opc = StoredVal->getOpcode(); in Select() 2665 if (!isLoadIncOrDecStore(StoreNode, Opc, StoredVal, CurDAG, in Select() 2686 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in Select()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 2970 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 2975 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern() 2978 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern() 2984 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern() 3067 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 3103 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local 3104 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand() 3120 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand() 3136 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() 3143 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() [all …]
|