[OpaquePtr] Create API to make a copy of a PointerType with some address space
authorArthur Eubanks <aeubanks@google.com>
Thu, 27 May 2021 03:32:04 +0000 (20:32 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 1 Jun 2021 23:52:32 +0000 (16:52 -0700)
commit89612938516b3623ecc038267539f2a4b69312d2
treedc9a208fc1ddd8fa859a213c2a475cee0b38a399
parentc484c7dd9d2382f07216ae9142ceb76272e21dc4
[OpaquePtr] Create API to make a copy of a PointerType with some address space

Some existing places use getPointerElementType() to create a copy of a
pointer type with some new address space.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D103429
llvm/include/llvm/IR/DerivedTypes.h
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
llvm/unittests/IR/TypesTest.cpp