xref: /llvm-project/mlir/lib/IR/ValueRange.cpp (revision 10a4f0333557b4807e339767dd4cd72a27538aef)
1 //===- ValueRange.cpp - Indexed Value-Iterators Range Classes -------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "mlir/IR/ValueRange.h"
10 #include "mlir/IR/TypeRange.h"
11 
12 using namespace mlir;
13 
14 //===----------------------------------------------------------------------===//
15 // TypeRangeRange
16 
getTypes() const17 TypeRangeRange OperandRangeRange::getTypes() const {
18   return TypeRangeRange(*this);
19 }
20 
getType() const21 TypeRangeRange OperandRangeRange::getType() const { return getTypes(); }
22 
23 //===----------------------------------------------------------------------===//
24 // OperandRange
25 
getTypes() const26 OperandRange::type_range OperandRange::getTypes() const {
27   return {begin(), end()};
28 }
29 
getType() const30 OperandRange::type_range OperandRange::getType() const { return getTypes(); }
31 
32 //===----------------------------------------------------------------------===//
33 // ResultRange
34 
getTypes() const35 ResultRange::type_range ResultRange::getTypes() const {
36   return {begin(), end()};
37 }
38 
getType() const39 ResultRange::type_range ResultRange::getType() const { return getTypes(); }
40 
41 //===----------------------------------------------------------------------===//
42 // ValueRange
43 
getTypes() const44 ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; }
45 
getType() const46 ValueRange::type_range ValueRange::getType() const { return getTypes(); }
47