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

Xiang Li via All-commits all-commits at lists.llvm.org
Fri Sep 30 11:27:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a80a888de5b1a96c64ed308dc858cb1820108178
      https://github.com/llvm/llvm-project/commit/a80a888de5b1a96c64ed308dc858cb1820108178
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-09-30 (Fri, 30 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
    M llvm/unittests/Target/DirectX/PointerTypeAnalysisTests.cpp

  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