HomePhabricator

[mlir][ods] Allow filtering of ops

Authored by jpienaar on Jun 22 2020, 2:56 PM.

Description

[mlir][ods] Allow filtering of ops

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.

Differential Revision: https://reviews.llvm.org/D82319

Details

Committed
jpienaarJun 22 2020, 2:56 PM
Differential Revision
D82319: [mlir][ods] Allow filtering of ops
Parents
rG23654d9e7a29: Recommit "[X86] Calculate the needed size of the feature arrays in…
Branches
Unknown
Tags
Unknown