Add a method to build affine maps with zero or more results.
authorUlysse Beaugnon <ulysse@google.com>
Wed, 1 Apr 2020 08:47:06 +0000 (10:47 +0200)
committerAlex Zinenko <zinenko@google.com>
Wed, 1 Apr 2020 08:47:18 +0000 (10:47 +0200)
commit49af3809423bfe03a21cad22dda0a776c04cc5af
tree9738f75177e95a08d32517bd2e6de90f8acbe296
parente2d6023250b1645214967f58a310b73b22adb31e
Add a method to build affine maps with zero or more results.

Summary:
The commit provides a single method to build affine maps with zero or more
results. Users of mlir::AffineMap previously had to dispatch between two methods
depending on the number of results.

At the same time, this commit fixes the method for building affine map with zero
results that was previously ignoring its `symbolCount` argument.

Differential Revision: https://reviews.llvm.org/D77126
mlir/include/mlir/IR/AffineMap.h
mlir/lib/IR/MLIRContext.cpp