Home
last modified time | relevance | path

Searched refs:GEPTy (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFASpaceCastSimplifyPass.cpp59 auto *GEPTy = cast<PointerType>(GEP->getType()); in rewrite() local
60 NewGEP->mutateType(changeAddressSpace(GEPTy, AS)); in rewrite()
H A DBPFCheckAndAdjustIR.cpp440 auto *GEPTy = cast<PointerType>(GEP->getType()); in aspaceWrapValue() local
443 NewGEP->mutateType(GEPTy->getPointerTo(0)); in aspaceWrapValue()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp1344 Type *GEPTy = GetElementPtrInst::getGEPReturnType( in ConstantFoldGetElementPtr() local
1348 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()
1351 return UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
1364 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr()
1366 cast<VectorType>(GEPTy)->getElementCount(), C) in ConstantFoldGetElementPtr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4992 Type *GEPTy = Ptr->getType(); in simplifyGEPInst() local
4993 if (!GEPTy->isVectorTy()) { in simplifyGEPInst()
4998 GEPTy = VectorType::get(GEPTy, VT->getElementCount()); in simplifyGEPInst()
5005 if (Ptr->getType() == GEPTy && in simplifyGEPInst()
5013 return PoisonValue::get(GEPTy); in simplifyGEPInst()
5017 return UndefValue::get(GEPTy); in simplifyGEPInst()
5031 if (TyAllocSize == 0 && Ptr->getType() == GEPTy) in simplifyGEPInst()
5038 auto CanSimplify = [GEPTy, &P, Ptr]() -> bool { in simplifyGEPInst()
5039 return P->getType() == GEPTy && in simplifyGEPInst()
5086 auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset); in simplifyGEPInst()
[all …]