Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DOperator.cpp22 Type *GEPOperator::getSourceElementType() const { in getSourceElementType() function in llvm::GEPOperator
24 return I->getSourceElementType(); in getSourceElementType()
25 return cast<GetElementPtrConstantExpr>(this)->getSourceElementType(); in getSourceElementType()
68 return GEPOperator::accumulateConstantOffset(getSourceElementType(), Index, in accumulateConstantOffset()
H A DReplaceConstant.cpp30 Builder.CreateInBoundsGEP(cast<GEPOperator>(CE)->getSourceElementType(), in createReplacementInstr()
H A DConstantsContext.h298 Type *getSourceElementType() const;
535 return GEPCE->getSourceElementType();
H A DConstants.cpp1570 SrcTy ? SrcTy : GEPO->getSourceElementType(), Ops[0], Ops.slice(1), in getWithOperands()
2884 Type *GetElementPtrConstantExpr::getSourceElementType() const { in getSourceElementType() function in GetElementPtrConstantExpr
3519 return GetElementPtrInst::CreateInBounds(GO->getSourceElementType(), in getAsInstruction()
3521 return GetElementPtrInst::Create(GO->getSourceElementType(), Ops[0], in getAsInstruction()
H A DConstantFold.cpp684 Type *Ty = GEPO->getSourceElementType(); in ConstantFoldCastInstruction()
2495 cast<GEPOperator>(CE)->getSourceElementType(), CE->getOperand(0), in ConstantFoldGetElementPtr()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h142 GEPOp->getSourceElementType(), in gep_type_begin()
153 GEPOp.getSourceElementType(), in gep_type_begin()
H A DOperator.h505 Type *getSourceElementType() const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp288 cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr()
292 cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DPHITransAddr.cpp229 if (Value *V = SimplifyGEPInst(GEP->getSourceElementType(), in PHITranslateSubExpr()
407 GEP->getSourceElementType(), GEPOps[0], makeArrayRef(GEPOps).slice(1), in InsertPHITranslatedSubExpr()
H A DTypeMetadataUtils.cpp67 GEP->getSourceElementType(), Indices); in findLoadCallsAtConstantOffset()
H A DConstantFolding.cpp862 Type *SrcElemTy = GEP->getSourceElementType(); in SymbolicallyEvaluateGEP()
926 SrcElemTy = GEP->getSourceElementType(); in SymbolicallyEvaluateGEP()
1022 if (SrcElemTy == InnermostGEP->getSourceElementType() && in SymbolicallyEvaluateGEP()
1068 return ConstantExpr::getGetElementPtr(GEP->getSourceElementType(), Ops[0], in ConstantFoldInstOperandsImpl()
H A DBasicAliasAnalysis.cpp488 if (!GEPOp->getSourceElementType()->isSized()) { in DecomposeGEPExpression()
495 if (isa<ScalableVectorType>(GEPOp->getSourceElementType())) { in DecomposeGEPExpression()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp169 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in doPromotion()
639 if (!UpdateBaseTy(GEP->getSourceElementType())) in isSafeToPromoteArgument()
681 if (!UpdateBaseTy(GEP->getSourceElementType())) in isSafeToPromoteArgument()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp709 cmpTypes(GEPL->getSourceElementType(), GEPR->getSourceElementType())) in cmpGEPs()
H A DValueMapper.cpp505 NewSrcTy = TypeMapper->remapType(GEPO->getSourceElementType()); in mapValue()
964 TypeMapper->remapType(GEP->getSourceElementType())); in remapInstruction()
H A DEvaluator.cpp436 ConstantExpr::getGetElementPtr(GEP->getSourceElementType(), P, GEPOps, in EvaluateBlock()
H A DSCCPSolver.cpp1045 ConstantExpr::getGetElementPtr(I.getSourceElementType(), Ptr, Indices); in visitGetElementPtrInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1845 Type *Ty = GEP.getSourceElementType(); in foldSelectGEP()
1856 Type *GEPEltType = GEP.getSourceElementType(); in visitGetElementPtrInst()
1987 CurTy = Op1->getSourceElementType(); in visitGetElementPtrInst()
2145 Src->getSourceElementType(), Src->getOperand(0), Indices, in visitGetElementPtrInst()
2147 : GetElementPtrInst::Create(Src->getSourceElementType(), in visitGetElementPtrInst()
2495 GEP.getSourceElementType(), PtrOp, makeArrayRef(Ops).slice(1), in visitGetElementPtrInst()
H A DInstCombineLoadStoreAlloca.cpp850 Type *SourceElementType = GEPI->getSourceElementType(); in canReplaceGEPIdxWithZero()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp327 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable()
H A DStraightLineStrengthReduce.cpp289 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable()
H A DInferAddressSpaces.cpp608 GEP->getSourceElementType(), NewPointerOperands[0], in cloneInstructionWithNewAddressSpace()
H A DScalarizer.cpp666 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices, in visitGetElementPtrInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp1019 DL.getIndexedOffsetInType(GEP.getSourceElementType(), Indices); in computePolynomialFromPointer()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h965 return TargetTTI->getGEPCost(GEP->getSourceElementType(), in getUserCost()

12