[Mlir-commits] [mlir] [mlir][Vector] Fix integration test for vector.maskedload narrow type… (PR #71346)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Nov 5 18:23:14 PST 2023
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 6c59f0e1b0fb56c909ad7c9aad4bde37dc006ae0 460c14b8da6a5e1306180f0cb9e1d7daf8bb6126 -- mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp b/mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
index 30f68fefe728..969317fdec8a 100644
--- a/mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
+++ b/mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
@@ -49,7 +49,8 @@ transform::ApplyVectorToLLVMConversionPatternsOp::verifyTypeConverter(
std::unique_ptr<TypeConverter>
transform::NarrowTypeEmulationConverterOp::getTypeConverter() {
- auto typeConverter = std::make_unique<arith::NarrowTypeEmulationConverter>(getLoadStoreEmulateBitwidth());
+ auto typeConverter = std::make_unique<arith::NarrowTypeEmulationConverter>(
+ getLoadStoreEmulateBitwidth());
// Convert scalar type.
typeConverter->addConversion([this](IntegerType ty) -> std::optional<Type> {
unsigned width = ty.getWidth();
@@ -73,7 +74,8 @@ transform::NarrowTypeEmulationConverterOp::getTypeConverter() {
to_vector(ty.getShape()),
IntegerType::get(ty.getContext(), getArithComputeBitwidth()));
});
- llvm::errs() << "********************* " << getLoadStoreEmulateBitwidth() << ' ' << getArithComputeBitwidth() << " OK TypeConverter\n";
+ llvm::errs() << "********************* " << getLoadStoreEmulateBitwidth()
+ << ' ' << getArithComputeBitwidth() << " OK TypeConverter\n";
return typeConverter;
}
@@ -193,7 +195,9 @@ void transform::ApplyLowerTransposePatternsOp::populatePatterns(
void transform::ApplyEmulateNarrowTypesPatternsOp::populatePatterns(
TypeConverter &typeConverter, RewritePatternSet &patterns) {
- vector::populateVectorNarrowTypeEmulationPatterns(static_cast<arith::NarrowTypeEmulationConverter &>(typeConverter), patterns);
+ vector::populateVectorNarrowTypeEmulationPatterns(
+ static_cast<arith::NarrowTypeEmulationConverter &>(typeConverter),
+ patterns);
llvm::errs() << "********************* OK TD\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71346
More information about the Mlir-commits
mailing list