[PATCH] D136768: Make typed pointers to be yet again recognized as pointers

Dmitry Sidorov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 08:07:18 PDT 2022


sidorovd added a comment.

In D136768#3885671 <https://reviews.llvm.org/D136768#3885671>, @nikic wrote:

> Why do you need this? Typed pointers have very limited use as a representational convenience. They should not be recognized or handled like normal pointers.

I'm trying to construct a vector of pointers in the patch in the related project that does a translation of LLVM IR to SPIR-V (if you are interested here it is: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/1669 ). As for now SPIR-V doesn't have opaque pointers and hence this vector needs to be created with typed pointers. Like this I'm getting an assert "Element type of a VectorType must be an integer, floating point, or pointer type.", which is a bit weird from my perspective. Probably this fix is not the best, but I don't see any reasons to not allow creating of a typed pointer vector.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136768/new/

https://reviews.llvm.org/D136768



More information about the llvm-commits mailing list