Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DVNCoercion.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 …]
DGlobalStatus.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()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h37 bool canCoerceMustAliasedValueToLoad(Value *StoredVal, Type *LoadTy,
46 Value *coerceAvailableValueToLoadType(Value *StoredVal, Type *LoadedTy,
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp386 auto StoredVal = State->getSVal(*RegionVal).getAs<loc::MemRegionVal>(); in checkValueAtLValForInvariantViolation() local
387 if (!StoredVal || !isa<SymbolicRegion>(StoredVal->getRegion())) in checkValueAtLValForInvariantViolation()
390 if (getNullConstraint(*StoredVal, State) == NullConstraint::IsNull) in checkValueAtLValForInvariantViolation()
592 auto StoredVal = State->getSVal(Region).getAs<loc::MemRegionVal>(); in checkLocation() local
593 if (!StoredVal) in checkLocation()
602 if (ProgramStateRef NewState = State->assume(*StoredVal, true)) { in checkLocation()
DNonNullParamChecker.cpp265 auto StoredVal = in checkBeginFunction() local
269 if (ProgramStateRef NewState = State->assume(StoredVal, true)) { in checkBeginFunction()
/openbsd/src/gnu/llvm/llvm/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp1254 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument
1258 if (StoredVal.getResNo() != 0) in isFusableLoadOpStorePattern()
1262 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) in isFusableLoadOpStorePattern()
1269 SDValue Load = StoredVal->getOperand(0); in isFusableLoadOpStorePattern()
1313 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern()
1344 SDValue StoredVal = StoreNode->getOperand(1); in tryFoldLoadStoreIntoMemOperand() local
1345 unsigned Opc = StoredVal->getOpcode(); in tryFoldLoadStoreIntoMemOperand()
1383 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadNode, in tryFoldLoadStoreIntoMemOperand()
1387 SDValue Operand = StoredVal.getOperand(1); in tryFoldLoadStoreIntoMemOperand()
1409 ReplaceUses(SDValue(StoredVal.getNode(), 1), SDValue(Result, 0)); in tryFoldLoadStoreIntoMemOperand()
DSystemZTargetTransformInfo.cpp1169 const Value *StoredVal = SI->getValueOperand(); in getMemoryOpCost() local
1170 if (StoredVal->hasOneUse() && isBswapIntrinsicCall(StoredVal)) in getMemoryOpCost()
DSystemZISelLowering.cpp6369 static bool isOnlyUsedByStores(SDValue StoredVal, SelectionDAG &DAG) { in isOnlyUsedByStores() argument
6370 for (auto *U : StoredVal->uses()) { in isOnlyUsedByStores()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp446 Value *StoredVal = NextStore->getValueOperand(); in tryMergingIntoMemset() local
450 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in tryMergingIntoMemset()
454 if (DL.getTypeStoreSize(StoredVal->getType()).isScalable()) in tryMergingIntoMemset()
458 Value *StoredByte = isBytewiseValue(StoredVal, DL); in tryMergingIntoMemset()
801 Value *StoredVal = SI->getValueOperand(); in processStore() local
805 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in processStore()
809 if (auto *LI = dyn_cast<LoadInst>(StoredVal)) in processStore()
DLoopIdiomRecognize.cpp220 MaybeAlign StoreAlignment, Value *StoredVal,
489 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
494 if (DL->isNonIntegralPointerType(StoredVal->getType()->getScalarType())) in isLegalStore()
500 TypeSize SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
523 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore()
540 getMemSetPatternValue(StoredVal, DL)) { in isLegalStore()
775 Value *StoredVal = HeadStore->getValueOperand(); in processLoopStores() local
790 MaybeAlign(HeadStore->getAlign()), StoredVal, in processLoopStores()
1100 Value *StoredVal, Instruction *TheStore, in processLoopStridedStore() argument
1104 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore()
[all …]
DLowerMatrixIntrinsics.cpp1833 bool VisitStore(StoreInst *Inst, Value *StoredVal, Value *Ptr, in VisitStore() argument
1835 auto I = ShapeMap.find(StoredVal); in VisitStore()
1839 LowerStore(Inst, StoredVal, Ptr, Inst->getAlign(), in VisitStore()
/openbsd/src/gnu/llvm/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp3106 SDValue StoredVal, SelectionDAG *CurDAG, in isFusableLoadOpStorePattern() argument
3111 if (StoredVal.getResNo() != 0) return false; in isFusableLoadOpStorePattern()
3114 if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false; in isFusableLoadOpStorePattern()
3120 SDValue Load = StoredVal->getOperand(LoadOpNo); in isFusableLoadOpStorePattern()
3203 for (SDValue Op : StoredVal->ops()) in isFusableLoadOpStorePattern()
3239 SDValue StoredVal = StoreNode->getOperand(1); in foldLoadStoreIntoMemOperand() local
3240 unsigned Opc = StoredVal->getOpcode(); in foldLoadStoreIntoMemOperand()
3256 IsNegate = isNullConstant(StoredVal.getOperand(0)); in foldLoadStoreIntoMemOperand()
3272 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
3279 if (!isFusableLoadOpStorePattern(StoreNode, StoredVal, CurDAG, LoadOpNo, in foldLoadStoreIntoMemOperand()
[all …]
DX86ISelLowering.cpp26037 SDValue StoredVal = Store->getValue(); in splitVectorStore() local
26038 assert((StoredVal.getValueType().is256BitVector() || in splitVectorStore()
26039 StoredVal.getValueType().is512BitVector()) && in splitVectorStore()
26052 std::tie(Value0, Value1) = splitVector(StoredVal, DAG, DL); in splitVectorStore()
26072 SDValue StoredVal = Store->getValue(); in scalarizeVectorStore() local
26074 StoredVal.getValueType().is128BitVector() && "Expecting 128-bit op"); in scalarizeVectorStore()
26075 StoredVal = DAG.getBitcast(StoreVT, StoredVal); in scalarizeVectorStore()
26093 SDValue Scl = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, StoreSVT, StoredVal, in scalarizeVectorStore()
26108 SDValue StoredVal = St->getValue(); in LowerStore() local
26111 if (StoredVal.getValueType().isVector() && in LowerStore()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
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()
/openbsd/src/gnu/llvm/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1933 Value *StoredVal = SI->getValueOperand(); in isLegalStore() local
1937 uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType()); in isLegalStore()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp9775 Value *StoredVal = State.get(StoredValue, Part); in execute() local
9779 NewSI = Builder.CreateMaskedScatter(StoredVal, VectorGep, Alignment, in execute()
9785 StoredVal = Builder.CreateVectorReverse(StoredVal, "reverse"); in execute()
9792 NewSI = Builder.CreateMaskedStore(StoredVal, VecPtr, Alignment, in execute()
9795 NewSI = Builder.CreateAlignedStore(StoredVal, VecPtr, Alignment); in execute()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp3484 SVal StoredVal = State->getSVal(MR); in processPointerEscapedOnBind() local
3485 if (StoredVal != LocAndVal.second) in processPointerEscapedOnBind()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp18573 SDValue StoredVal; in mergeStoresOfConstantsOrVecElts() local
18603 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
18639 StoredVal = DAG.getNode(MemVT.isVector() ? ISD::CONCAT_VECTORS in mergeStoresOfConstantsOrVecElts()
18678 StoredVal = DAG.getConstant(StoreInt, DL, StoreTy); in mergeStoresOfConstantsOrVecElts()
18687 NewStore = DAG.getStore(NewChain, DL, StoredVal, FirstInChain->getBasePtr(), in mergeStoresOfConstantsOrVecElts()
18692 TLI.getTypeToTransformTo(*DAG.getContext(), StoredVal.getValueType()); in mergeStoresOfConstantsOrVecElts()
18694 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal); in mergeStoresOfConstantsOrVecElts()
18700 FirstInChain->getPointerInfo(), StoredVal.getValueType() /*TVT*/, in mergeStoresOfConstantsOrVecElts()
19002 SDValue StoredVal = ST->getValue(); in tryStoreMergeOfConstants() local
19004 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal)) in tryStoreMergeOfConstants()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/
DRISCVISelLowering.cpp3665 SDValue StoredVal = Store->getValue(); in expandUnalignedRVVStore() local
3666 MVT VT = StoredVal.getSimpleValueType(); in expandUnalignedRVVStore()
3674 StoredVal = DAG.getBitcast(NewVT, StoredVal); in expandUnalignedRVVStore()
3675 return DAG.getStore(Store->getChain(), DL, StoredVal, Store->getBasePtr(), in expandUnalignedRVVStore()