diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2019-12-09 08:57:27 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-09 08:57:56 -0800 |
| commit | 70aeb4566e35541ffeef28050babc1c9580b43eb (patch) | |
| tree | 5955edd534f872ecc7ef626436e5ac63224acc17 /mlir/test/lib/TestDialect | |
| parent | 7b19bd5411a68399db4bcf3c2804a67f1d0b3a62 (diff) | |
| download | bcm5719-llvm-70aeb4566e35541ffeef28050babc1c9580b43eb.tar.gz bcm5719-llvm-70aeb4566e35541ffeef28050babc1c9580b43eb.zip | |
Add RegionRange for when need to abstract over different region iteration
Follows ValueRange in representing a generic abstraction over the different
ways to represent a range of Regions. This wrapper is not as ValueRange and only
considers the current cases of interest: MutableArrayRef<Region> and
ArrayRef<std::unique_ptr<Region>> as occurs during op construction vs op region
querying.
Note: ArrayRef<std::unique_ptr<Region>> allows for unset regions, so this range
returns a pointer to a Region instead of a Region.
PiperOrigin-RevId: 284563229
Diffstat (limited to 'mlir/test/lib/TestDialect')
| -rw-r--r-- | mlir/test/lib/TestDialect/TestDialect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/TestDialect/TestDialect.cpp b/mlir/test/lib/TestDialect/TestDialect.cpp index f470e6ab674..059cfb3dce7 100644 --- a/mlir/test/lib/TestDialect/TestDialect.cpp +++ b/mlir/test/lib/TestDialect/TestDialect.cpp @@ -291,7 +291,7 @@ LogicalResult TestOpWithVariadicResultsAndFolder::fold( LogicalResult mlir::OpWithInferTypeInterfaceOp::inferReturnTypes( llvm::Optional<Location> location, ValueRange operands, - ArrayRef<NamedAttribute> attributes, ArrayRef<Region> regions, + ArrayRef<NamedAttribute> attributes, RegionRange regions, SmallVectorImpl<Type> &inferedReturnTypes) { if (operands[0]->getType() != operands[1]->getType()) { return emitOptionalError(location, "operand type mismatch ", |

