diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-11-10 09:34:04 -0600 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-11-10 11:01:02 -0600 |
commit | a3bd87b100fba414306450b56e87752a5ea21eee (patch) | |
tree | 4a90fcaec4900bb39118065c80077f93d881ec80 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | dbd00c3b5d8a0703e1457b5575b3400e2ebc0157 (diff) | |
download | llvm-a3bd87b100fba414306450b56e87752a5ea21eee.zip llvm-a3bd87b100fba414306450b56e87752a5ea21eee.tar.gz llvm-a3bd87b100fba414306450b56e87752a5ea21eee.tar.bz2 |
[AMDGPU] Call the `FINI_ARRAY` destructors in the correct order (#71815)
Summary:
The AMDGPU backend uses the linker-provided INIT_ARRAY and FINI_ARRAY
sections to call all the global constructors in a single kernel.
Previously this mistakenly used the same iteration logic for both
arrays. The destructors stored in FINI_ARRAY are stored in the same
order as
the ones in the INIT_ARRAY section so we need to traverse it in reverse
order.
Relanding after the revert in fe7b5e2cfcf6848287010291081f85fa1f6bb2ef
using the IR builder interface instead of ConstantExpr.
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions