[Mlir-commits] [mlir] [MLIR][TableGen] Migrate MLIR backend to use const RecordKeeper (PR #107505)

River Riddle llvmlistbot at llvm.org
Fri Sep 6 09:28:48 PDT 2024


================
@@ -30,7 +30,7 @@ using namespace mlir::tblgen;
 /// Find all the AttrOrTypeDef for the specified dialect. If no dialect
 /// specified and can only find one dialect's defs, use that.
 static void collectAllDefs(StringRef selectedDialect,
-                           std::vector<llvm::Record *> records,
+                           const std::vector<const llvm::Record *> &records,
----------------
River707 wrote:

Can you just switch this to ArrayRef now?

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


More information about the Mlir-commits mailing list