HomePhabricator

[MLIR] Change ODS collective params build method to provide an empty default…

Authored by jurahul on Jul 13 2020, 11:20 AM.

Description

[MLIR] Change ODS collective params build method to provide an empty default value for named attributes

  • Provide default value for ArrayRef<NamedAttribute> attributes parameter of the collective params build method.
  • Change the genSeparateArgParamBuilder function to not generate build methods that may be ambiguous with the new collective params build method.
  • This change should help eliminate passing empty NamedAttribue ArrayRef when the collective params build method is used
  • Extend op-decl.td unit test to make sure the ambiguous build methods are not generated.

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