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.cpp437 auto *GEPTy = cast<PointerType>(GEP->getType()); in aspaceWrapValue() local
440 NewGEP->mutateType(PointerType::getUnqual(GEPTy->getContext())); in aspaceWrapValue()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp1320 Type *GEPTy = GetElementPtrInst::getGEPReturnType( in ConstantFoldGetElementPtr() local
1324 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()
1327 return UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
1340 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr()
1342 cast<VectorType>(GEPTy)->getElementCount(), C) in ConstantFoldGetElementPtr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5018 Type *GEPTy = Ptr->getType(); in simplifyGEPInst() local
5019 if (!GEPTy->isVectorTy()) { in simplifyGEPInst()
5024 GEPTy = VectorType::get(GEPTy, VT->getElementCount()); in simplifyGEPInst()
5031 if (Ptr->getType() == GEPTy && in simplifyGEPInst()
5039 return PoisonValue::get(GEPTy); in simplifyGEPInst()
5043 return UndefValue::get(GEPTy); in simplifyGEPInst()
5057 if (TyAllocSize == 0 && Ptr->getType() == GEPTy) in simplifyGEPInst()
5064 auto CanSimplify = [GEPTy, &P, Ptr]() -> bool { in simplifyGEPInst()
5065 return P->getType() == GEPTy && in simplifyGEPInst()
5112 auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset); in simplifyGEPInst()
[all …]