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 | |
17 | TypeRangeRange OperandRangeRange::getTypes() const { |
18 | return TypeRangeRange(*this); |
19 | } |
20 | |
21 | TypeRangeRange OperandRangeRange::getType() const { return getTypes(); } |
22 | |
23 | //===----------------------------------------------------------------------===// |
24 | // OperandRange |
25 | |
26 | OperandRange::type_range OperandRange::getTypes() const { |
27 | return {begin(), end()}; |
28 | } |
29 | |
30 | OperandRange::type_range OperandRange::getType() const { return getTypes(); } |
31 | |
32 | //===----------------------------------------------------------------------===// |
33 | // ResultRange |
34 | |
35 | ResultRange::type_range ResultRange::getTypes() const { |
36 | return {begin(), end()}; |
37 | } |
38 | |
39 | ResultRange::type_range ResultRange::getType() const { return getTypes(); } |
40 | |
41 | //===----------------------------------------------------------------------===// |
42 | // ValueRange |
43 | |
44 | ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; } |
45 | |
46 | ValueRange::type_range ValueRange::getType() const { return getTypes(); } |
47 |