This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Fix formatting of file Vectorization.cpp
AbandonedPublic

Authored by devajith-huawei on Mar 3 2023, 12:37 PM.

Diff Detail

Event Timeline

Herald added a reviewer: hanchung. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
devajith-huawei requested review of this revision.Mar 3 2023, 12:37 PM
dcaballe accepted this revision.Mar 3 2023, 12:39 PM
This revision is now accepted and ready to land.Mar 3 2023, 12:39 PM
dcaballe requested changes to this revision.Mar 3 2023, 1:34 PM
dcaballe added inline comments.
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
51

hmmm... this formatting seems odd to me. Are you using the latest version of clang-format with the LLVM formatting?

This revision now requires changes to proceed.Mar 3 2023, 1:34 PM
devajith-huawei added inline comments.Mar 3 2023, 1:43 PM
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
51

Perhaps, both

clang-format -style=llvm mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp -i

and

git-clang-format HEAD~

generates different results for me.

Update diff with context

Clang-format is not passing. Assuming the llvm configuration is used, I wonder if the problem is that your clang-format is outdated. Perhaps, the formatting issues that you see in https://reviews.llvm.org/D145160 are related only to your code and this diff wouldn't be necessary?

Clang-format is not passing. Assuming the llvm configuration is used, I wonder if the problem is that your clang-format is outdated. Perhaps, the formatting issues that you see in https://reviews.llvm.org/D145160 are related only to your code and this diff wouldn't be necessary?

Thanks for reviewing. Yes, there's no clang-format build error now for https://reviews.llvm.org/D145160. This diff isn't necessary.

devajith-huawei abandoned this revision.Mar 7 2023, 4:14 PM

Diff not necessary.