[PATCH] D133283: [DirectX backend] Support global ctor for DXILBitcodeWriter.
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 5 01:02:32 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: beanz, pow2clk, bogner.
Herald added a subscriber: hiraditya.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
1. Save typed pointer type for GlobalVariable/Function instead of the ObjectType. This will allow use GlobalVariable/Function as value.
2. Save target type for global ctors for Constant.
3. In DXILBitcodeWriter::getTypeID, check PointerMap first for Constant case.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133283
Files:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/lib/Target/DirectX/PointerTypeAnalysis.cpp
llvm/test/tools/dxil-dis/global_ctor.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133283.457896.patch
Type: text/x-patch
Size: 12585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220905/63baef2e/attachment.bin>
More information about the llvm-commits
mailing list