Searched defs:GEP1 (Results 1 - 4 of 4) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp480 GEPOperator *GEP1 = 0, *GEP2 = 0; local
487 GEP1 = LHSGEP;
494 GEP1 = LHSGEP;
503 GEP1 = RHSGEP;
510 GEP1 = RHSGEP;
518 if (GEP1 == 0 ||
523 Value *Result = EmitGEPOffset(GEP1);
/external/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp181 bool isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
182 bool isEquivalentGEP(const GetElementPtrInst *GEP1, argument
184 return isEquivalentGEP(cast<GEPOperator>(GEP1), cast<GEPOperator>(GEP2));
345 bool FunctionComparator::isEquivalentGEP(const GEPOperator *GEP1, argument
349 if (TD && GEP1->hasAllConstantIndices() && GEP2->hasAllConstantIndices()) {
350 SmallVector<Value *, 8> Indices1(GEP1->idx_begin(), GEP1->idx_end());
352 uint64_t Offset1 = TD->getIndexedOffset(GEP1->getPointerOperandType(),
359 if (GEP1->getPointerOperand()->getType() !=
363 if (GEP1
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp78 GetElementPtrInst *GEP1 = dyn_cast<GetElementPtrInst>(Ptr1); local
85 if (GEP1 && GEP2 == 0 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) {
86 Offset = -GetOffsetFromIndex(GEP1, 1, VariableIdxFound, TD);
90 if (GEP2 && GEP1 == 0 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) {
100 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0))
105 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx)
106 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx))
109 int64_t Offset1 = GetOffsetFromIndex(GEP1, Id
[all...]
/external/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp394 /// decomposed GetElementPtr instructions GEP1 and GEP2 which have common base
395 /// pointers. Subtract the GEP2 indices from GEP1 to find the symbolic
849 /// anything about V2. UnderlyingV1 is GetUnderlyingObject(GEP1, TD),
853 BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size, argument
876 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD);
892 // Subtract the GEP2 pointer from the GEP1 pointer to find out their
917 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD);

Completed in 123 milliseconds