[Mlir-commits] [mlir] [mlir][SPIRV] Add named-barrier type and OpNamedBarrierInitialize / OpMemoryNamedBarrier (PR #195664)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon May 4 08:09:29 PDT 2026
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 origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp mlir/lib/Target/SPIRV/Deserialization/Deserializer.h mlir/lib/Target/SPIRV/Serialization/Serializer.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp b/mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
index 965af5c1b..cabbecc56 100644
--- a/mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
+++ b/mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
@@ -1710,8 +1710,7 @@ spirv::Deserializer::processSamplerType(ArrayRef<uint32_t> operands) {
LogicalResult
spirv::Deserializer::processNamedBarrierType(ArrayRef<uint32_t> operands) {
if (operands.size() != 1)
- return emitError(unknownLoc,
- "OpTypeNamedBarrier must have no parameters");
+ return emitError(unknownLoc, "OpTypeNamedBarrier must have no parameters");
typeMap[operands[0]] = spirv::NamedBarrierType::get(context);
return success();
``````````
</details>
https://github.com/llvm/llvm-project/pull/195664
More information about the Mlir-commits
mailing list