| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | VNCoercion.cpp | 17 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, in canCoerceMustAliasedValueToLoad() argument 19 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad() 63 if (auto *CI = dyn_cast<Constant>(StoredVal)) in canCoerceMustAliasedValueToLoad() 90 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy, in coerceAvailableValueToLoadType() argument 92 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, F) && in coerceAvailableValueToLoadType() 95 if (auto *C = dyn_cast<Constant>(StoredVal)) in coerceAvailableValueToLoadType() 96 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType() 99 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadType() 103 if (isa<ScalableVectorType>(StoredVal->getType()) && in coerceAvailableValueToLoadType() 106 {StoredVal, Helper.getInt64(0)}); in coerceAvailableValueToLoadType() [all …]
|
| H A D | GlobalStatus.cpp | 117 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()
|
| H A D | SimplifyCFG.cpp | 1762 auto *StoredVal = Builder.CreateBitCast( in hoistConditionalLoadsStores() local 1765 StoredVal, I->getOperand(1), cast<StoreInst>(I)->getAlign(), Mask); in hoistConditionalLoadsStores()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | VNCoercion.h | 38 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, 47 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 358 Value *StoredVal = PoisonValue::get(VecTupTy); in lowerInterleaveIntrinsicToStore() local 360 StoredVal = Builder.CreateIntrinsic( in lowerInterleaveIntrinsicToStore() 362 {StoredVal, InterleaveValues[i], Builder.getInt32(i)}); in lowerInterleaveIntrinsicToStore() 364 Builder.CreateCall(VssegNFunc, {StoredVal, SI->getPointerOperand(), VL, in lowerInterleaveIntrinsicToStore() 582 Value *StoredVal = PoisonValue::get(VecTupTy); in lowerInterleavedVPStore() local 584 StoredVal = Builder.CreateCall( in lowerInterleavedVPStore() 585 VecInsertFunc, {StoredVal, InterleaveOperands[i], Builder.getInt32(i)}); in lowerInterleavedVPStore() 591 Value *Operands[] = {StoredVal, Store->getArgOperand(1), Mask, EVL, in lowerInterleavedVPStore()
|
| H A D | RISCVISelLowering.cpp | 6556 SDValue StoredVal = Store->getValue(); in expandUnalignedRVVStore() local 6557 MVT VT = StoredVal.getSimpleValueType(); in expandUnalignedRVVStore() 6565 StoredVal = DAG.getBitcast(NewVT, StoredVal); in expandUnalignedRVVStore() 6566 return DAG.getStore(Store->getChain(), DL, StoredVal, Store->getBasePtr(), in expandUnalignedRVVStore() 7951 SDValue StoredVal = Store->getValue(); in LowerOperation() local 7952 EVT VT = StoredVal.getValueType(); in LowerOperation() 7962 DAG.getVTList(MVT::i32, MVT::i32), StoredVal); in LowerOperation() 7984 SDValue Lo = DAG.getNode(ISD::EXTRACT_ELEMENT, DL, MVT::i32, StoredVal, in LowerOperation() 7986 SDValue Hi = DAG.getNode(ISD::EXTRACT_ELEMENT, DL, MVT::i32, StoredVal, in LowerOperation() 8017 StoredVal, DAG.getVectorIdxConstant(i, DL)); in LowerOperation() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NullabilityChecker.cpp | 391 auto StoredVal = State->getSVal(*RegionVal).getAs<loc::MemRegionVal>(); in checkValueAtLValForInvariantViolation() local 392 if (!StoredVal || !isa<SymbolicRegion>(StoredVal->getRegion())) in checkValueAtLValForInvariantViolation() 395 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation() 624 auto StoredVal = State->getSVal(Region).getAs<loc::MemRegionVal>(); in checkLocation() local 625 if (!StoredVal) in checkLocation() 634 if (ProgramStateRef NewState = State->assume(*StoredVal, true)) { in checkLocation()
|
| H A D | NonNullParamChecker.cpp | 266 auto StoredVal = in checkBeginFunction() local 270 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelDAGToDAG.cpp | 1315 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 1319 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern() 1323 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern() 1330 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 1374 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 1405 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local 1406 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand() 1444 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand() 1448 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand() 1470 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
|
| H A D | SystemZTargetTransformInfo.cpp | 1366 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local 1367 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
|
| H A D | SystemZISelLowering.cpp | 8029 static bool isOnlyUsedByStores(SDValue StoredVal, SelectionDAG &DAG) { in isOnlyUsedByStores() argument 8030 for (auto *U : StoredVal->users()) { in isOnlyUsedByStores()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 231 MaybeAlign StoreAlignment, Value *StoredVal, 447 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 452 if (DL->isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in isLegalStore() 458 TypeSize SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore() 478 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() 496 getMemSetPatternValue(StoredVal, DL)) { in isLegalStore() 729 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 744 MaybeAlign(HeadStore->getAlign()), StoredVal, in processLoopStores() 1022 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 1075 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() [all …]
|
| H A D | MemCpyOptimizer.cpp | 400 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local 404 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset() 408 if (DL.getTypeStoreSize(StoredVal->getType()).isScalable()) in tryMergingIntoMemset() 412 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset() 760 Value *StoredVal = SI->getValueOperand(); in processStore() local 764 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore() 768 if (auto *LI = dyn_cast<LoadInst>(StoredVal)) in processStore()
|
| H A D | LowerMatrixIntrinsics.cpp | 2262 MatrixTy VisitStore(StoreInst *Inst, const ShapeInfo &SI, Value *StoredVal, in VisitStore() argument 2264 return LowerStore(Inst, StoredVal, Ptr, Inst->getAlign(), in VisitStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanRecipes.cpp | 3250 Value *StoredVal = State.get(StoredVPValue); in execute() local 3254 StoredVal = Builder.CreateVectorReverse(StoredVal, "reverse"); in execute() 3261 NewSI = Builder.CreateMaskedScatter(StoredVal, Addr, Alignment, Mask); in execute() 3263 NewSI = Builder.CreateMaskedStore(StoredVal, Addr, Alignment, Mask); in execute() 3265 NewSI = Builder.CreateAlignedStore(StoredVal, Addr, Alignment); in execute() 3285 Value *StoredVal = State.get(StoredValue); in execute() local 3288 StoredVal = createReverseEVL(Builder, StoredVal, EVL, "vp.reverse"); in execute() 3301 {StoredVal, Addr, Mask, EVL}); in execute() 3305 {StoredVal, Addr, Mask, EVL}); in execute()
|
| H A D | VPlan.h | 3093 VPWidenStoreRecipe(StoreInst &Store, VPValue *Addr, VPValue *StoredVal, in VPWidenStoreRecipe() 3096 : VPWidenMemoryRecipe(VPDef::VPWidenStoreSC, Store, {Addr, StoredVal}, in VPWidenStoreRecipe()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 3493 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 3498 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern() 3501 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern() 3507 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern() 3590 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 3625 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local 3626 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand() 3642 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand() 3658 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() 3665 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand() [all …]
|
| H A D | X86ISelLowering.cpp | 25455 SDValue StoredVal = Store->getValue(); in splitVectorStore() local 25456 assert((StoredVal.getValueType().is256BitVector() || in splitVectorStore() 25457 StoredVal.getValueType().is512BitVector()) && in splitVectorStore() 25470 std::tie(Value0, Value1) = splitVector(StoredVal, DAG, DL); in splitVectorStore() 25489 SDValue StoredVal = Store->getValue(); in scalarizeVectorStore() local 25491 StoredVal.getValueType().is128BitVector() && "Expecting 128-bit op"); in scalarizeVectorStore() 25492 StoredVal = DAG.getBitcast(StoreVT, StoredVal); in scalarizeVectorStore() 25510 SDValue Scl = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, StoreSVT, StoredVal, in scalarizeVectorStore() 25525 SDValue StoredVal = St->getValue(); in LowerStore() local 25528 if (StoredVal.getValueType().isVector() && in LowerStore() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | StackSafetyAnalysis.cpp | 433 auto RecordStore = [&](const Value* StoredVal) { in analyzeAllUses() argument 434 if (V == StoredVal) { in analyzeAllUses() 443 auto TypeSize = DL.getTypeStoreSize(StoredVal->getType()); in analyzeAllUses()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 1276 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local 1281 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean() 1290 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean() 1292 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 1915 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 1919 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngine.cpp | 3640 SVal StoredVal = State->getSVal(MR); in processPointerEscapedOnBind() local 3641 if (StoredVal != LocAndVal.second) in processPointerEscapedOnBind()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 21241 SDValue StoredVal; in mergeStoresOfConstantsOrVecElts() local 21272 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts() 21308 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts() 21351 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in mergeStoresOfConstantsOrVecElts() 21366 NewChain, DL, StoredVal, FirstInChain->getBasePtr(), in mergeStoresOfConstantsOrVecElts() 21373 TLI.getTypeToTransformTo(*DAG.getContext(), StoredVal.getValueType()); in mergeStoresOfConstantsOrVecElts() 21375 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in mergeStoresOfConstantsOrVecElts() 21384 StoredVal.getValueType() /*TVT*/, FirstInChain->getAlign(), *Flags, in mergeStoresOfConstantsOrVecElts() 21732 SDValue StoredVal = ST->getValue(); in tryStoreMergeOfConstants() local 21734 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) in tryStoreMergeOfConstants() [all …]
|