Support converting pointers from opaque to typed
authorChris Bieneman <chris.bieneman@me.com>
Tue, 24 May 2022 16:56:12 +0000 (11:56 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Mon, 6 Jun 2022 16:36:52 +0000 (11:36 -0500)
commit04d4130a513783eecbec426c8151c1d2fe086430
tree7490597254d634a2f119c8076dc0098fad605ed0
parent0498415f1d6ac0bfbda72486505c11a7b3d464c4
Support converting pointers from opaque to typed

Using the pointer type analysis we can re-constitute typed pointers and
populate the correct types in the bitcasts throughout the IR.

This doesn't yet handle all cases, but this should be illustrative as
to the dirction and feasability of
the solution.

Reviewed By: pete

Differential Revision: https://reviews.llvm.org/D122270
llvm/lib/Target/DirectX/DXILPrepare.cpp
llvm/lib/Target/DirectX/DXILWriter/CMakeLists.txt
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.h
llvm/test/tools/dxil-dis/opaque-gep.ll [new file with mode: 0644]
llvm/test/tools/dxil-dis/opaque-pointers.ll [new file with mode: 0644]