[PATCH] D122270: Support converting pointers from opaque to typed
Chris Bieneman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 16:19:36 PDT 2022
beanz created this revision.
beanz added reviewers: MaskRay, tstellar, pete, jdoerfert, sheredom, kuhar, antiagainst, nhaehnle, rnk, nikic.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.
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 (like GEPs are currently unhandled),
but this should be illustrative as to the dirction and feasability of
the solution.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122270
Files:
llvm/include/llvm/Bitcode/BitcodeWriterBase.h
llvm/include/llvm/Bitcode/ValueEnumerator.h
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/Target/DirectX/DXILBitcodeWriter.cpp
llvm/lib/Target/DirectX/DXILBitcodeWriter.h
llvm/test/tools/dxil-dis/opaque-gep.ll
llvm/test/tools/dxil-dis/opaque-pointers.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122270.417427.patch
Type: text/x-patch
Size: 22333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220322/40e9c5d6/attachment.bin>
More information about the llvm-commits
mailing list