Allow this only if the types are the same. e.g.:
i16 -> index -> i16 or
index -> i16 -> index
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Unit tests: pass. 62315 tests passed, 0 failed and 838 were skipped.
clang-tidy: fail. clang-tidy found 0 errors and 1 warnings. 0 of them are added as review comments below (why?).
clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
Can you implement this as a fold instead? 'fold' is usable in many more places than canonicalization patterns, e.g. DialectConversion.
Unit tests: pass. 62315 tests passed, 0 failed and 838 were skipped.
clang-tidy: fail. clang-tidy found 0 errors and 1 warnings. 0 of them are added as review comments below (why?).
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
+1 to what River said.
QQ, I could also see i16 -> index -> i32 => i16 -> i32.
Would it make sense to put here or do we prefer a separate revision?
Any chance you can write something that would clarify this here: https://mlir.llvm.org/docs/Canonicalization/?
Unit tests: pass. 62518 tests passed, 0 failed and 844 were skipped.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
mlir/lib/Dialect/StandardOps/Ops.cpp | ||
---|---|---|
1637 | nit: Remove trivial braces and the extra newline at the end of this function. |
nit: Remove trivial braces and the extra newline at the end of this function.