Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
HDVNCoercion.cpp18 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument
20 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad()
48 if (auto *CI = dyn_cast<Constant>(StoredVal)) in canCoerceMustAliasedValueToLoad()
76 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy, in coerceAvailableValueToLoadType() argument
79 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadType()
81 if (auto *C = dyn_cast<Constant>(StoredVal)) in coerceAvailableValueToLoadType()
82 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType()
85 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadType()
94 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadType()
99 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadType()
[all …]
HDGlobalStatus.cpp117 Value *StoredVal = SI->getOperand(0); in analyzeGlobalAux() local
119 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in analyzeGlobalAux()
126 if (GV->hasInitializer() && StoredVal == GV->getInitializer()) { in analyzeGlobalAux()
129 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux()
130 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux()
137 GS.getStoredOnceValue() == StoredVal) { in analyzeGlobalAux()
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
HDVNCoercion.h37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDNullabilityChecker.cpp394 auto StoredVal = State->getSVal(*RegionVal).getAs<loc::MemRegionVal>(); in checkValueAtLValForInvariantViolation() local
395 if (!StoredVal || !isa<SymbolicRegion>(StoredVal->getRegion())) in checkValueAtLValForInvariantViolation()
398 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation()
627 auto StoredVal = State->getSVal(Region).getAs<loc::MemRegionVal>(); in checkLocation() local
628 if (!StoredVal) in checkLocation()
637 if (ProgramStateRef NewState = State->assume(*StoredVal, true)) { in checkLocation()
HDNonNullParamChecker.cpp267 auto StoredVal = in checkBeginFunction() local
271 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
HDSystemZISelDAGToDAG.cpp1304 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument
1308 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern()
1312 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern()
1319 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern()
1363 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern()
1394 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local
1395 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand()
1433 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand()
1437 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand()
1459 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
HDSystemZTargetTransformInfo.cpp1221 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local
1222 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
HDSystemZISelLowering.cpp6977 static bool isOnlyUsedByStores(SDValue StoredVal, SelectionDAG &DAG) { in isOnlyUsedByStores() argument
6978 for (auto *U : StoredVal->uses()) { in isOnlyUsedByStores()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDLoopIdiomRecognize.cpp209 MaybeAlign StoreAlignment, Value *StoredVal,
419 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
424 if (DL->isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in isLegalStore()
430 TypeSize SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
453 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore()
470 getMemSetPatternValue(StoredVal, DL)) { in isLegalStore()
705 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local
720 MaybeAlign(HeadStore->getAlign()), StoredVal, in processLoopStores()
1007 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument
1011 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore()
[all …]
HDMemCpyOptimizer.cpp407 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local
411 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset()
415 if (DL.getTypeStoreSize(StoredVal->getType()).isScalable()) in tryMergingIntoMemset()
419 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset()
775 Value *StoredVal = SI->getValueOperand(); in processStore() local
779 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore()
783 if (auto *LI = dyn_cast<LoadInst>(StoredVal)) in processStore()
HDLowerMatrixIntrinsics.cpp2085 bool VisitStore(StoreInst *Inst, Value *StoredVal, Value *Ptr, in VisitStore() argument
2087 auto I = ShapeMap.find(StoredVal); in VisitStore()
2091 LowerStore(Inst, StoredVal, Ptr, Inst->getAlign(), in VisitStore()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
HDX86ISelDAGToDAG.cpp3426 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument
3431 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern()
3434 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern()
3440 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern()
3523 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern()
3559 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local
3560 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand()
3576 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand()
3592 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
3599 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
[all …]
HDX86ISelLowering.cpp24601 SDValue StoredVal = Store->getValue(); in splitVectorStore() local
24602 assert((StoredVal.getValueType().is256BitVector() || in splitVectorStore()
24603 StoredVal.getValueType().is512BitVector()) && in splitVectorStore()
24616 std::tie(Value0, Value1) = splitVector(StoredVal, DAG, DL); in splitVectorStore()
24636 SDValue StoredVal = Store->getValue(); in scalarizeVectorStore() local
24638 StoredVal.getValueType().is128BitVector() && "Expecting 128-bit op"); in scalarizeVectorStore()
24639 StoredVal = DAG.getBitcast(StoreVT, StoredVal); in scalarizeVectorStore()
24657 SDValue Scl = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, StoreSVT, StoredVal, in scalarizeVectorStore()
24672 SDValue StoredVal = St->getValue(); in LowerStore() local
24675 if (StoredVal.getValueType().isVector() && in LowerStore()
[all …]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
HDStackSafetyAnalysis.cpp433 auto RecordStore = [&](const Value* StoredVal) { in analyzeAllUses() argument
434 if (V == StoredVal) { in analyzeAllUses()
443 auto TypeSize = DL.getTypeStoreSize(StoredVal->getType()); in analyzeAllUses()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
HDGlobalOpt.cpp1264 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local
1269 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1277 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean()
1279 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
HDLoopVectorize.cpp9314 Value *StoredVal = State.get(StoredVPValue, Part); in execute() local
9318 StoredVal = Builder.CreateVectorReverse(StoredVal, "reverse"); in execute()
9324 NewSI = Builder.CreateMaskedScatter(StoredVal, Addr, Alignment, Mask); in execute()
9326 NewSI = Builder.CreateMaskedStore(StoredVal, Addr, Alignment, Mask); in execute()
9328 NewSI = Builder.CreateAlignedStore(StoredVal, Addr, Alignment); in execute()
9346 Value *StoredVal = State.get(StoredValue, 0); in execute() local
9349 StoredVal = createReverseEVL(Builder, StoredVal, EVL, "vp.reverse"); in execute()
9362 {StoredVal, Addr, Mask, EVL}); in execute()
9368 {StoredVal, Addr})); in execute()
HDVPlan.h2596 VPWidenStoreRecipe(StoreInst &Store, VPValue *Addr, VPValue *StoredVal, in VPWidenStoreRecipe()
2598 : VPWidenMemoryRecipe(VPDef::VPWidenStoreSC, Store, {Addr, StoredVal}, in VPWidenStoreRecipe()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
HDHexagonLoopIdiomRecognition.cpp1927 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
1931 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDExprEngine.cpp3515 SVal StoredVal = State->getSVal(MR); in processPointerEscapedOnBind() local
3516 if (StoredVal != LocAndVal.second) in processPointerEscapedOnBind()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
HDDAGCombiner.cpp20227 SDValue StoredVal; in mergeStoresOfConstantsOrVecElts() local
20258 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
20294 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
20337 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in mergeStoresOfConstantsOrVecElts()
20352 NewChain, DL, StoredVal, FirstInChain->getBasePtr(), in mergeStoresOfConstantsOrVecElts()
20359 TLI.getTypeToTransformTo(*DAG.getContext(), StoredVal.getValueType()); in mergeStoresOfConstantsOrVecElts()
20361 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in mergeStoresOfConstantsOrVecElts()
20370 StoredVal.getValueType() /*TVT*/, FirstInChain->getAlign(), *Flags, in mergeStoresOfConstantsOrVecElts()
20685 SDValue StoredVal = ST->getValue(); in tryStoreMergeOfConstants() local
20687 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) in tryStoreMergeOfConstants()
[all …]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
HDRISCVISelLowering.cpp5602 SDValue StoredVal = Store->getValue(); in expandUnalignedRVVStore() local
5603 MVT VT = StoredVal.getSimpleValueType(); in expandUnalignedRVVStore()
5611 StoredVal = DAG.getBitcast(NewVT, StoredVal); in expandUnalignedRVVStore()
5612 return DAG.getStore(Store->getChain(), DL, StoredVal, Store->getBasePtr(), in expandUnalignedRVVStore()