[PATCH] D103429: [OpaquePtr] Create API to make a copy of a PointerType with some address space
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 1 12:06:29 PDT 2021
dblaikie added inline comments.
================
Comment at: llvm/include/llvm/IR/DerivedTypes.h:667
+ /// transition.
+ static PointerType *getWithSamePointeeType(PointerType *PT,
+ unsigned AddressSpace) {
----------------
Maybe the "with same pointee type" isn't the high priority aspect of this API? More "get with different address space" and it's assumed the rest of the type remains the same? (opaque to opaque, typed to typed)
Maybe "getWithAddressSpace" or something like that?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103429/new/
https://reviews.llvm.org/D103429
More information about the llvm-commits
mailing list