Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp181 bool isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
182 bool isEquivalentGEP(const GetElementPtrInst *GEP1, in isEquivalentGEP() argument
184 return isEquivalentGEP(cast<GEPOperator>(GEP1), cast<GEPOperator>(GEP2)); in isEquivalentGEP()
345 bool FunctionComparator::isEquivalentGEP(const GEPOperator *GEP1, in isEquivalentGEP() argument
349 if (TD && GEP1->hasAllConstantIndices() && GEP2->hasAllConstantIndices()) { in isEquivalentGEP()
350 SmallVector<Value *, 8> Indices1(GEP1->idx_begin(), GEP1->idx_end()); in isEquivalentGEP()
352 uint64_t Offset1 = TD->getIndexedOffset(GEP1->getPointerOperandType(), in isEquivalentGEP()
359 if (GEP1->getPointerOperand()->getType() != in isEquivalentGEP()
363 if (GEP1->getNumOperands() != GEP2->getNumOperands()) in isEquivalentGEP()
366 for (unsigned i = 0, e = GEP1->getNumOperands(); i != e; ++i) { in isEquivalentGEP()
[all …]
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp78 GetElementPtrInst *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1); in IsPointerOffset() local
85 if (GEP1 && GEP2 == 0 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset()
86 Offset = -GetOffsetFromIndex(GEP1, 1, VariableIdxFound, TD); in IsPointerOffset()
90 if (GEP2 && GEP1 == 0 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset()
100 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in IsPointerOffset()
105 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in IsPointerOffset()
106 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in IsPointerOffset()
109 int64_t Offset1 = GetOffsetFromIndex(GEP1, Idx, VariableIdxFound, TD); in IsPointerOffset()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp435 GEPOperator *GEP1 = 0, *GEP2 = 0; in OptimizePointerDifference() local
442 GEP1 = LHSGEP; in OptimizePointerDifference()
449 GEP1 = LHSGEP; in OptimizePointerDifference()
458 GEP1 = RHSGEP; in OptimizePointerDifference()
465 GEP1 = RHSGEP; in OptimizePointerDifference()
473 if (GEP1 == 0 || in OptimizePointerDifference()
478 Value *Result = EmitGEPOffset(GEP1); in OptimizePointerDifference()
/external/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp841 BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size, in aliasGEP() argument
869 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
897 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
937 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()