Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp1086 const GEPOperator *GEP2, in aliasSameBasePointerGEPs() argument
1090 GEP2->getPointerOperand()->stripPointerCastsAndInvariantGroups() && in aliasSameBasePointerGEPs()
1091 GEP1->getPointerOperandType() == GEP2->getPointerOperandType() && in aliasSameBasePointerGEPs()
1097 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs()
1113 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1)); in aliasSameBasePointerGEPs()
1166 if (GEP1->getOperand(i + 1) != GEP2->getOperand(i + 1)) in aliasSameBasePointerGEPs()
1181 Value *GEP2LastIdx = GEP2->getOperand(GEP2->getNumOperands() - 1); in aliasSameBasePointerGEPs()
1341 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local
1345 isGEPBaseAtNegativeOffset(GEP2, DecompGEP2, DecompGEP1, V1Size)) in aliasGEP()
1386 GEP2->getPointerOperand()->stripPointerCastsAndInvariantGroups() && in aliasGEP()
[all …]
DValueTracking.cpp5933 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in isPointerOffset() local
5972 if (GEP2) { in isPointerOffset()
5973 auto Offset = getOffsetFromBase(GEP2, Ptr1); in isPointerOffset()
5983 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in isPointerOffset()
5988 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in isPointerOffset()
5989 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in isPointerOffset()
5993 auto Offset2 = getOffsetFromIndex(GEP2, Idx, DL); in isPointerOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1592 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local
1605 GEP2 = RHSGEP; in OptimizePointerDifference()
1621 GEP2 = LHSGEP; in OptimizePointerDifference()
1632 if (GEP2) { in OptimizePointerDifference()
1645 unsigned NumNonConstantIndices2 = GEP2->countNonConstantIndices(); in OptimizePointerDifference()
1648 (NumNonConstantIndices2 > 0 && !GEP2->hasOneUse()))) { in OptimizePointerDifference()
1660 if (IsNUW && !GEP2 && !Swapped && GEP1->isInBounds() && in OptimizePointerDifference()
1667 if (GEP2) { in OptimizePointerDifference()
1668 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
DInstructionCombining.cpp1652 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds() argument
1654 if (!GEP1.isInBounds() && !GEP2.isInBounds()) in isMergedGEPInBounds()
1658 (GEP2.isInBounds() || GEP2.hasAllZeroIndices()); in isMergedGEPInBounds()