[all-commits] [llvm/llvm-project] 261297: [DirectX backend] Support global ctor for DXILBitc...

Xiang Li via All-commits all-commits at lists.llvm.org
Wed Sep 28 13:24:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26129766df701d462ed9a6a9a68a88b3564a70bd
      https://github.com/llvm/llvm-project/commit/26129766df701d462ed9a6a9a68a88b3564a70bd
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
    M llvm/lib/Target/DirectX/PointerTypeAnalysis.cpp
    A llvm/test/tools/dxil-dis/global_ctor.ll

  Log Message:
  -----------
  [DirectX backend] Support global ctor for DXILBitcodeWriter.

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.

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D133283




More information about the All-commits mailing list