[MLIR] Change default builders generated by TableGen to use TypeRange for result...
authorRahul Joshi <jurahul@google.com>
Wed, 23 Sep 2020 03:58:30 +0000 (20:58 -0700)
committerRahul Joshi <jurahul@google.com>
Wed, 23 Sep 2020 16:06:07 +0000 (09:06 -0700)
commit9744606614df4ba85a4d546c94b3b5ef9d3a3a96
tree17c9b3a21d2164202d06fe46833bd90e21c582be
parente90343ada3bda55c697e7ae06dda3f8d8d6ded34
[MLIR] Change default builders generated by TableGen to use TypeRange for result types

- Change the default builders to use TypeRange instead of ArrayRef<Type>
- Custom builders defined in LinalgStructuredOps now conflict with the default
  separate param ones, but the default collective params one is still needed. Resolve
  this by replicating the collective param builder as a custom builder and skipping
  the generation of default builders for these ops.

Differential Revision: https://reviews.llvm.org/D87926
mlir/include/mlir/IR/OpBase.td
mlir/test/mlir-tblgen/op-decl.td
mlir/test/mlir-tblgen/op-result.td
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp