Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DMergeFunctions.cpp181 bool isEquivalentGEP(const GEPOperator *GEP1, const GEPOperator *GEP2);
183 const GetElementPtrInst *GEP2) { in isEquivalentGEP() argument
184 return isEquivalentGEP(cast<GEPOperator>(GEP1), cast<GEPOperator>(GEP2)); in isEquivalentGEP()
346 const GEPOperator *GEP2) { in isEquivalentGEP() argument
349 if (TD && GEP1->hasAllConstantIndices() && GEP2->hasAllConstantIndices()) { in isEquivalentGEP()
351 SmallVector<Value *, 8> Indices2(GEP2->idx_begin(), GEP2->idx_end()); in isEquivalentGEP()
354 uint64_t Offset2 = TD->getIndexedOffset(GEP2->getPointerOperandType(), in isEquivalentGEP()
360 GEP2->getPointerOperand()->getType()) in isEquivalentGEP()
363 if (GEP1->getNumOperands() != GEP2->getNumOperands()) in isEquivalentGEP()
367 if (!enumerate(GEP1->getOperand(i), GEP2->getOperand(i))) in isEquivalentGEP()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dunpack-fca.ll27 ; CHECK-NEXT: [[GEP2:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 1
28 ; CHECK-NEXT: store i64 42, i64* [[GEP2]], align 8
71 ; CHECK-NEXT: [[GEP2:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6…
73 ; CHECK-NEXT: store i8* [[EV2]], i8** [[GEP2]], align 8
97 ; CHECK-NEXT: [[GEP2:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 1
98 ; CHECK-NEXT: [[LOAD2:%[a-z0-9\.]+]] = load i64, i64* [[GEP2]], align 8
153 ; CHECK-NEXT: [[GEP2:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 1
154 ; CHECK-NEXT: store i64 42, i64* [[GEP2]], align 8
166 ; CHECK-NEXT: [[GEP2:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6…
167 ; CHECK-NEXT: [[LOAD2:%[a-z0-9\.]+]] = load i64, i64* [[GEP2]], align 8
Dicmp.ll814 ; CHECK-NEXT: [[GEP2:%.*]] = getelementptr i8, i8* %foo, i64 %j
816 ; CHECK-NEXT: [[CMP:%.*]] = icmp ult i8* [[CAST1]], [[GEP2]]
832 ; CHECK-NEXT: [[GEP2:%.*]] = getelementptr i8, i8 addrspace(1)* %foo, i16 %j
834 ; CHECK-NEXT: [[CMP:%.*]] = icmp ult i8 addrspace(1)* [[CAST1]], [[GEP2]]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp79 GetElementPtrInst *GEP2 = dyn_cast<GetElementPtrInst>(Ptr2); in IsPointerOffset() local
85 if (GEP1 && GEP2 == 0 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset()
90 if (GEP2 && GEP1 == 0 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset()
91 Offset = GetOffsetFromIndex(GEP2, 1, VariableIdxFound, TD); 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()
110 int64_t Offset2 = GetOffsetFromIndex(GEP2, Idx, VariableIdxFound, TD); in IsPointerOffset()
/external/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp822 const GEPOperator *GEP2, in aliasSameBasePointerGEPs() argument
827 GEP2->getPointerOperand()->stripPointerCasts() && in aliasSameBasePointerGEPs()
829 GEP2->getPointerOperand()->getType() && in aliasSameBasePointerGEPs()
835 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs()
848 dyn_cast<ConstantInt>(GEP2->getOperand(GEP2->getNumOperands() - 1)); in aliasSameBasePointerGEPs()
897 if (GEP1->getOperand(i + 1) != GEP2->getOperand(i + 1)) in aliasSameBasePointerGEPs()
911 GEP2->getOperand(GEP2->getNumOperands() - 1), in aliasSameBasePointerGEPs()
1045 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local
1049 isGEPBaseAtNegativeOffset(GEP2, DecompGEP2, DecompGEP1, V1Size)) in aliasGEP()
1088 GEP2->getPointerOperand()->stripPointerCasts() && in aliasGEP()
[all …]
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp84 GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in IsPointerOffset() local
90 if (GEP1 && !GEP2 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset()
95 if (GEP2 && !GEP1 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset()
96 Offset = GetOffsetFromIndex(GEP2, 1, VariableIdxFound, DL); in IsPointerOffset()
105 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in IsPointerOffset()
110 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in IsPointerOffset()
111 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in IsPointerOffset()
115 int64_t Offset2 = GetOffsetFromIndex(GEP2, Idx, VariableIdxFound, DL); in IsPointerOffset()
/external/mesa3d/src/gallium/drivers/radeon/
DR600KernelParameters.cpp268 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/test/Transforms/WholeProgramDevirt/
Dexpand-check.ll49 ; CHECK: [[GEP2:%[^ ]*]] = getelementptr i8, i8* [[VT2:%[^,]*]], i32 1
50 ; CHECK: [[BC2:%[^ ]*]] = bitcast i8* [[GEP2]] to i8**
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1413 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local
1426 GEP2 = RHSGEP; in OptimizePointerDifference()
1442 GEP2 = LHSGEP; in OptimizePointerDifference()
1452 (GEP2 && !GEP2->hasAllConstantIndices() && !GEP2->hasOneUse())) in OptimizePointerDifference()
1460 if (GEP2) { in OptimizePointerDifference()
1461 Value *Offset = EmitGEPOffset(GEP2); in OptimizePointerDifference()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DBasicAliasAnalysis.cpp863 if (const GEPOperator *GEP2 = dyn_cast<GEPOperator>(V2)) { in aliasGEP() local
881 DecomposeGEPExpression(GEP2, GEP2BaseOffset, GEP2VariableIndices, TD); in aliasGEP()