Home
last modified time | relevance | path

Searched refs:getSourceElementType (Results 1 – 25 of 65) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/IR/
H A DOperator.cpp47 Type *GEPOperator::getSourceElementType() const { in getSourceElementType() function in llvm::GEPOperator
49 return I->getSourceElementType(); in getSourceElementType()
50 return cast<GetElementPtrConstantExpr>(this)->getSourceElementType(); in getSourceElementType()
93 return GEPOperator::accumulateConstantOffset(getSourceElementType(), Index, in accumulateConstantOffset()
H A DTypeFinder.cpp80 incorporateType(GEP->getSourceElementType()); in run()
156 incorporateType(GEP->getSourceElementType()); in incorporateValue()
H A DConstantsContext.h231 Type *getSourceElementType() const;
450 return GEPCE->getSourceElementType();
H A DInstruction.cpp496 return GEP->getSourceElementType() == in haveSameSpecialState()
497 cast<GetElementPtrInst>(I2)->getSourceElementType(); in haveSameSpecialState()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h126 GEPOp->getSourceElementType(), in gep_type_begin()
137 GEPOp.getSourceElementType(), in gep_type_begin()
H A DOperator.h431 Type *getSourceElementType() const;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DPHITransAddr.cpp229 if (Value *V = simplifyGEPInst(GEP->getSourceElementType(), GEPOps[0], in PHITranslateSubExpr()
243 GEPI->getSourceElementType() == GEP->getSourceElementType() && in PHITranslateSubExpr()
409 GEP->getSourceElementType(), GEPOps[0], makeArrayRef(GEPOps).slice(1), in InsertPHITranslatedSubExpr()
H A DTypeMetadataUtils.cpp66 GEP->getSourceElementType(), Indices); in findLoadCallsAtConstantOffset()
H A DDelinearization.cpp498 Ty = GEP->getSourceElementType(); in getIndexExpressionsFromGEP()
H A DConstantFolding.cpp885 Type *SrcElemTy = GEP->getSourceElementType(); in SymbolicallyEvaluateGEP()
931 SrcElemTy = GEP->getSourceElementType(); in SymbolicallyEvaluateGEP()
997 if (SrcElemTy == InnermostGEP->getSourceElementType() && in SymbolicallyEvaluateGEP()
1060 return ConstantExpr::getGetElementPtr(GEP->getSourceElementType(), Ops[0], in ConstantFoldInstOperandsImpl()
1440 GEP->getSourceElementType()->isIntegerTy(8)) { in ConstantFoldCastOperand()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DPointerTypeAnalysis.cpp40 NewPointeeTy = Inst->getSourceElementType(); in classifyPointerType()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1965 Type *Ty = GEP.getSourceElementType(); in foldSelectGEP()
1979 if (Src->getResultElementType() == GEP.getSourceElementType() && in visitGEPOfGEP()
2000 Value *NewSrc = Builder.CreateGEP(GEP.getSourceElementType(), in visitGEPOfGEP()
2004 GEP.getSourceElementType(), NewSrc, {SO1}); in visitGEPOfGEP()
2092 : GetElementPtrInst::Create(Src->getSourceElementType(), in visitGEPOfGEP()
2097 if (Src->getResultElementType() != GEP.getSourceElementType()) in visitGEPOfGEP()
2152 : GetElementPtrInst::Create(Src->getSourceElementType(), in visitGEPOfGEP()
2168 Type *GEPEltType = GEP.getSourceElementType(); in visitGEPOfBitcast()
2268 Type *GEPEltType = GEP.getSourceElementType(); in visitGetElementPtrInst()
2356 Op1->getSourceElementType() != Op2->getSourceElementType()) in visitGetElementPtrInst()
[all …]
H A DInstCombinePHI.cpp515 GEP->getSourceElementType() != FirstInst->getSourceElementType() || in foldPHIArgGEPIntoPHI()
600 GetElementPtrInst::Create(FirstInst->getSourceElementType(), Base, in foldPHIArgGEPIntoPHI()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp39 GV.getValueType() != GEP->getSourceElementType()) in shouldConvertToRelLookupTable()
H A DFunctionComparator.cpp715 cmpTypes(GEPL->getSourceElementType(), GEPR->getSourceElementType())) in cmpGEPs()
H A DValueMapper.cpp516 NewSrcTy = TypeMapper->remapType(GEPO->getSourceElementType()); in mapValue()
983 TypeMapper->remapType(GEP->getSourceElementType())); in remapInstruction()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp275 return Builder.CreateGEP(cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr()
H A DNVPTXLowerArgs.cpp181 auto *NewGEP = GetElementPtrInst::Create(GEP->getSourceElementType(), in convertToParamAS()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp436 EnumerateType(GEP->getSourceElementType()); in ValueEnumerator()
905 EnumerateType(GEP->getSourceElementType()); in EnumerateValue()
988 EnumerateType(cast<GEPOperator>(CE)->getSourceElementType()); in EnumerateOperandType()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp474 EnumerateType(GEP->getSourceElementType()); in ValueEnumerator()
910 EnumerateType(GEP->getSourceElementType()); in EnumerateValue()
992 EnumerateType(cast<GEPOperator>(CE)->getSourceElementType()); in EnumerateOperandType()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp234 computeScale(GEP->getSourceElementType()->getPrimitiveSizeInBits(), in decomposePtr()
1187 Scale = DL->getTypeAllocSize(GEP->getSourceElementType()); in foldGEP()
1199 DL->getTypeAllocSize(GEP->getSourceElementType()), Builder); in foldGEP()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp644 GEP->getSourceElementType(), NewPointerOperands[0], in cloneInstructionWithNewAddressSpace()
750 cast<GEPOperator>(CE)->getSourceElementType()); in cloneConstantExprWithNewAddressSpace()
H A DNaryReassociate.cpp331 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp395 Type *SourceTy = GEP->getSourceElementType(); in determineBaseAndStride()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp361 N->PTy = GepI->getSourceElementType(); in processGepInst()
385 Type *PtrTy = GepI->getSourceElementType(); in processGepInst()

123