This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Hoist out getRequestedOpDefinitions helper
ClosedPublic

Authored by jpienaar on Apr 2 2021, 6:18 AM.

Details

Summary

Enables performing the same filtering in the op doc definition as in the op definition generator.

Diff Detail

Event Timeline

jpienaar created this revision.Apr 2 2021, 6:18 AM
jpienaar requested review of this revision.Apr 2 2021, 6:18 AM
antiagainst accepted this revision.Apr 5 2021, 4:40 AM

LGTM. Just a nit about documentation.

mlir/tools/mlir-tblgen/OpGenHelpers.h
23

Delete not? This is returning the definitions filtered by the user. It would also be nice to mention that this relies on the command-line option "op-include-regex" and "op-exclude-regex" to function, as from the API it's unclear how one can filter.

This revision is now accepted and ready to land.Apr 5 2021, 4:40 AM
This revision was landed with ongoing or failed builds.Apr 6 2021, 12:53 PM
This revision was automatically updated to reflect the committed changes.