[all-commits] [llvm/llvm-project] ada0d4: [mlir][ods] Allow filtering of ops
Jacques Pienaar via All-commits
all-commits at lists.llvm.org
Mon Jun 22 14:57:25 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ada0d41dbc26f013e2741d1f9e0f164943342435
https://github.com/llvm/llvm-project/commit/ada0d41dbc26f013e2741d1f9e0f164943342435
Author: Jacques Pienaar <jpienaar at google.com>
Date: 2020-06-22 (Mon, 22 Jun 2020)
Changed paths:
M mlir/test/mlir-tblgen/op-decl.td
M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list