[mlir] Allow RegionRange to accept ArrayRef<Region *>
authorMogball <jeffniu22@gmail.com>
Fri, 25 Mar 2022 22:44:34 +0000 (22:44 +0000)
committerMogball <jeffniu22@gmail.com>
Mon, 28 Mar 2022 19:39:42 +0000 (19:39 +0000)
commit979ffe97b9bf925a9d1448d13aa4737cfda8fc35
treecacf185fe159ba1423f6192295015323c1ea471b
parentb73f1d2c5d92a923c79435e423d7db9d6fa64eac
[mlir] Allow RegionRange to accept ArrayRef<Region *>

Adds another pointer to the union in RegionRange to allow RegionRange to work on ArrayRef<Region *> (i.e. vectors of Region *).

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D122514
mlir/include/mlir/IR/Region.h
mlir/lib/IR/Region.cpp