[Mlir-commits] [mlir] [mlir][transform] Handle multiple library preloading passes (PR #69320)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Tue Oct 17 16:25:37 PDT 2023
Ingo =?utf-8?q?Müller?= <ingomueller at google.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69320/mlir at github.com>
================
@@ -315,6 +315,62 @@ class BuildOnly : public DerivedTy {
BuildOnly() : DerivedTy(/*buildOnly=*/true) {}
};
+namespace detail {
+
+/// Expands the given list of `paths` to a list of `.mlir` files.
+///
+/// Each entry in `paths` may either be a regular file, in which case it ends up
+/// in the result list, or a directory, in which case all (regular) `.mlir`
+/// files in that directory are added. Any other file types lead to a failure.
+LogicalResult expandPathsToMLIRFiles(ArrayRef<std::string> &paths,
----------------
ftynse wrote:
Why take a reference to ArrayRef, which itself is a reference as the name indicates?
(I see the code is moved from elsewhere, but IIRC it's yours anyway).
https://github.com/llvm/llvm-project/pull/69320
More information about the Mlir-commits
mailing list