/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 181 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/Analysis/ |
D | BasicAliasAnalysis.cpp | 820 static AliasResult aliasSameBasePointerGEPs(const GEPOperator *GEP1, in aliasSameBasePointerGEPs() argument 826 assert(GEP1->getPointerOperand()->stripPointerCasts() == in aliasSameBasePointerGEPs() 828 GEP1->getPointerOperand()->getType() == in aliasSameBasePointerGEPs() 835 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs() 836 GEP1->getNumIndices() < 2) in aliasSameBasePointerGEPs() 846 dyn_cast<ConstantInt>(GEP1->getOperand(GEP1->getNumOperands() - 1)); in aliasSameBasePointerGEPs() 863 assert(GEP1->getNumIndices() > 1 && "Not enough GEP indices to examine"); in aliasSameBasePointerGEPs() 864 IntermediateIndices.push_back(GEP1->getOperand(1)); in aliasSameBasePointerGEPs() 868 for (unsigned i = 1, e = GEP1->getNumIndices() - 1; i != e; ++i) { in aliasSameBasePointerGEPs() 870 GEP1->getSourceElementType(), IntermediateIndices))) in aliasSameBasePointerGEPs() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | unpack-fca.ll | 25 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 0 26 ; CHECK-NEXT: store i8* null, i8** [[GEP1]], align 8 67 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6… 69 ; CHECK-NEXT: store i64 [[EV1]], i64* [[GEP1]], align 8 94 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 0 95 ; CHECK-NEXT: [[LOAD1:%[a-z0-9\.]+]] = load i8*, i8** [[GEP1]], align 8 151 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 0 152 ; CHECK-NEXT: store i8* null, i8** [[GEP1]], align 8 163 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6… 164 ; CHECK-NEXT: [[LOAD1:%[a-z0-9\.]+]] = load i8*, i8** [[GEP1]], align 8
|
D | icmp.ll | 701 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i8, i8* %foo, i64 8 702 ; CHECK-NEXT: [[USE:%.*]] = ptrtoint i8* [[GEP1]] to i64 718 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i8, i8 addrspace(1)* %foo, i16 8 719 ; CHECK-NEXT: [[TMP1:%.*]] = ptrtoint i8 addrspace(1)* [[GEP1]] to i16 813 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr i32, i32* [[BIT]], i64 %i 815 ; CHECK-NEXT: [[CAST1:%.*]] = bitcast i32* [[GEP1]] to i8* 831 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr i32, i32 addrspace(1)* [[BIT]], i16 %i 833 ; CHECK-NEXT: [[CAST1:%.*]] = bitcast i32 addrspace(1)* [[GEP1]] to i8 addrspace(1)*
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 78 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/Scalar/ |
D | MemCpyOptimizer.cpp | 83 GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in IsPointerOffset() local 90 if (GEP1 && !GEP2 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset() 91 Offset = -GetOffsetFromIndex(GEP1, 1, VariableIdxFound, DL); in IsPointerOffset() 95 if (GEP2 && !GEP1 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { 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() 114 int64_t Offset1 = GetOffsetFromIndex(GEP1, Idx, VariableIdxFound, DL); in IsPointerOffset()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1413 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local 1420 GEP1 = LHSGEP; in OptimizePointerDifference() 1427 GEP1 = LHSGEP; in OptimizePointerDifference() 1436 GEP1 = RHSGEP; in OptimizePointerDifference() 1443 GEP1 = RHSGEP; in OptimizePointerDifference() 1451 if (!GEP1 || in OptimizePointerDifference() 1456 Value *Result = EmitGEPOffset(GEP1); in OptimizePointerDifference()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 853 BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size, in aliasGEP() argument 876 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP() 917 DecomposeGEPExpression(GEP1, GEP1BaseOffset, GEP1VariableIndices, TD); in aliasGEP()
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | amdgpu.private-memory.ll | 57 ; HSAOPT: [[GEP1:%[0-9]+]] = getelementptr inbounds i32, i32 addrspace(2)* [[CAST_DISPATCH_PTR]], i… 58 ; HSAOPT: [[LDZU:%[0-9]+]] = load i32, i32 addrspace(2)* [[GEP1]], align 4, !range !1, !invariant.l…
|