[PATCH] D135429: [HLSL] [DirectX backend] Move generateGlobalCtorDtorCalls into DirectX backend.

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 7 00:53:19 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: efriedma, pow2clk, beanz, bogner.
Herald added subscribers: Anastasia, hiraditya.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

Move generateGlobalCtorDtorCalls out of clang CodeGen.
A new transform pass GlobalCtorDtorCalls is created to do the job.
GlobalCtorDtorCalls is registed in registerPipelineEarlySimplificationEPCallback.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135429

Files:
  clang/lib/CodeGen/CGHLSLRuntime.cpp
  clang/lib/CodeGen/CGHLSLRuntime.h
  clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl
  clang/test/CodeGenHLSL/GlobalConstructorLib.hlsl
  clang/test/CodeGenHLSL/GlobalConstructors.hlsl
  clang/test/CodeGenHLSL/GlobalDestructors.hlsl
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
  llvm/lib/Target/DirectX/GlobalCtorDtorCalls.cpp
  llvm/lib/Target/DirectX/GlobalCtorDtorCalls.h
  llvm/test/CodeGen/DirectX/global_constructor_cs.ll
  llvm/test/CodeGen/DirectX/global_constructor_function.ll
  llvm/test/CodeGen/DirectX/global_constructor_lib.ll
  llvm/test/CodeGen/DirectX/global_destructor_cs.ll
  llvm/test/CodeGen/DirectX/global_destructor_lib.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135429.465992.patch
Type: text/x-patch
Size: 39042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221007/0014a6af/attachment-0001.bin>


More information about the cfe-commits mailing list