This diff addresses leftovers from https://reviews.llvm.org/D72022.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Unit tests: pass. 61175 tests passed, 0 failed and 729 were skipped.
clang-tidy: fail. Please fix clang-tidy findings.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
mlir/include/mlir/Support/Functional.h | ||
---|---|---|
50 | This seems hardcoded for a very specific type of iterator element, i.e. one where the result is nullable. |
mlir/include/mlir/Support/Functional.h | ||
---|---|---|
50 | I can rename to map_if_non_null. |
Unit tests: pass. 61237 tests passed, 0 failed and 729 were skipped.
clang-tidy: fail. Please fix clang-tidy findings.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Unit tests: pass. 61237 tests passed, 0 failed and 729 were skipped.
clang-tidy: fail. Please fix clang-tidy findings.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
mlir/include/mlir/Support/Functional.h | ||
---|---|---|
50 | I'm not convinced that these methods are worth it. This looks like a case that is already covered by a combination of map+filter ranges. |
mlir/include/mlir/Support/Functional.h | ||
---|---|---|
50 | FWIW, this also applies to other things within this file; e.g. I don't really see the benefit of 'map' when you can use llvm::map_range instead. At that point, you can opt into vector materialization if you actually need it. This file seems to be reimplementing many of the iterator ranges, albeit using SmallVector instead of using iterator ranges. |
mlir/include/mlir/Support/Functional.h | ||
---|---|---|
50 | fair enough, a lot of this predates my realizing that LLVM had STLExtras, I'll rework to cleanup. |
clang-tidy: error: 'mlir/Dialect/Linalg/IR/LinalgTypes.h' file not found [clang-diagnostic-error]