Will allow plugins to migrate away from using global variables to
manage lifetime, which will fix a segfault discovered in relation to D127432
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Manually tested by permuting the stubs added to the amdgpu plugin (return success, fail, delete the function). Decided init failing should be treated equivalently to failing to open the plugin at all, and deinit failing should be warning message and otherwise ignored.
Comment Actions
LG,
Right now initialization and destruction happens from a static class in the plugins. This isn't really a good solution as per the LLVM coding standards https://llvm.org/docs/CodingStandards.html#do-not-use-static-constructors so it's good to replace these with explicit calls via these new functions.