Searched refs:GEP2 (Results 1 – 4 of 4) sorted by relevance
/external/llvm/lib/Transforms/Scalar/ |
D | 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()
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 890 const GEPOperator *GEP2, uint64_t V2Size, in aliasSameBasePointerGEPs() argument 893 assert(GEP1->getPointerOperand() == GEP2->getPointerOperand() && in aliasSameBasePointerGEPs() 899 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs() 912 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1)); in aliasSameBasePointerGEPs() 1018 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local 1037 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, in aliasGEP() 1076 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, in aliasGEP() 1090 if (DL && GEP1->getPointerOperand() == GEP2->getPointerOperand()) { in aliasGEP() 1091 AliasResult R = aliasSameBasePointerGEPs(GEP1, V1Size, GEP2, V2Size, *DL); in aliasGEP()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | R600KernelParameters.cpp | 268 GetElementPtrInst* GEP2 = GetElementPtrInst::Create(Op, Params, Name, in Propagate() local 270 GEP2->setIsInBounds(GEP->isInBounds()); in Propagate() 271 V = dyn_cast<Value>(GEP2); in Propagate() 272 GEP->replaceAllUsesWith(GEP2); in Propagate()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1446 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local 1459 GEP2 = RHSGEP; in OptimizePointerDifference() 1475 GEP2 = LHSGEP; in OptimizePointerDifference() 1485 (GEP2 && !GEP2->hasAllConstantIndices() && !GEP2->hasOneUse())) in OptimizePointerDifference() 1493 if (GEP2) { in OptimizePointerDifference() 1494 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
|