This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add support for generating the parser/printer from the declarative operation format.
ClosedPublic

Authored by rriddle on Jan 25 2020, 1:05 AM.

Details

Summary

This revision add support, and testing, for generating the parser and printer from the declarative operation format.

Depends On D73405

Diff Detail

Event Timeline

rriddle created this revision.Jan 25 2020, 1:05 AM

Unit tests: pass. 62197 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

Unit tests: pass. 62252 tests passed, 0 failed and 816 were skipped.

clang-tidy: pass.

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

Unit tests: unknown.

clang-tidy: fail. clang-tidy found 1 errors and 0 warnings. 0 of them are added as review comments below (why?).

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

flaub added a subscriber: flaub.Jan 28 2020, 5:13 PM
antiagainst accepted this revision.Jan 30 2020, 7:17 AM

Nice! Just some nits.

mlir/tools/mlir-tblgen/OpFormatGen.cpp
242

Nit: const char * const ?

307

allOperands and allResults? fullOperand/fullResult is a bit confusing for me.

333

I feel this line can be uniqued with line 318 and put at the end.

This revision is now accepted and ready to land.Jan 30 2020, 7:17 AM
rriddle updated this revision to Diff 241527.Jan 30 2020, 11:31 AM
rriddle marked 3 inline comments as done.

Resolve comments

Thanks for the review!

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: diff.json, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

This revision was automatically updated to reflect the committed changes.

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Seems like you didn't format before committing?