Home
last modified time | relevance | path

Searched refs:StoredVal (Results 1 – 16 of 16) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DGlobalStatus.cpp99 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/lib/Transforms/Scalar/
DGVN.cpp664 static bool CanCoerceMustAliasedValueToLoad(Value *StoredVal, in CanCoerceMustAliasedValueToLoad() argument
670 StoredVal->getType()->isStructTy() || in CanCoerceMustAliasedValueToLoad()
671 StoredVal->getType()->isArrayTy()) in CanCoerceMustAliasedValueToLoad()
675 if (TD.getTypeSizeInBits(StoredVal->getType()) < in CanCoerceMustAliasedValueToLoad()
689 static Value *CoerceAvailableValueToLoadType(Value *StoredVal, in CoerceAvailableValueToLoadType() argument
693 if (!CanCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, TD)) in CoerceAvailableValueToLoadType()
697 Type *StoredValTy = StoredVal->getType(); in CoerceAvailableValueToLoadType()
706 return new BitCastInst(StoredVal, LoadedTy, "", InsertPt); in CoerceAvailableValueToLoadType()
711 StoredVal = new PtrToIntInst(StoredVal, StoredValTy, "", InsertPt); in CoerceAvailableValueToLoadType()
719 StoredVal = new BitCastInst(StoredVal, TypeToCastTo, "", InsertPt); in CoerceAvailableValueToLoadType()
[all …]
DLoopIdiomRecognize.cpp272 Value *StoredVal = SI->getValueOperand(); in processLoopStore() local
276 uint64_t SizeInBits = TD->getTypeSizeInBits(StoredVal->getType()); in processLoopStore()
307 StoredVal, SI, StoreEv, BECount)) in processLoopStore()
313 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in processLoopStore()
441 unsigned StoreAlignment, Value *StoredVal, in processLoopStridedStore() argument
449 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore()
461 (PatternValue = getMemSetPatternValue(StoredVal, *TD))) { in processLoopStridedStore()
DScalarReplAggregates.cpp281 Value *ConvertScalar_InsertValue(Value *StoredVal, Value *ExistingVal,
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp698 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 …]
DLoopIdiomRecognize.cpp116 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/lib/Transforms/IPO/
DGlobalOpt.cpp213 Value *StoredVal = SI->getOperand(0); in AnalyzeGlobal() local
214 if (StoredVal == GV->getInitializer()) { in AnalyzeGlobal()
217 } else if (isa<LoadInst>(StoredVal) && in AnalyzeGlobal()
218 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in AnalyzeGlobal()
223 GS.StoredOnceValue = StoredVal; in AnalyzeGlobal()
225 GS.StoredOnceValue == StoredVal) { in AnalyzeGlobal()
1122 Instruction *StoredVal) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA() argument
1146 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1665 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local
1670 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1061 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/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp1797 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()
DX86ISelLowering.cpp29173 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/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp370 auto StoredVal = in checkValueAtLValForInvariantViolation() local
372 if (!StoredVal) in checkValueAtLValForInvariantViolation()
375 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation()
DRetainCountChecker.cpp3629 SVal StoredVal = state->getSVal(regionLoc->getRegion()); in checkBind() local
3630 if (StoredVal != val) in checkBind()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2541 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/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp11254 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/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp2152 SVal StoredVal = State->getSVal(regionLoc->getRegion()); in processPointerEscapedOnBind() local
2153 if (StoredVal != Val) in processPointerEscapedOnBind()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp13621 SDValue StoredVal = St->getOperand(1); in PerformSTORECombine() local
13629 StoredVal.getNode()->getOpcode() == ISD::CONCAT_VECTORS && in PerformSTORECombine()
13630 StoredVal.getNumOperands() == 2) { in PerformSTORECombine()
13632 SDValue Value0 = StoredVal.getOperand(0); in PerformSTORECombine()
13633 SDValue Value1 = StoredVal.getOperand(1); in PerformSTORECombine()