Displaying 1 result from an estimated 1 matches for "isvectorptr".
2019 Oct 21
2
How to create vector pointer type?
...signed addSpace = PointerTy->getAddressSpace();
Type *ScalarType = PointerTy->getElementType();
VectorType *VectorType = VectorType::get(ScalarType, 16);
return PointerType::get(VectorType, addSpace);
}
There's no isVectorPtr() check, so I add
static bool isVectorPtr(Type *Ty) {
bool a = false;
if(Ty->isPointerTy() ){
PointerType *PointerTy = dyn_cast<PointerType>(Ty);
Type *vt = PointerTy->getElementType();
...