Searched refs:GEP2 (Results 1 – 3 of 3) sorted by relevance
| /NextBSD/contrib/llvm/lib/Transforms/Scalar/ |
| HD | MemCpyOptimizer.cpp | 89 GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in IsPointerOffset() local 95 if (GEP1 && !GEP2 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset() 100 if (GEP2 && !GEP1 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset() 101 Offset = GetOffsetFromIndex(GEP2, 1, VariableIdxFound, DL); in IsPointerOffset() 110 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in IsPointerOffset() 115 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in IsPointerOffset() 116 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in IsPointerOffset() 120 int64_t Offset2 = GetOffsetFromIndex(GEP2, Idx, VariableIdxFound, DL); in IsPointerOffset()
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | BasicAliasAnalysis.cpp | 838 const GEPOperator *GEP2, in aliasSameBasePointerGEPs() argument 842 assert(GEP1->getPointerOperand() == GEP2->getPointerOperand() && in aliasSameBasePointerGEPs() 848 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs() 861 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1)); in aliasSameBasePointerGEPs() 964 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local 984 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, in aliasGEP() 1023 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, in aliasGEP() 1037 if (DL && GEP1->getPointerOperand() == GEP2->getPointerOperand()) { in aliasGEP() 1038 AliasResult R = aliasSameBasePointerGEPs(GEP1, V1Size, GEP2, V2Size, *DL); in aliasGEP()
|
| /NextBSD/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineAddSub.cpp | 1434 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local 1447 GEP2 = RHSGEP; in OptimizePointerDifference() 1463 GEP2 = LHSGEP; in OptimizePointerDifference() 1473 (GEP2 && !GEP2->hasAllConstantIndices() && !GEP2->hasOneUse())) in OptimizePointerDifference() 1481 if (GEP2) { in OptimizePointerDifference() 1482 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
|