Skip to content

Commit 5c42ffc

Browse files
author
Michael Levesque-Dion
committed
Fixup: delete tests and address nits
1 parent dca03e2 commit 5c42ffc

File tree

4 files changed

+9
-43
lines changed

4 files changed

+9
-43
lines changed

mlir/test/mlir-tblgen/dialect-with-dependents.td

Lines changed: 0 additions & 15 deletions
This file was deleted.

mlir/test/mlir-tblgen/pass.td

Lines changed: 0 additions & 22 deletions
This file was deleted.

mlir/tools/mlir-tblgen/DialectGen.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ static void emitDialectDef(Dialect &dialect, raw_ostream &os) {
285285
llvm::raw_string_ostream dialectsOs(dependentDialectRegistrations);
286286
llvm::interleave(
287287
dialect.getDependentDialects(), dialectsOs,
288-
[&dialectsOs](StringRef dd) {
289-
dialectsOs << llvm::formatv(dialectRegistrationTemplate, dd);
288+
[&](StringRef dependentDialect) {
289+
dialectsOs << llvm::formatv(dialectRegistrationTemplate,
290+
dependentDialect);
290291
},
291292
"\n ");
292293
}

mlir/tools/mlir-tblgen/PassGen.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ static void emitPassDefs(const Pass &pass, raw_ostream &os) {
308308
llvm::raw_string_ostream dialectsOs(dependentDialectRegistrations);
309309
llvm::interleave(
310310
pass.getDependentDialects(), dialectsOs,
311-
[&dialectsOs](StringRef dd) {
312-
dialectsOs << llvm::formatv(dialectRegistrationTemplate, dd);
311+
[&](StringRef dependentDialect) {
312+
dialectsOs << llvm::formatv(dialectRegistrationTemplate,
313+
dependentDialect);
313314
},
314315
"\n ");
315316
}
@@ -426,8 +427,9 @@ static void emitOldPassDecl(const Pass &pass, raw_ostream &os) {
426427
llvm::raw_string_ostream dialectsOs(dependentDialectRegistrations);
427428
llvm::interleave(
428429
pass.getDependentDialects(), dialectsOs,
429-
[&dialectsOs](StringRef dd) {
430-
dialectsOs << llvm::formatv(dialectRegistrationTemplate, dd);
430+
[&](StringRef dependentDialect) {
431+
dialectsOs << llvm::formatv(dialectRegistrationTemplate,
432+
dependentDialect);
431433
},
432434
"\n ");
433435
}

0 commit comments

Comments
 (0)