[llvm] [Offload] Implement `olShutDown` (PR #144055)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 16 06:17:25 PDT 2025
================
@@ -162,8 +163,8 @@ def : Function {
let name = "olShutDown";
let desc = "Release the resources in use by Offload";
let details = [
- "All resources owned by the Offload library and plugins will be released",
- "Subsequent API calls made after calling `olShutDown` are undefined behavior"
+ "This decrements an internal reference count. When this reaches 0, all resources will be released",
+ "Subsequent API calls to methods other than `olInit` made after resources are released are undefined behavior"
----------------
jhuber6 wrote:
We need a separate error category for that, the other runtimes have errors for using API calls while uninitialized.
https://github.com/llvm/llvm-project/pull/144055
More information about the llvm-commits
mailing list