[Mlir-commits] [mlir] [mlir][transform] Handle multiple library preloading passes (PR #69320)

Ingo Müller llvmlistbot at llvm.org
Fri Oct 20 03:33:56 PDT 2023


================
@@ -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,
----------------
ingomueller-net wrote:

No good reason. I probably changed the type from something else and overlooked the `&` when I changed it to `ArrayRef`. Fixed in new PR.

https://github.com/llvm/llvm-project/pull/69320


More information about the Mlir-commits mailing list