diff options
author | Chris Bieneman <chris.bieneman@me.com> | 2022-09-13 13:07:46 -0500 |
---|---|---|
committer | Chris Bieneman <chris.bieneman@me.com> | 2022-09-13 15:05:47 -0500 |
commit | a8a49923ddf75be9b6166be2f6a1f50a99817841 (patch) | |
tree | 3e1b86b72ed20f89ad017a9663b0c6f6761932f8 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 8433b210839ed655852428ba8b34bb67b191957a (diff) | |
download | llvm-a8a49923ddf75be9b6166be2f6a1f50a99817841.zip llvm-a8a49923ddf75be9b6166be2f6a1f50a99817841.tar.gz llvm-a8a49923ddf75be9b6166be2f6a1f50a99817841.tar.bz2 |
[HLSL] Call global destructors from entries
HLSL doesn't have a C++ runtime that supports `atexit` registration. To
enable global destructors we instead rely on the `llvm.global_dtor`
mechanism.
This change disables `atexit` generation for HLSL and updates the HLSL
code generation to call global destructors on the exit from entry
functions.
Depends on D132977.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D133518
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions