| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | VNCoercion.cpp | 91 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadType() 96 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadType() 104 StoredVal = Helper.CreateBitCast(StoredVal, TypeToCastTo); in coerceAvailableValueToLoadType() 108 StoredVal = Helper.CreateIntToPtr(StoredVal, LoadedTy); in coerceAvailableValueToLoadType() 125 StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy); in coerceAvailableValueToLoadType() 131 StoredVal = Helper.CreateBitCast(StoredVal, StoredValTy); in coerceAvailableValueToLoadType() 140 StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt)); in coerceAvailableValueToLoadType() 145 StoredVal = Helper.CreateTruncOrBitCast(StoredVal, NewIntTy); in coerceAvailableValueToLoadType() 150 StoredVal = Helper.CreateIntToPtr(StoredVal, LoadedTy); in coerceAvailableValueToLoadType() 153 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); 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()
|
| /llvm-project-15.0.7/polly/lib/Transform/ |
| H A D | Simplify.cpp | 363 Value *StoredVal = MA->tryGetValueStored(); in coalesceWrites() local 364 if (!StoredVal) in coalesceWrites() 365 StoredVal = MA->getAccessValue(); in coalesceWrites() 366 ValSet = makeValueSet(StoredVal); in coalesceWrites() 525 Value *StoredVal = MA->tryGetValueStored(); in removeRedundantWrites() local 526 if (!StoredVal) in removeRedundantWrites() 527 StoredVal = MA->getAccessValue(); in removeRedundantWrites() 529 if (StoredVal) { in removeRedundantWrites() 532 AccRelWrapped, makeValueSet(StoredVal)); in removeRedundantWrites() 535 LLVM_DEBUG(dbgs() << " Scalar: " << *StoredVal << "\n"); in removeRedundantWrites()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | VNCoercion.h | 37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy, 46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NullabilityChecker.cpp | 350 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 D | NonNullParamChecker.cpp | 265 auto StoredVal = in checkBeginFunction() local 269 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelDAGToDAG.cpp | 1247 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument 1251 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern() 1255 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern() 1262 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern() 1306 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 1337 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local 1338 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand() 1376 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand() 1380 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand() 1402 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
|
| H A D | SystemZTargetTransformInfo.cpp | 1161 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local 1162 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
|
| H A D | SystemZISelLowering.cpp | 6368 static bool isOnlyUsedByStores(SDValue StoredVal, SelectionDAG &DAG) { in isOnlyUsedByStores() argument 6369 for (auto *U : StoredVal->uses()) { in isOnlyUsedByStores()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 435 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local 439 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset() 443 if (DL.getTypeStoreSize(StoredVal->getType()).isScalable()) in tryMergingIntoMemset() 447 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset() 674 Value *StoredVal = SI->getValueOperand(); in processStore() local 678 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore() 682 if (auto *LI = dyn_cast<LoadInst>(StoredVal)) { in processStore()
|
| H A D | LoopIdiomRecognize.cpp | 220 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() 773 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local 788 MaybeAlign(HeadStore->getAlign()), StoredVal, in processLoopStores() 1099 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument 1103 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() [all …]
|
| H A D | LowerMatrixIntrinsics.cpp | 1709 bool VisitStore(StoreInst *Inst, Value *StoredVal, Value *Ptr, in VisitStore() argument 1711 auto I = ShapeMap.find(StoredVal); in VisitStore() 1715 LowerStore(Inst, StoredVal, Ptr, Inst->getAlign(), in VisitStore()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 3105 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern() 3108 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern() 3114 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern() 3197 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern() 3233 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local 3234 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand() 3250 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand() 3315 bool IsOne = isOneConstant(StoredVal.getOperand(1)); in foldLoadStoreIntoMemOperand() 3316 bool IsNegOne = isAllOnesConstant(StoredVal.getOperand(1)); in foldLoadStoreIntoMemOperand() 3410 SDValue Operand = StoredVal->getOperand(1-LoadOpNo); in foldLoadStoreIntoMemOperand() [all …]
|
| H A D | X86ISelLowering.cpp | 25622 StoredVal = DAG.getBitcast(StoreVT, StoredVal); in scalarizeVectorStore() 25670 StoredVal = DAG.getBitcast(MVT::i16, StoredVal); in LowerStore() 25671 StoredVal = DAG.getNode(ISD::TRUNCATE, dl, MVT::i8, StoredVal); in LowerStore() 25694 if (StoredVal.hasOneUse() && in LowerStore() 25710 StoredVal = DAG.getNode(ISD::CONCAT_VECTORS, dl, WideVT, StoredVal, in LowerStore() 25718 StoredVal = DAG.getBitcast(CastVT, StoredVal); in LowerStore() 25719 StoredVal = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, StVT, StoredVal, in LowerStore() 49361 StoredVal = DAG.getBitcast(NewVT, StoredVal); in combineStore() 49388 Ops[0] = StoredVal; in combineStore() 49423 StoredVal = combinevXi1ConstantToInteger(StoredVal, DAG); in combineStore() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 1231 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0)); in TryToShrinkGlobalToBoolean() local 1236 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean() 1243 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean() 1245 StoreVal = StoredVal->getOperand(0); in TryToShrinkGlobalToBoolean()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 1933 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local 1937 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorize.cpp | 9651 Value *StoredVal = State.get(StoredValue, Part); in execute() local 9655 NewSI = Builder.CreateMaskedScatter(StoredVal, VectorGep, Alignment, in execute() 9661 StoredVal = Builder.CreateVectorReverse(StoredVal, "reverse"); in execute() 9668 NewSI = Builder.CreateMaskedStore(StoredVal, VecPtr, Alignment, in execute() 9671 NewSI = Builder.CreateAlignedStore(StoredVal, VecPtr, Alignment); in execute()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngine.cpp | 3152 SVal StoredVal = State->getSVal(MR); in processPointerEscapedOnBind() local 3153 if (StoredVal != LocAndVal.second) in processPointerEscapedOnBind()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 17919 SDValue StoredVal; in mergeStoresOfConstantsOrVecElts() local 17949 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts() 17982 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts() 18021 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in mergeStoresOfConstantsOrVecElts() 18037 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in mergeStoresOfConstantsOrVecElts() 18345 SDValue StoredVal = ST->getValue(); in tryStoreMergeOfConstants() local 18347 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) in tryStoreMergeOfConstants() 18378 TLI.getTypeToTransformTo(Context, StoredVal.getValueType()); in tryStoreMergeOfConstants() 18825 SDValue StoredVal = peekThroughBitcasts(St->getValue()); in mergeConsecutiveStores() local 18826 const StoreSource StoreSrc = getStoreSource(StoredVal); in mergeConsecutiveStores() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 3049 SDValue StoredVal = Store->getValue(); in expandUnalignedRVVStore() local 3050 MVT VT = StoredVal.getSimpleValueType(); in expandUnalignedRVVStore() 3058 StoredVal = DAG.getBitcast(NewVT, StoredVal); in expandUnalignedRVVStore() 3059 return DAG.getStore(Store->getChain(), DL, StoredVal, Store->getBasePtr(), in expandUnalignedRVVStore()
|