This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Allow filtering of ops
ClosedPublic

Authored by jpienaar on Jun 22 2020, 10:46 AM.

Details

Summary

Add option to filter which op the OpDefinitionsGen run on. This enables having multiple ops together in the same TD file but generating different CC files for them (useful if one wants to use multiclasses or split out 1 dialect into multiple different libraries). There is probably more general query here (e.g., split out all ops that don't have a verify method, or that are commutative) but filtering based on op name (e.g., test.a_op) seemed a reasonable start and didn't require inventing a query specification mechanism here.

Diff Detail

Event Timeline

jpienaar created this revision.Jun 22 2020, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2020, 10:46 AM
antiagainst accepted this revision.Jun 22 2020, 2:43 PM
This revision is now accepted and ready to land.Jun 22 2020, 2:43 PM
This revision was automatically updated to reflect the committed changes.