search for: isvectorptr

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

2019 Oct 21
2
How to create vector pointer type?
...signed 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() check, so I add static bool isVectorPtr(Type *Ty) { &nbsp; bool a = false; &nbsp; if(Ty-&gt;isPointerTy() ){ &nbsp; &nbsp; PointerType *PointerTy = dyn_cast<PointerType&gt;(Ty); &nbsp; &nbsp; Type *vt = PointerTy-&gt;getElementType(); &nbsp; &nbsp;...