Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
HDConstantFold.cpp2195 Type *GEPTy = GetElementPtrInst::getGEPReturnType( in ConstantFoldGetElementPtr() local
2199 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() local
2224 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements()); in ConstantFoldGetElementPtr()
2230 GEPTy = VectorType::get(OrigGEPTy, VT->getNumElements()); in ConstantFoldGetElementPtr()
2235 return Constant::getNullValue(GEPTy); in ConstantFoldGetElementPtr()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
HDInstructionSimplify.cpp4053 Type *GEPTy = PointerType::get(LastType, AS); in SimplifyGEPInst() local
4055 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 …]