[MLIR] Add mapping based on ValueRange to BlockAndValueMapper.
authorStephan Herhut <herhut@google.com>
Mon, 3 Feb 2020 15:33:36 +0000 (16:33 +0100)
committerStephan Herhut <herhut@google.com>
Wed, 5 Feb 2020 14:48:13 +0000 (15:48 +0100)
commite1e09f0ce6d44e86d8ab2070fe27303dd54fa189
treea225b7ac4acc5f08a8155c961fc36c03af5aa42a
parent482e236e569e8324f70778af1eb756923cd490dc
[MLIR] Add mapping based on ValueRange to BlockAndValueMapper.

Summary:
It is often needed to map entire ranges rather than single values. To avoid
writing the same for loop every time, I have added an overload to the map
method.

Differential Revision: https://reviews.llvm.org/D73894
mlir/include/mlir/IR/BlockAndValueMapping.h
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp