HomePhabricator

[MLIR] Add mapping based on ValueRange to BlockAndValueMapper.

Authored by Stephan Herhut <herhut@google.com> on Feb 3 2020, 7:33 AM.

Description

[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