[llvm] [SPIRV] Add __spirv_ builtins for existing instructions (PR #85654)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 09:15:10 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 59f34e8c2b5463dcf39fbafffeb30a84ef7b6887 377fa7d4799e2b64684b5506dac2716e11a39c1d -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
index 57e770a8cf..0478fc33ce 100644
--- a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
@@ -1280,7 +1280,8 @@ static bool generateAtomicInst(const SPIRV::IncomingCall *Call,
return buildAtomicStoreInst(Call, MIRBuilder, GR);
case SPIRV::OpAtomicCompareExchange:
case SPIRV::OpAtomicCompareExchangeWeak:
- return buildAtomicCompareExchangeInst(Call, Builtin, Opcode, MIRBuilder, GR);
+ return buildAtomicCompareExchangeInst(Call, Builtin, Opcode, MIRBuilder,
+ GR);
case SPIRV::OpAtomicIAdd:
case SPIRV::OpAtomicISub:
case SPIRV::OpAtomicOr:
``````````
</details>
https://github.com/llvm/llvm-project/pull/85654
More information about the llvm-commits
mailing list