Searched refs:GEP2 (Results 1 - 4 of 4) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp1088 const GEPOperator *GEP2,
1092 GEP2->getPointerOperand()->stripPointerCastsAndInvariantGroups() &&
1093 GEP1->getPointerOperandType() == GEP2->getPointerOperandType() &&
1096 // Try to determine whether GEP1 and GEP2 index through arrays, into structs,
1099 if (GEP1->getNumIndices() != GEP2->getNumIndices() ||
1115 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1));
1159 // GEP1 and GEP2 we cannot guarantee that the last indexed arrays don't
1169 if (GEP1->getOperand(i + 1) != GEP2->getOperand(i + 1))
1173 // that GEP2 indexe
1086 aliasSameBasePointerGEPs(const GEPOperator *GEP1, LocationSize MaybeV1Size, const GEPOperator *GEP2, LocationSize MaybeV2Size, const DataLayout &DL) argument
[all...]
H A DValueTracking.cpp6480 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); local
6519 if (GEP2) {
6520 auto Offset = getOffsetFromBase(GEP2, Ptr1);
6530 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0))
6535 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx)
6536 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx))
6540 auto Offset2 = getOffsetFromIndex(GEP2, Idx, DL);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp1608 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; local
1621 GEP2 = RHSGEP;
1637 GEP2 = LHSGEP;
1648 if (GEP2) {
1661 unsigned NumNonConstantIndices2 = GEP2->countNonConstantIndices();
1664 (NumNonConstantIndices2 > 0 && !GEP2->hasOneUse()))) {
1676 if (IsNUW && !GEP2 && !Swapped && GEP1->isInBounds() &&
1683 if (GEP2) {
1684 Value *Offset = EmitGEPOffset(GEP2);
H A DInstructionCombining.cpp1726 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { argument
1728 if (!GEP1.isInBounds() && !GEP2.isInBounds())
1732 (GEP2.isInBounds() || GEP2.hasAllZeroIndices());

Completed in 98 milliseconds