Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/GlobalISel/
Dirtranslator-amdgpu_kernel.ll14 ; HSA-VI: [[GEP1:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C1]](s64)
15 …; HSA-VI: [[LOAD1:%[0-9]+]]:_(s8) = G_LOAD [[GEP1]](p4) :: (non-temporal invariant load 1 from `…
33 ; HSA-VI: [[GEP1:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C1]](s64)
34 …; HSA-VI: [[LOAD1:%[0-9]+]]:_(s8) = G_LOAD [[GEP1]](p4) :: (non-temporal invariant load 1 from `…
52 ; HSA-VI: [[GEP1:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C1]](s64)
53 …; HSA-VI: [[LOAD1:%[0-9]+]]:_(s8) = G_LOAD [[GEP1]](p4) :: (non-temporal invariant load 1 from `…
71 ; HSA-VI: [[GEP1:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C1]](s64)
72 …; HSA-VI: [[LOAD1:%[0-9]+]]:_(s16) = G_LOAD [[GEP1]](p4) :: (non-temporal invariant load 2 from …
90 ; HSA-VI: [[GEP1:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C1]](s64)
91 …; HSA-VI: [[LOAD1:%[0-9]+]]:_(s16) = G_LOAD [[GEP1]](p4) :: (non-temporal invariant load 2 from …
[all …]
/external/swiftshader/third_party/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/Analysis/
DBasicAliasAnalysis.cpp820 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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dselect-gep.ll79 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds [4 x i32], [4 x i32]* [[P:%.*]], i64 2, i64 …
82 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[CMP]], i32* [[GEP1]], i32* [[GEP2]]
94 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds [4 x i32], [4 x i32]* [[P:%.*]], i64 [[X:%.*…
97 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[CMP]], i32* [[GEP1]], i32* [[GEP2]]
109 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i32, i32* [[P:%.*]], i64 [[X:%.*]]
112 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[CMP]], i32* [[GEP1]], i32* [[GEP2]]
126 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i32, i32* [[P:%.*]], i64 [[X:%.*]]
129 ; CHECK-NEXT: [[SELECT:%.*]] = select i1 [[CMP]], i32* [[GEP1]], i32* [[GEP2]]
Dunpack-fca.ll25 ; 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
76 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6…
78 ; CHECK-NEXT: store i64 [[EV1]], i64* [[GEP1]], align 8
103 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 0
104 ; CHECK-NEXT: [[LOAD1:%[a-z0-9\.]+]] = load i8*, i8** [[GEP1]], align 8
160 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds %B, %B* %b.ptr, i64 0, i32 0
161 ; CHECK-NEXT: store i8* null, i8** [[GEP1]], align 8
172 ; CHECK-NEXT: [[GEP1:%[a-z0-9\.]+]] = getelementptr inbounds [2 x %B], [2 x %B]* %ab.ptr, i64 0, i6…
173 ; CHECK-NEXT: [[LOAD1:%[a-z0-9\.]+]] = load i8*, i8** [[GEP1]], align 8
Dicmp-custom-dl.ll10 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i8, i8* [[FOO:%.*]], i32 8
11 ; CHECK-NEXT: [[TMP1:%.*]] = ptrtoint i8* [[GEP1]] to i32
28 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i8, i8 addrspace(1)* [[FOO:%.*]], i16 8
29 ; CHECK-NEXT: [[TMP1:%.*]] = ptrtoint i8 addrspace(1)* [[GEP1]] to i16
128 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr i32, i32* [[BIT]], i32 [[TMP1]]
131 ; CHECK-NEXT: [[CAST1:%.*]] = bitcast i32* [[GEP1]] to i8*
147 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr i32, i32 addrspace(1)* [[BIT]], i16 [[I:%.*]]
149 ; CHECK-NEXT: [[CAST1:%.*]] = bitcast i32 addrspace(1)* [[GEP1]] to i8 addrspace(1)*
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp1003 static AliasResult aliasSameBasePointerGEPs(const GEPOperator *GEP1, in aliasSameBasePointerGEPs() argument
1008 assert(GEP1->getPointerOperand()->stripPointerCastsAndInvariantGroups() == in aliasSameBasePointerGEPs()
1010 GEP1->getPointerOperandType() == GEP2->getPointerOperandType() && in aliasSameBasePointerGEPs()
1016 if (GEP1->getNumIndices() != GEP2->getNumIndices() || in aliasSameBasePointerGEPs()
1017 GEP1->getNumIndices() < 2) in aliasSameBasePointerGEPs()
1027 dyn_cast<ConstantInt>(GEP1->getOperand(GEP1->getNumOperands() - 1)); in aliasSameBasePointerGEPs()
1044 assert(GEP1->getNumIndices() > 1 && "Not enough GEP indices to examine"); in aliasSameBasePointerGEPs()
1045 IntermediateIndices.push_back(GEP1->getOperand(1)); in aliasSameBasePointerGEPs()
1049 for (unsigned i = 1, e = GEP1->getNumIndices() - 1; i != e; ++i) { in aliasSameBasePointerGEPs()
1051 GEP1->getSourceElementType(), IntermediateIndices))) in aliasSameBasePointerGEPs()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dunpack-fca.ll25 ; 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
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/GlobalISel/
Dlegalize-load-store.mir67 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP %0, [[OFFSET1]](s64)
68 ; CHECK: [[LOAD1:%[0-9]+]]:_(s64) = G_LOAD [[GEP1]](p0) :: (load 8 from %ir.addr + 8)
125 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP %0, [[OFFSET1]](s64)
126 ; CHECK: G_STORE %6(s64), [[GEP1]](p0) :: (store 8 into %ir.addr + 8)
Dtranslate-gep.ll90 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[GEP]], [[MUL]](s64)
91 ; CHECK: [[COPY2:%[0-9]+]]:_(p0) = COPY [[GEP1]](p0)
109 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[GEP]], [[C1]](s64)
110 ; CHECK: $x0 = COPY [[GEP1]](p0)
Dlegalize-vaarg.mir22 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[LOAD1]], [[C1]](s64)
23 ; CHECK: G_STORE [[GEP1]](p0), [[COPY]](p0) :: (store 8)
Dcall-translator.ll78 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[ADDR]], [[CST1]](s64)
79 ; CHECK: G_STORE [[EXTA1]](s64), [[GEP1]](p0) :: (store 8 into %ir.addr + 8)
95 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[ADDR]], [[CST1]](s64)
96 ; CHECK: [[LD2:%[0-9]+]]:_(s64) = G_LOAD [[GEP1]](p0) :: (load 8 from %ir.addr + 8)
123 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP %0, [[CST1]](s64)
124 ; CHECK: [[LD2:%[0-9]+]]:_(s64) = G_LOAD [[GEP1]](p0) :: (load 8 from %ir.addr + 8)
/external/swiftshader/third_party/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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SLPVectorizer/X86/
DPR36280.ll6 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr float, float* [[P:%.*]], i64 1
8 ; CHECK-NEXT: [[P1:%.*]] = load float, float* [[GEP1]]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SLPVectorizer/AArch64/
Dext-trunc.ll21 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i64, i64* [[P]], i64 [[S1]]
22 ; CHECK-NEXT: [[LOAD1:%.*]] = load i64, i64* [[GEP1]]
74 ; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i64, i64* [[P]], i64 [[TMP7]]
75 ; CHECK-NEXT: [[LOAD1:%.*]] = load i64, i64* [[GEP1]]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp118 GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in IsPointerOffset() local
125 if (GEP1 && !GEP2 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset()
126 Offset = -GetOffsetFromIndex(GEP1, 1, VariableIdxFound, DL); in IsPointerOffset()
130 if (GEP2 && !GEP1 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset()
140 if (!GEP1 || !GEP2 || GEP1->getOperand(0) != GEP2->getOperand(0)) in IsPointerOffset()
145 for (; Idx != GEP1->getNumOperands() && Idx != GEP2->getNumOperands(); ++Idx) in IsPointerOffset()
146 if (GEP1->getOperand(Idx) != GEP2->getOperand(Idx)) in IsPointerOffset()
149 int64_t Offset1 = GetOffsetFromIndex(GEP1, Idx, VariableIdxFound, DL); in IsPointerOffset()
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp83 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/swiftshader/third_party/llvm-7.0/llvm/test/Instrumentation/AddressSanitizer/
Dasan-masked-load-store.ll29 ; STORE: [[GEP1:%[0-9A-Za-z]+]] = getelementptr <4 x float>, <4 x float>* %p, i64 0, i64 1
30 ; STORE: [[PGEP1:%[0-9A-Za-z]+]] = ptrtoint float* [[GEP1]] to i64
88 ; STORE: [[GEP1:%[0-9A-Za-z]+]] = getelementptr <4 x float>, <4 x float>* %p, i64 0, i64 1
89 ; STORE: [[PGEP1:%[0-9A-Za-z]+]] = ptrtoint float* [[GEP1]] to i64
126 ; STORE: [[GEP1:%[0-9A-Za-z]+]] = getelementptr <4 x float>, <4 x float>* %p, i64 0, i64 2
127 ; STORE: [[PGEP1:%[0-9A-Za-z]+]] = ptrtoint float* [[GEP1]] to i64
160 ; LOAD: [[GEP1:%[0-9A-Za-z]+]] = getelementptr <8 x i32>, <8 x i32>* %p, i64 0, i64 1
161 ; LOAD: [[PGEP1:%[0-9A-Za-z]+]] = ptrtoint i32* [[GEP1]] to i64
216 ; LOAD: [[GEP1:%[0-9A-Za-z]+]] = getelementptr <4 x float>, <4 x float>* %p, i64 0, i64 1
217 ; LOAD: [[PGEP1:%[0-9A-Za-z]+]] = ptrtoint float* [[GEP1]] to i64
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/Inline/
Dinalloca-not-static.ll60 ; CHECK: %[[GEP1:.*]] = getelementptr inbounds <{ %struct.Foo }>, <{ %struct.Foo }>* %[[ARGMEM]],…
61 …ECK: %[[CALL:.*]] = call x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE@XZ"(%struct.Foo* %[[GEP1]])
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
DmemcmpIR.ll20 ; CHECK: [[GEP1:%[0-9]+]] = getelementptr i64, i64* {{.*}}, i64 1
22 ; CHECK-NEXT: [[LOAD1:%[0-9]+]] = load i64, i64* [[GEP1]]
41 ; CHECK-BE: [[GEP1:%[0-9]+]] = getelementptr i64, i64* {{.*}}, i64 1
43 ; CHECK-BE-NEXT: [[LOAD1:%[0-9]+]] = load i64, i64* [[GEP1]]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/GlobalISel/
Dlegalize-memop-scalar.mir105 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C1]](s32)
106 ; X32: G_STORE [[LOAD1]](s32), [[GEP1]](p0) :: (store 4)
Dirtranslator-callingconv.ll367 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s32)
368 ; X32: G_STORE [[LOAD]](s32), [[GEP1]](p0) :: (store 4 into stack + 4, align 0)
400 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s32)
401 ; X32: G_STORE [[LOAD]](s32), [[GEP1]](p0) :: (store 4 into stack + 4, align 0)
446 ; X64: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY2]], [[C1]](s64)
447 ; X64: G_STORE [[COPY]](s32), [[GEP1]](p0) :: (store 4 into stack + 8, align 0)
581 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s32)
583 ; X32: G_STORE [[SEXT]](s32), [[GEP1]](p0) :: (store 4 into stack, align 0)
640 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[COPY1]], [[C1]](s32)
641 ; X32: G_STORE [[LOAD3]](s32), [[GEP1]](p0) :: (store 4 into stack + 4, align 0)
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/WholeProgramDevirt/
Dimport.ll37 …; VCP-X86: [[GEP1:%.*]] = getelementptr i8, i8* [[VT1]], i32 ptrtoint (i8* @__typeid_typeid1_0_1_b…
38 ; VCP-ARM: [[GEP1:%.*]] = getelementptr i8, i8* [[VT1]], i32 42
39 ; VCP: [[BC1:%.*]] = bitcast i8* [[GEP1]] to i32*
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1496 GEPOperator *GEP1 = nullptr, *GEP2 = nullptr; in OptimizePointerDifference() local
1503 GEP1 = LHSGEP; in OptimizePointerDifference()
1510 GEP1 = LHSGEP; in OptimizePointerDifference()
1519 GEP1 = RHSGEP; in OptimizePointerDifference()
1526 GEP1 = RHSGEP; in OptimizePointerDifference()
1532 if (!GEP1) in OptimizePointerDifference()
1548 unsigned NumNonConstantIndices1 = GEP1->countNonConstantIndices(); in OptimizePointerDifference()
1551 ((NumNonConstantIndices1 > 0 && !GEP1->hasOneUse()) || in OptimizePointerDifference()
1558 Value *Result = EmitGEPOffset(GEP1); in OptimizePointerDifference()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1413 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()

12