[all-commits] [llvm/llvm-project] d3c54a: [HLSL] Call global constructors inside entry
Chris B via All-commits
all-commits at lists.llvm.org
Fri Sep 9 07:01:59 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3c54a172d48a2e3a0c2740c300a1d7dbdf4e292
https://github.com/llvm/llvm-project/commit/d3c54a172d48a2e3a0c2740c300a1d7dbdf4e292
Author: Chris Bieneman <chris.bieneman at me.com>
Date: 2022-09-09 (Fri, 09 Sep 2022)
Changed paths:
M clang/docs/HLSL/EntryFunctions.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/CodeGen/CGHLSLRuntime.cpp
M clang/lib/CodeGen/CGHLSLRuntime.h
M clang/lib/Sema/SemaDeclAttr.cpp
A clang/test/CodeGenHLSL/GlobalConstructorFunction.hlsl
A clang/test/CodeGenHLSL/GlobalConstructorLib.hlsl
A clang/test/CodeGenHLSL/GlobalConstructors.hlsl
A clang/test/SemaHLSL/GlobalConstructors.hlsl
Log Message:
-----------
[HLSL] Call global constructors inside entry
HLSL doesn't have a runtime loader model that supports global
construction by a loader or runtime initializer. To allow us to leverage
global constructors with minimal code generation impact we put calls to
the global constructors inside the generated entry function.
Differential Revision: https://reviews.llvm.org/D132977
More information about the All-commits
mailing list