[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / lib / IR / ValueRange.cpp
blobbd2e10098e61de22f9129aba2aae367a6bde93f7
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 //===----------------------------------------------------------------------===//
9 #include "mlir/IR/ValueRange.h"
10 #include "mlir/IR/TypeRange.h"
12 using namespace mlir;
14 //===----------------------------------------------------------------------===//
15 // TypeRangeRange
17 TypeRangeRange OperandRangeRange::getTypes() const {
18 return TypeRangeRange(*this);
21 TypeRangeRange OperandRangeRange::getType() const { return getTypes(); }
23 //===----------------------------------------------------------------------===//
24 // OperandRange
26 OperandRange::type_range OperandRange::getTypes() const {
27 return {begin(), end()};
30 OperandRange::type_range OperandRange::getType() const { return getTypes(); }
32 //===----------------------------------------------------------------------===//
33 // ResultRange
35 ResultRange::type_range ResultRange::getTypes() const {
36 return {begin(), end()};
39 ResultRange::type_range ResultRange::getType() const { return getTypes(); }
41 //===----------------------------------------------------------------------===//
42 // ValueRange
44 ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; }
46 ValueRange::type_range ValueRange::getType() const { return getTypes(); }