[llvm] [llvm-c] APIs for acquiring and releasing ThreadSafeContext locks (PR #146598)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 13:39:27 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm-c/Orc.h llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm-c/Orc.h b/llvm/include/llvm-c/Orc.h
index d880e4ce6..5f07a069c 100644
--- a/llvm/include/llvm-c/Orc.h
+++ b/llvm/include/llvm-c/Orc.h
@@ -388,7 +388,8 @@ typedef struct LLVMOrcOpaqueThreadSafeContext *LLVMOrcThreadSafeContextRef;
/**
* A reference to an orc::ThreadSafeContext::Lock instance.
*/
-typedef struct LLVMOrcOpaqueThreadSafeContextLock *LLVMOrcThreadSafeContextLockRef;
+typedef struct LLVMOrcOpaqueThreadSafeContextLock
+ *LLVMOrcThreadSafeContextLockRef;
/**
* A reference to an orc::ThreadSafeModule instance.
@@ -1096,7 +1097,8 @@ LLVMOrcThreadSafeContextGetLock(LLVMOrcThreadSafeContextRef TSCtx);
/**
* Release the lock associated with a ThreadSafeContext.
*/
-void LLVMOrcThreadSafeContextReleaseLock(LLVMOrcThreadSafeContextLockRef TSCtxLock);
+void LLVMOrcThreadSafeContextReleaseLock(
+ LLVMOrcThreadSafeContextLockRef TSCtxLock);
/**
* Create a ThreadSafeModule wrapper around the given LLVM module. This takes
``````````
</details>
https://github.com/llvm/llvm-project/pull/146598
More information about the llvm-commits
mailing list