/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 15 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument 20 StoredVal->getType()->isStructTy() || StoredVal->getType()->isArrayTy()) in canCoerceMustAliasedValueToLoad() 23 uint64_t StoreSize = DL.getTypeSizeInBits(StoredVal->getType()); in canCoerceMustAliasedValueToLoad() 34 if (DL.isNonIntegralPointerType(StoredVal->getType()) != in canCoerceMustAliasedValueToLoad() 42 static T *coerceAvailableValueToLoadTypeHelper(T *StoredVal, Type *LoadedTy, in coerceAvailableValueToLoadTypeHelper() argument 45 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadTypeHelper() 47 if (auto *C = dyn_cast<Constant>(StoredVal)) in coerceAvailableValueToLoadTypeHelper() 49 StoredVal = FoldedStoredVal; in coerceAvailableValueToLoadTypeHelper() 52 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper() 61 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper() [all …]
|
D | GlobalStatus.cpp | 112 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux() local 114 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux() 121 if (GV->hasInitializer() && StoredVal == GV->getInitializer()) { in analyzeGlobalAux() 124 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux() 125 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux() 130 GS.StoredOnceValue = StoredVal; in analyzeGlobalAux() 132 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | VNCoercion.h | 38 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, 47 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 171 unsigned StoreAlignment, Value *StoredVal, 402 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 406 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore() 428 Value *SplatValue = isBytewiseValue(StoredVal); in isLegalStore() 445 (PatternValue = getMemSetPatternValue(StoredVal, DL))) { in isLegalStore() 692 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 705 StoredVal, HeadStore, AdjacentStores, StoreEv, in processLoopStores() 851 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 854 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore() 858 PatternValue = getMemSetPatternValue(StoredVal, DL); in processLoopStridedStore()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 1207 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 1211 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern() 1215 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern() 1222 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 1296 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local 1297 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand() 1335 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand() 1339 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand() 1364 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelDAGToDAG.cpp | 2212 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 2216 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern() 2219 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern() 2225 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 2308 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 2344 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local 2345 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand() 2371 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in foldLoadStoreIntoMemOperand() 2491 SDValue Operand = StoredVal->getOperand(1); in foldLoadStoreIntoMemOperand() 2506 hasNoCarryFlagUses(StoredVal.getNode())) { in foldLoadStoreIntoMemOperand() [all …]
|
D | X86ISelLowering.cpp | 19380 SDValue StoredVal = St->getValue(); in LowerStore() local 19383 assert(StoredVal.getValueType().isVector() && in LowerStore() 19384 StoredVal.getValueType().getVectorElementType() == MVT::i1 && in LowerStore() 19385 StoredVal.getValueType().getVectorNumElements() <= 8 && in LowerStore() 19391 StoredVal = DAG.getNode(ISD::INSERT_SUBVECTOR, dl, MVT::v8i1, in LowerStore() 19392 DAG.getUNDEF(MVT::v8i1), StoredVal, in LowerStore() 19394 StoredVal = DAG.getBitcast(MVT::i8, StoredVal); in LowerStore() 19396 return DAG.getStore(St->getChain(), dl, StoredVal, St->getBasePtr(), in LowerStore() 36043 SDValue StoredVal = St->getOperand(1); in combineStore() local 36049 StoredVal.getOpcode() == ISD::SCALAR_TO_VECTOR && in combineStore() [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()
|
D | RetainCountChecker.cpp | 3629 SVal StoredVal = state->getSVal(regionLoc->getRegion()); in checkBind() local 3630 if (StoredVal != val) in checkBind()
|
/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()
|
D | X86ISelLowering.cpp | 29173 SDValue StoredVal = St->getOperand(1); in combineStore() local 29189 SDValue Value0 = extract128BitVector(StoredVal, 0, DAG, dl); in combineStore() 29190 SDValue Value1 = extract128BitVector(StoredVal, NumElems / 2, DAG, dl); in combineStore()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1104 Instruction *StoredVal) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA() argument 1125 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA() 1696 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local 1701 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean() 1707 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean() 1709 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2541 VectorParts StoredVal = getVectorValue(SI->getValueOperand()); in vectorizeMemoryInstruction() local 2547 NewSI = Builder.CreateMaskedScatter(StoredVal[Part], VectorGep[Part], in vectorizeMemoryInstruction() 2557 StoredVal[Part] = reverseVector(StoredVal[Part]); in vectorizeMemoryInstruction() 2571 NewSI = Builder.CreateMaskedStore(StoredVal[Part], VecPtr, Alignment, in vectorizeMemoryInstruction() 2575 Builder.CreateAlignedStore(StoredVal[Part], VecPtr, Alignment); in vectorizeMemoryInstruction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2468 Value *StoredVal = getOrCreateVectorValue(SI->getValueOperand(), Part); in vectorizeMemoryInstruction() local 2472 NewSI = Builder.CreateMaskedScatter(StoredVal, VectorGep, Alignment, in vectorizeMemoryInstruction() 2478 StoredVal = reverseVector(StoredVal); in vectorizeMemoryInstruction() 2484 NewSI = Builder.CreateMaskedStore(StoredVal, VecPtr, Alignment, in vectorizeMemoryInstruction() 2487 NewSI = Builder.CreateAlignedStore(StoredVal, VecPtr, Alignment); in vectorizeMemoryInstruction()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 11254 SDValue StoredVal; in MergeStoresOfConstantsOrVecElts() local 11267 StoredVal = getMergedConstantVectorStore(DAG, DL, StoreNodes, Chains, Ty); in MergeStoresOfConstantsOrVecElts() 11281 StoredVal = DAG.getNode(IsVec ? ISD::CONCAT_VECTORS : ISD::BUILD_VECTOR, in MergeStoresOfConstantsOrVecElts() 11312 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in MergeStoresOfConstantsOrVecElts() 11318 SDValue NewStore = DAG.getStore(NewChain, DL, StoredVal, in MergeStoresOfConstantsOrVecElts() 11514 SDValue StoredVal = St->getValue(); in MergeConsecutiveStores() local 11515 bool IsLoadSrc = isa<LoadSDNode>(StoredVal); in MergeConsecutiveStores() 11516 bool IsConstantSrc = isa<ConstantSDNode>(StoredVal) || in MergeConsecutiveStores() 11517 isa<ConstantFPSDNode>(StoredVal); in MergeConsecutiveStores() 11518 bool IsExtractVecSrc = (StoredVal.getOpcode() == ISD::EXTRACT_VECTOR_ELT || in MergeConsecutiveStores() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 13683 SDValue StoredVal; in MergeStoresOfConstantsOrVecElts() local 13711 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in MergeStoresOfConstantsOrVecElts() 13746 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in MergeStoresOfConstantsOrVecElts() 13785 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in MergeStoresOfConstantsOrVecElts() 13794 NewStore = DAG.getStore(NewChain, DL, StoredVal, FirstInChain->getBasePtr(), in MergeStoresOfConstantsOrVecElts() 13799 TLI.getTypeToTransformTo(*DAG.getContext(), StoredVal.getValueType()); in MergeStoresOfConstantsOrVecElts() 13801 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in MergeStoresOfConstantsOrVecElts() 13807 FirstInChain->getPointerInfo(), StoredVal.getValueType() /*TVT*/, in MergeStoresOfConstantsOrVecElts() 14026 SDValue StoredVal = peekThroughBitcast(St->getValue()); in MergeConsecutiveStores() local 14027 bool IsLoadSrc = isa<LoadSDNode>(StoredVal); in MergeConsecutiveStores() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 1917 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 1921 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 2152 SVal StoredVal = State->getSVal(regionLoc->getRegion()); in processPointerEscapedOnBind() local 2153 if (StoredVal != Val) in processPointerEscapedOnBind()
|