Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp17 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 …]
H A DGlobalStatus.cpp110 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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DVNCoercion.h37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp350 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()
H A DNonNullParamChecker.cpp265 auto StoredVal = in checkBeginFunction() local
269 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp1248 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()
H A DSystemZTargetTransformInfo.cpp1119 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local
1120 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp220 MaybeAlign StoreAlignment, Value *StoredVal,
487 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
492 if (DL->isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in isLegalStore()
498 TypeSize SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
521 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore()
538 getMemSetPatternValue(StoredVal, DL)) { in isLegalStore()
776 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local
790 StoredVal, HeadStore, AdjacentStores, StoreEv, in processLoopStores()
1031 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument
1034 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore()
[all …]
H A DMemCpyOptimizer.cpp422 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local
426 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset()
430 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset()
663 Value *StoredVal = SI->getValueOperand(); in processStore() local
667 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore()
671 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in processStore()
H A DLowerMatrixIntrinsics.cpp1507 bool VisitStore(StoreInst *Inst, Value *StoredVal, Value *Ptr, in VisitStore() argument
1509 auto I = ShapeMap.find(StoredVal); in VisitStore()
1513 LowerStore(Inst, StoredVal, Ptr, Inst->getAlign(), in VisitStore()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp2995 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument
3000 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern()
3003 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern()
3009 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern()
3092 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern()
3128 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local
3129 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand()
3145 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand()
3161 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
3168 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
[all …]
H A DX86ISelLowering.cpp24146 SDValue StoredVal = Store->getValue(); in splitVectorStore() local
24147 assert((StoredVal.getValueType().is256BitVector() || in splitVectorStore()
24148 StoredVal.getValueType().is512BitVector()) && in splitVectorStore()
24161 std::tie(Value0, Value1) = splitVector(StoredVal, DAG, DL); in splitVectorStore()
24181 SDValue StoredVal = Store->getValue(); in scalarizeVectorStore() local
24183 StoredVal.getValueType().is128BitVector() && "Expecting 128-bit op"); in scalarizeVectorStore()
24184 StoredVal = DAG.getBitcast(StoreVT, StoredVal); in scalarizeVectorStore()
24202 SDValue Scl = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, StoreSVT, StoredVal, in scalarizeVectorStore()
24217 SDValue StoredVal = St->getValue(); in LowerStore() local
24220 if (StoredVal.getValueType().isVector() && in LowerStore()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1235 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local
1240 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1247 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean()
1249 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1938 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
1942 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2953 Value *StoredVal = State.get(StoredValue, Part); in vectorizeMemoryInstruction() local
2957 NewSI = Builder.CreateMaskedScatter(StoredVal, VectorGep, Alignment, in vectorizeMemoryInstruction()
2963 StoredVal = reverseVector(StoredVal); in vectorizeMemoryInstruction()
2969 NewSI = Builder.CreateMaskedStore(StoredVal, VecPtr, Alignment, in vectorizeMemoryInstruction()
2972 NewSI = Builder.CreateAlignedStore(StoredVal, VecPtr, Alignment); in vectorizeMemoryInstruction()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp2811 SVal StoredVal = State->getSVal(MR); in processPointerEscapedOnBind() local
2812 if (StoredVal != LocAndVal.second) in processPointerEscapedOnBind()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp16744 SDValue StoredVal; in mergeStoresOfConstantsOrVecElts() local
16772 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
16805 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
16844 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in mergeStoresOfConstantsOrVecElts()
16854 DAG.getStore(NewChain, DL, StoredVal, FirstInChain->getBasePtr(), in mergeStoresOfConstantsOrVecElts()
16858 TLI.getTypeToTransformTo(*DAG.getContext(), StoredVal.getValueType()); in mergeStoresOfConstantsOrVecElts()
16860 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in mergeStoresOfConstantsOrVecElts()
16866 FirstInChain->getPointerInfo(), StoredVal.getValueType() /*TVT*/, in mergeStoresOfConstantsOrVecElts()
17161 SDValue StoredVal = ST->getValue(); in tryStoreMergeOfConstants() local
17163 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) in tryStoreMergeOfConstants()
[all …]