1 //===- ValueRange.cpp - Indexed Value-Iterators Range Classes -------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "mlir/IR/ValueRange.h"
10 #include "mlir/IR/TypeRange.h"
14 //===----------------------------------------------------------------------===//
17 TypeRangeRange
OperandRangeRange::getTypes() const {
18 return TypeRangeRange(*this);
21 TypeRangeRange
OperandRangeRange::getType() const { return getTypes(); }
23 //===----------------------------------------------------------------------===//
26 OperandRange::type_range
OperandRange::getTypes() const {
27 return {begin(), end()};
30 OperandRange::type_range
OperandRange::getType() const { return getTypes(); }
32 //===----------------------------------------------------------------------===//
35 ResultRange::type_range
ResultRange::getTypes() const {
36 return {begin(), end()};
39 ResultRange::type_range
ResultRange::getType() const { return getTypes(); }
41 //===----------------------------------------------------------------------===//
44 ValueRange::type_range
ValueRange::getTypes() const { return {begin(), end()}; }
46 ValueRange::type_range
ValueRange::getType() const { return getTypes(); }