search for: addspac

Displaying 1 result from an estimated 1 matches for "addspac".

Did you mean: addpac
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) { &nbsp; &nbsp; PointerType *PointerTy = dyn_cast<PointerType&gt;(Ty); &nbsp; &nbsp; assert(PointerTy &amp;&amp; "PointerType expected"); &nbsp; &nbsp; unsigned addSpace = PointerTy-&gt;getAddressSpace(); &nbsp; &nbsp; Type *ScalarType = PointerTy-&gt;getElementType(); &nbsp; &nbsp; VectorType *VectorType = VectorType::get(ScalarType, 16); &nbsp; &nbsp; return PointerType::get(VectorType, addSpace); } There's no isVectorPtr()...