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

source code of mlir/lib/IR/ValueRange.cpp