| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 113 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 0) { in findDevirtualizableCallsForTypeCheckedLoad() 117 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 1) { in findDevirtualizableCallsForTypeCheckedLoad()
|
| H A D | LazyValueInfo.cpp | 1010 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 0) in solveBlockValueExtractValue() 1175 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 1) in getValueFromConditionImpl()
|
| H A D | ValueTracking.cpp | 1848 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 D | DwarfEHPrepare.cpp | 101 if (SelIVI->getNumIndices() == 1 && *SelIVI->idx_begin() == 1) { in GetExceptionObject() 104 ExcIVI->getNumIndices() == 1 && *ExcIVI->idx_begin() == 0) { in GetExceptionObject()
|
| H A D | SjLjEHPrepare.cpp | 151 if (EVI->getNumIndices() != 1) in substituteLPadValues()
|
| H A D | AtomicExpandPass.cpp | 1384 assert(EV->getNumIndices() == 1 && EV->getIndices()[0] <= 1 && in expandAtomicCmpXchg()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | vscale_gep.ll | 14 ; This test serves to verify code changes for "GEP.getNumIndices() == 1".
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Operator.h | 439 unsigned getNumIndices() const { // Note: always non-negative in getNumIndices() function
|
| H A D | PatternMatch.h | 2416 !(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 D | Instructions.h | 1097 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 D | AMDGPUPerfHintAnalysis.cpp | 166 for (unsigned I = 1, E = GEP->getNumIndices() + 1; I != E; ++I) in isIndirectAccess()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 525 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 D | SCCPSolver.cpp | 861 if (EVI.getNumIndices() != 1) in visitExtractValueInst() 887 if (IVI.getNumIndices() != 1) in visitInsertValueInst()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 1970 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 D | Core.cpp | 3019 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 D | VPlan.h | 1014 IsIndexLoopInvariant(GEP->getNumIndices(), false) {} in VPWidenGEPRecipe() 1021 IsIndexLoopInvariant(GEP->getNumIndices(), false) { in VPWidenGEPRecipe()
|
| H A D | LoadStoreVectorizer.cpp | 476 for (unsigned I = 0, E = GEPA->getNumIndices() - 1; I < E; ++I) { in lookThroughComplexAddresses()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 1235 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 D | Scalarizer.cpp | 685 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 2040 if (NumVarIndices != Src->getNumIndices()) { in visitGEPOfGEP() 2078 Src->getNumIndices() - NumVarIndices)); in visitGEPOfGEP() 2449 if (GEP.getNumIndices() == 1 && !IsGEPSrcEleScalable) { in visitGetElementPtrInst()
|
| H A D | InstCombineLoadStoreAlloca.cpp | 1056 if (!CI || IV->getNumIndices() != 1 || CI->getZExtValue() != *IV->idx_begin()) in likeBitCastFromVector()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 1933 unsigned Num = I.getNumIndices(); in visitExtractValueInst() 1979 unsigned Num = I.getNumIndices(); in visitInsertValueInst()
|
| /llvm-project-15.0.7/llvm/unittests/Frontend/ |
| H A D | OpenMPIRBuilderTest.cpp | 2586 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 D | MVEGatherScatterLowering.cpp | 1190 if (GEP->getNumIndices() != 1 || !isa<Constant>(Offsets)) in foldGEP()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroSplit.cpp | 550 if (!EVI || EVI->getNumIndices() != 1) in replaceRetconOrAsyncSuspendUses()
|