Displaying 1 result from an estimated 1 matches for "addspace".
Did you mean:
addrspace
2019 Oct 21
2
How to create vector pointer type?
...bsp; I want to create a v16i16* type to replace it.
static Type *getVectorPtr(Type *Ty) {
PointerType *PointerTy = dyn_cast<PointerType>(Ty);
assert(PointerTy && "PointerType expected");
unsigned addSpace = PointerTy->getAddressSpace();
Type *ScalarType = PointerTy->getElementType();
VectorType *VectorType = VectorType::get(ScalarType, 16);
return PointerType::get(VectorType, addSpace);
}
There's no isVectorPtr() c...