Searched refs:GEPTy (Results 1 – 2 of 2) sorted by relevance
2195 Type *GEPTy = GetElementPtrInst::getGEPReturnType( in ConstantFoldGetElementPtr() local2199 return UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()2203 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr()2205 cast<VectorType>(GEPTy)->getNumElements(), C) in ConstantFoldGetElementPtr()2222 Type *GEPTy = PointerType::get(Ty, PtrTy->getAddressSpace()); in ConstantFoldGetElementPtr() local2224 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements()); in ConstantFoldGetElementPtr()2230 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements()); in ConstantFoldGetElementPtr()2235 return Constant::getNullValue(GEPTy); in ConstantFoldGetElementPtr()
4053 Type *GEPTy = PointerType::get(LastType, AS); in SimplifyGEPInst() local4055 GEPTy = VectorType::get(GEPTy, VT->getNumElements()); in SimplifyGEPInst()4057 GEPTy = VectorType::get(GEPTy, VT->getNumElements()); in SimplifyGEPInst()4060 return UndefValue::get(GEPTy); in SimplifyGEPInst()4064 if (match(Ops[1], m_Zero()) && Ops[0]->getType() == GEPTy) in SimplifyGEPInst()4073 if (TyAllocSize == 0 && Ops[0]->getType() == GEPTy) in SimplifyGEPInst()4080 auto PtrToIntOrZero = [GEPTy](Value *P) -> Value * { in SimplifyGEPInst()4082 return Constant::getNullValue(GEPTy); in SimplifyGEPInst()4085 if (Temp->getType() == GEPTy) in SimplifyGEPInst()4130 auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset); in SimplifyGEPInst()[all …]