[llvm] [LLVM] Add a C API for creating instructions with custom syncscopes. (PR #104775)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 08:02:28 PDT 2024
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 00def06c6e9a0582e85bef5f3a186839c48d1ae2 74ae2065bc78b7178bd735ff467e72170490d2d0 --extensions cpp,h,c -- llvm/include/llvm-c/Core.h llvm/include/llvm/IR/Instructions.h llvm/lib/IR/Core.cpp llvm/tools/llvm-c-test/attributes.c llvm/tools/llvm-c-test/echo.cpp llvm/tools/llvm-c-test/llvm-c-test.h llvm/tools/llvm-c-test/module.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 226ad2e9f9..18cc035494 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -4369,7 +4369,8 @@ int LLVMGetMaskValue(LLVMValueRef SVInst, unsigned Elt) {
int LLVMGetUndefMaskElem(void) { return PoisonMaskElem; }
LLVMBool LLVMIsAtomicSingleThread(LLVMValueRef AtomicInst) {
- return getAtomicSyncScopeID(unwrap<Instruction>(AtomicInst)).value() == SyncScope::SingleThread;
+ return getAtomicSyncScopeID(unwrap<Instruction>(AtomicInst)).value() ==
+ SyncScope::SingleThread;
}
unsigned LLVMGetAtomicSyncScopeID(LLVMValueRef AtomicInst) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/104775
More information about the llvm-commits
mailing list