[mlir][Linalg] Update ReshapeOp::build to be more idiomatic
authorNicolas Vasilache <ntv@google.com>
Mon, 13 Jan 2020 03:38:57 +0000 (22:38 -0500)
committerNicolas Vasilache <ntv@google.com>
Mon, 13 Jan 2020 15:56:07 +0000 (10:56 -0500)
commite653d306ce90e5612796d8adce9eb34b1c10e85a
treeee83cef73ea9e8c6206ee37f246ffdddfd2d1a8c
parentb4a99a061f517e60985667e39519f60186cbb469
[mlir][Linalg] Update ReshapeOp::build to be more idiomatic

Summary:
This diff makes it easier to create a `linalg.reshape` op
and adds an EDSC builder api test to exercise the new builders.

Reviewers: ftynse, jpienaar

Subscribers: mehdi_amini, rriddle, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72580
mlir/include/mlir/Dialect/Linalg/EDSC/Intrinsics.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/EDSC/builder-api-test.cpp