Home
last modified time | relevance | path

Searched refs:idx_begin (Results 1 – 25 of 81) sorted by relevance

1234

/external/swiftshader/third_party/LLVM/include/llvm/
DOperator.h247 inline op_iterator idx_begin() { return op_begin()+1; } in idx_begin() function
248 inline const_op_iterator idx_begin() const { return op_begin()+1; } in idx_begin() function
280 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllZeroIndices()
293 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllConstantIndices()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h455 inline op_iterator idx_begin() { return op_begin()+1; } in idx_begin() function
456 inline const_op_iterator idx_begin() const { return op_begin()+1; } in idx_begin() function
495 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllZeroIndices()
508 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllConstantIndices()
516 return count_if(make_range(idx_begin(), idx_end()), [](const Use& use) { in countNonConstantIndices()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp671 ASSERT_NE(GEPI->idx_begin(), GEPI->idx_end()); in TEST()
672 ASSERT_EQ(GEPI->idx_end(), std::next(GEPI->idx_begin(), 3)); in TEST()
673 EXPECT_EQ(Indices[0], GEPI->idx_begin()[0]); in TEST()
674 EXPECT_EQ(Indices[1], GEPI->idx_begin()[1]); in TEST()
675 EXPECT_EQ(Indices[2], GEPI->idx_begin()[2]); in TEST()
676 EXPECT_EQ(GEPI->idx_begin(), GEPI->indices().begin()); in TEST()
680 ASSERT_NE(CGEPI->idx_begin(), CGEPI->idx_end()); in TEST()
681 ASSERT_EQ(CGEPI->idx_end(), std::next(CGEPI->idx_begin(), 3)); in TEST()
682 EXPECT_EQ(Indices[0], CGEPI->idx_begin()[0]); in TEST()
683 EXPECT_EQ(Indices[1], CGEPI->idx_begin()[1]); in TEST()
[all …]
/external/llvm/include/llvm/IR/
DOperator.h383 inline op_iterator idx_begin() { return op_begin()+1; } in idx_begin() function
384 inline const_op_iterator idx_begin() const { return op_begin()+1; } in idx_begin() function
423 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllZeroIndices()
436 for (const_op_iterator I = idx_begin(), E = idx_end(); I != E; ++I) { in hasAllConstantIndices()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DDwarfEHPrepare.cpp112 if (SelIVI->getNumIndices() == 1 && *SelIVI->idx_begin() == 1) { in GetExceptionObject()
115 ExcIVI->getNumIndices() == 1 && *ExcIVI->idx_begin() == 0) { in GetExceptionObject()
DSjLjEHPrepare.cpp146 if (*EVI->idx_begin() == 0) in substituteLPadValues()
148 else if (*EVI->idx_begin() == 1) in substituteLPadValues()
/external/llvm/lib/CodeGen/
DDwarfEHPrepare.cpp109 if (SelIVI->getNumIndices() == 1 && *SelIVI->idx_begin() == 1) { in GetExceptionObject()
112 ExcIVI->getNumIndices() == 1 && *ExcIVI->idx_begin() == 0) { in GetExceptionObject()
DSjLjEHPrepare.cpp143 if (*EVI->idx_begin() == 0) in substituteLPadValues()
145 else if (*EVI->idx_begin() == 1) in substituteLPadValues()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp895 } else if (isa<Constant>(*GEP.idx_begin()) && in visitGetElementPtrInst()
896 cast<Constant>(*GEP.idx_begin())->isNullValue() && in visitGetElementPtrInst()
900 Indices.append(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
934 SmallVector<Value*, 8> Idx(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1271 Value *V = C->getOperand(*EV.idx_begin()); in visitExtractValueInst()
1284 for (exti = EV.idx_begin(), insi = IV->idx_begin(), in visitExtractValueInst()
1343 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1360 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1369 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
1391 for (ExtractValueInst::idx_iterator I = EV.idx_begin(), E = EV.idx_end(); in visitExtractValueInst()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLoopDependenceAnalysis.cpp258 for(GEPOperator::const_op_iterator aIdx = aGEP->idx_begin(), in analysePair()
260 bIdx = bGEP->idx_begin(), in analysePair()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DEarlyCSE.cpp102 for (ExtractValueInst::idx_iterator I = EVI->idx_begin(), in getHashValue()
106 for (InsertValueInst::idx_iterator I = IVI->idx_begin(), in getHashValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp276 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable()
304 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) { in hasOnlyOneNonZeroIndex()
525 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in allocateCandidatesAndFindBasisForGEP()
DNaryReassociate.cpp301 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable()
373 for (auto Index = GEP->idx_begin(); Index != GEP->idx_end(); ++Index) in tryReassociateGEPAtIndex()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp240 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable()
268 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) { in hasOnlyOneNonZeroIndex()
489 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in allocateCandidatesAndFindBasisForGEP()
DNaryReassociate.cpp305 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable()
375 for (auto Index = GEP->idx_begin(); Index != GEP->idx_end(); ++Index) in tryReassociateGEPAtIndex()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1543 } else if (isa<Constant>(*GEP.idx_begin()) && in visitGetElementPtrInst()
1544 cast<Constant>(*GEP.idx_begin())->isNullValue() && in visitGetElementPtrInst()
1548 Indices.append(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1633 SmallVector<Value*, 8> Idx(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1671 SmallVector<Value*, 8> Idx(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst()
2244 for (exti = EV.idx_begin(), insi = IV->idx_begin(), in visitExtractValueInst()
2303 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2320 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2329 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2352 for (ExtractValueInst::idx_iterator I = EV.idx_begin(), E = EV.idx_end(); in visitExtractValueInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1699 } else if (isa<Constant>(*GEP.idx_begin()) && in visitGetElementPtrInst()
1700 cast<Constant>(*GEP.idx_begin())->isNullValue() && in visitGetElementPtrInst()
1704 Indices.append(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1785 SmallVector<Value*, 8> Idx(GEP.idx_begin()+1, GEP.idx_end()); in visitGetElementPtrInst()
1822 SmallVector<Value*, 8> Idx(GEP.idx_begin(), GEP.idx_end()); in visitGetElementPtrInst()
2413 for (exti = EV.idx_begin(), insi = IV->idx_begin(), in visitExtractValueInst()
2472 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2489 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2498 if (*EV.idx_begin() == 0) { // Normal result. in visitExtractValueInst()
2521 for (ExtractValueInst::idx_iterator I = EV.idx_begin(), E = EV.idx_end(); in visitExtractValueInst()
DInstCombineLoadStoreAlloca.cpp311 Indices.append(GEP->idx_begin(), GEP->idx_end()); in replace()
908 SmallVector<Value *, 4> Ops(GEPI->idx_begin(), GEPI->idx_begin() + Idx); in canReplaceGEPIdxWithZero()
1126 if (!CI || IV->getNumIndices() != 1 || CI->getZExtValue() != *IV->idx_begin()) in likeBitCastFromVector()
/external/llvm/lib/Target/NVPTX/
DNVPTXFavorNonGenericAddrSpaces.cpp159 SmallVector<Value *, 8> Indices(GEP->idx_begin(), GEP->idx_end()); in hoistAddrSpaceCastFromGEP()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DArgumentPromotion.cpp357 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in isSafeToPromoteArgument()
403 for (User::op_iterator i = GEP->idx_begin(), e = GEP->idx_end(); in isSafeToPromoteArgument()
841 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in DoPromotion()
DIPConstantPropagation.cpp259 index = *EV->idx_begin(); in PropagateConstantReturn()
/external/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp230 index = *EV->idx_begin(); in PropagateConstantReturn()
DArgumentPromotion.cpp507 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in isSafeToPromoteArgument()
552 for (User::op_iterator i = GEP->idx_begin(), e = GEP->idx_end(); in isSafeToPromoteArgument()
986 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in DoPromotion()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp435 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in doPromotion()
613 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in isSafeToPromoteArgument()
659 for (User::op_iterator i = GEP->idx_begin(), e = GEP->idx_end(); i != e; in isSafeToPromoteArgument()
DIPConstantPropagation.cpp236 index = *EV->idx_begin(); in PropagateConstantReturn()

1234