[MLIR] Combine the 2 overloads of FuncOp::build() into one.
authorRahul Joshi <jurahul@google.com>
Tue, 7 Jul 2020 23:15:44 +0000 (16:15 -0700)
committerRahul Joshi <jurahul@google.com>
Wed, 8 Jul 2020 01:22:22 +0000 (18:22 -0700)
commit74145d584126da2ce7a836d9b2240d56442f3ea1
treec9cecea3a0231093047c67990822ae313af49ae8
parentd92bf71a07c1787b535f8eb9deb27a4f11ac2d44
[MLIR] Combine the 2 overloads of FuncOp::build() into one.

- This will eliminate the need to pass an empty `ArrayRef<NamedAttribute>{}` when
  no named attributes are required on the function.

Differential Revision: https://reviews.llvm.org/D83356
mlir/include/mlir/IR/Function.h
mlir/lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp
mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
mlir/lib/IR/Function.cpp