[Mlir-commits] [mlir] [mlir][emitc] Add EmitC index types (PR #93155)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon May 27 06:39:55 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 ca478bc6cc0e5a5ca6c973772d39404571255a84 ceb2d40667a4e3a01e3e0dbf35494e2aa6017afa -- mlir/include/mlir/Dialect/EmitC/Transforms/TypeConversions.h mlir/lib/Dialect/EmitC/Transforms/TypeConversions.cpp mlir/include/mlir/Dialect/EmitC/IR/EmitC.h mlir/lib/Dialect/EmitC/IR/EmitC.cpp mlir/lib/Target/Cpp/TranslateToCpp.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
index 8a618788eb..d410a60d64 100644
--- a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
+++ b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
@@ -109,7 +109,7 @@ bool mlir::emitc::isSupportedIntegerType(Type type) {
}
bool mlir::emitc::isIntegerIndexOrOpaqueType(Type type) {
- return llvm::isa<IndexType,emitc::OpaqueType>(type) ||
+ return llvm::isa<IndexType, emitc::OpaqueType>(type) ||
isSupportedIntegerType(type) || isAnySizeTType(type);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/93155
More information about the Mlir-commits
mailing list