mirror of
https://github.com/clang-retro/llvm.git
synced 2026-11-28 13:19:18 -08:00
Use the new Offload API to ensure a proper libomptarget teardown in case the process exits before reaching its `deinit` method. Depending on different circumstances whether the shutdown happens through `deinit` or through the liboffload `callback` everything must be properly protected and allowed to be called safely multiple times. Assisted by Claude. --- <sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>