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() const17TypeRangeRange OperandRangeRange::getTypes() const { 18 return TypeRangeRange(*this); 19 } 20 getType() const21TypeRangeRange OperandRangeRange::getType() const { return getTypes(); } 22 23 //===----------------------------------------------------------------------===// 24 // OperandRange 25 getTypes() const26OperandRange::type_range OperandRange::getTypes() const { 27 return {begin(), end()}; 28 } 29 getType() const30OperandRange::type_range OperandRange::getType() const { return getTypes(); } 31 32 //===----------------------------------------------------------------------===// 33 // ResultRange 34 getTypes() const35ResultRange::type_range ResultRange::getTypes() const { 36 return {begin(), end()}; 37 } 38 getType() const39ResultRange::type_range ResultRange::getType() const { return getTypes(); } 40 41 //===----------------------------------------------------------------------===// 42 // ValueRange 43 getTypes() const44ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; } 45 getType() const46ValueRange::type_range ValueRange::getType() const { return getTypes(); } 47