[all-commits] [llvm/llvm-project] 0d988d: [MLIR] Change ODS collective params build method t...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Jul 13 13:36:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d988da6d13e16a397d58bc3b965a36adb7fee03
      https://github.com/llvm/llvm-project/commit/0d988da6d13e16a397d58bc3b965a36adb7fee03
  Author: Rahul Joshi <jurahul at google.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
    M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
    M mlir/test/mlir-tblgen/op-decl.td
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list