[Mlir-commits] [mlir] [mlir][emitc] Lower arith.index_cast, arith.index_castui, arith.shli, arith.shrui, arith.shrsi (PR #95795)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jun 17 07:31:42 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 3cead572e91d3de5f8cb458f09ab39302e289d22 a05c6aab39b2a14d4d134d98f89c0011faba38dd -- mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp mlir/lib/Dialect/EmitC/IR/EmitC.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp b/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
index b4f3acb612..242ef9712c 100644
--- a/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
+++ b/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
@@ -303,7 +303,7 @@ public:
Type opReturnType = this->getTypeConverter()->convertType(op.getType());
if (!opReturnType || !(isa<IntegerType>(opReturnType) ||
- emitc::isPointerWideType(opReturnType)))
+ emitc::isPointerWideType(opReturnType)))
return rewriter.notifyMatchFailure(
op, "expected integer or size_t/ssize_t/ptrdiff_t result type");
@@ -314,7 +314,7 @@ public:
Type operandType = adaptor.getIn().getType();
if (!operandType || !(isa<IntegerType>(operandType) ||
- emitc::isPointerWideType(operandType)))
+ emitc::isPointerWideType(operandType)))
return rewriter.notifyMatchFailure(
op, "expected integer or size_t/ssize_t/ptrdiff_t operand type");
@@ -406,7 +406,7 @@ public:
Type type = this->getTypeConverter()->convertType(op.getType());
if (!type || !(isa_and_nonnull<IntegerType>(type) ||
- emitc::isPointerWideType(type))) {
+ emitc::isPointerWideType(type))) {
return rewriter.notifyMatchFailure(
op, "expected integer or size_t/ssize_t/ptrdiff_t type");
}
@@ -490,7 +490,7 @@ public:
Type type = this->getTypeConverter()->convertType(op.getType());
if (!type || !(isa_and_nonnull<IntegerType>(type) ||
- emitc::isPointerWideType(type))) {
+ emitc::isPointerWideType(type))) {
return rewriter.notifyMatchFailure(
op, "expected integer or size_t/ssize_t/ptrdiff_t type");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/95795
More information about the Mlir-commits
mailing list