Home
last modified time | relevance | path

Searched refs:getNumIndices (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp113 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 0) { in findDevirtualizableCallsForTypeCheckedLoad()
117 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 1) { in findDevirtualizableCallsForTypeCheckedLoad()
H A DLazyValueInfo.cpp1010 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 0) in solveBlockValueExtractValue()
1175 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 1) in getValueFromConditionImpl()
H A DValueTracking.cpp1848 if (EVI->getNumIndices() != 1) break; in computeKnownBitsFromOperator()
4149 unsigned size = I->getNumIndices() + idx_range.size(); in FindInsertedValue()
5054 assert(EVI->getNumIndices() == 1 && "Obvious from CI's type"); in isOverflowIntrinsicNoWrap()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DDwarfEHPrepare.cpp101 if (SelIVI->getNumIndices() == 1 && *SelIVI->idx_begin() == 1) { in GetExceptionObject()
104 ExcIVI->getNumIndices() == 1 && *ExcIVI->idx_begin() == 0) { in GetExceptionObject()
H A DSjLjEHPrepare.cpp151 if (EVI->getNumIndices() != 1) in substituteLPadValues()
H A DAtomicExpandPass.cpp1384 assert(EV->getNumIndices() == 1 && EV->getIndices()[0] <= 1 && in expandAtomicCmpXchg()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dvscale_gep.ll14 ; This test serves to verify code changes for "GEP.getNumIndices() == 1".
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h439 unsigned getNumIndices() const { // Note: always non-negative in getNumIndices() function
H A DPatternMatch.h2416 !(I->getNumIndices() == 1 && I->getIndices()[0] == (unsigned)Ind))
2448 I->getNumIndices() == 1 && Ind == I->getIndices()[0];
2477 if (GEP->getNumIndices() == 1 && isa<ScalableVectorType>(DerefTy) &&
H A DInstructions.h1097 unsigned getNumIndices() const { // Note: always non-negative
2480 unsigned getNumIndices() const {
2610 unsigned getNumIndices() const {
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp166 for (unsigned I = 1, E = GEP->getNumIndices() + 1; I != E; ++I) in isIndirectAccess()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DInstructionsTest.cpp525 EXPECT_EQ(GepII0->getNumIndices(), 1u); in TEST()
526 EXPECT_EQ(GepII1->getNumIndices(), 1u); in TEST()
527 EXPECT_EQ(GepII2->getNumIndices(), 1u); in TEST()
528 EXPECT_EQ(GepII3->getNumIndices(), 1u); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp861 if (EVI.getNumIndices() != 1) in visitExtractValueInst()
887 if (IVI.getNumIndices() != 1) in visitInsertValueInst()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp1970 NewIndices.reserve(Idxs.size() + GEP->getNumIndices()); in foldGEPOfGEP()
1999 NewIndices.reserve(Idxs.size() + GEP->getNumIndices()); in foldGEPOfGEP()
2023 if (IRIndex && *IRIndex == GEP->getNumIndices() - 1) in foldGEPOfGEP()
H A DCore.cpp3019 return GEP->getNumIndices(); in LLVMGetNumIndices()
3021 return EV->getNumIndices(); in LLVMGetNumIndices()
3023 return IV->getNumIndices(); in LLVMGetNumIndices()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlan.h1014 IsIndexLoopInvariant(GEP->getNumIndices(), false) {} in VPWidenGEPRecipe()
1021 IsIndexLoopInvariant(GEP->getNumIndices(), false) { in VPWidenGEPRecipe()
H A DLoadStoreVectorizer.cpp476 for (unsigned I = 0, E = GEPA->getNumIndices() - 1; I < E; ++I) { in lookThroughComplexAddresses()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp1235 AggregateValueExpression(I->getNumOperands(), II->getNumIndices()); in createAggregateValueExpression()
1242 AggregateValueExpression(I->getNumOperands(), EI->getNumIndices()); in createAggregateValueExpression()
1814 if (WO && EI->getNumIndices() == 1 && *EI->idx_begin() == 0) in performSymbolicAggrValueEvaluation()
H A DScalarizer.cpp685 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2040 if (NumVarIndices != Src->getNumIndices()) { in visitGEPOfGEP()
2078 Src->getNumIndices() - NumVarIndices)); in visitGEPOfGEP()
2449 if (GEP.getNumIndices() == 1 && !IsGEPSrcEleScalable) { in visitGetElementPtrInst()
H A DInstCombineLoadStoreAlloca.cpp1056 if (!CI || IV->getNumIndices() != 1 || CI->getZExtValue() != *IV->idx_begin()) in likeBitCastFromVector()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1933 unsigned Num = I.getNumIndices(); in visitExtractValueInst()
1979 unsigned Num = I.getNumIndices(); in visitInsertValueInst()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp2586 EXPECT_EQ(DependAddrGEPIter->getNumIndices(), (unsigned)2); in TEST_F()
2606 EXPECT_EQ(DependBaseAddrGEP->getNumIndices(), (unsigned)2); in TEST_F()
2671 EXPECT_EQ(DependAddrGEPIter->getNumIndices(), (unsigned)2); in TEST_F()
2691 EXPECT_EQ(DependBaseAddrGEP->getNumIndices(), (unsigned)2); in TEST_F()
3868 if (GEP->getNumIndices() != 2) in findGEPZeroOne()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp1190 if (GEP->getNumIndices() != 1 || !isa<Constant>(Offsets)) in foldGEP()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp550 if (!EVI || EVI->getNumIndices() != 1) in replaceRetconOrAsyncSuspendUses()

12