MLIR  16.0.0git
ValueRange.cpp
Go to the documentation of this file.
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 
18  return TypeRangeRange(*this);
19 }
20 
22 
23 //===----------------------------------------------------------------------===//
24 // OperandRange
25 
27  return {begin(), end()};
28 }
29 
31 
32 //===----------------------------------------------------------------------===//
33 // ResultRange
34 
36  return {begin(), end()};
37 }
38 
40 
41 //===----------------------------------------------------------------------===//
42 // ValueRange
43 
44 ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; }
45 
Include the generated interface declarations.
This class provides an abstraction for a range of TypeRange.
Definition: TypeRange.h:93
TypeRangeRange getType() const
Definition: ValueRange.cpp:21
type_range getTypes() const
Definition: ValueRange.cpp:44
TypeRangeRange getTypes() const
Returns the range of types of the values within this range.
Definition: ValueRange.cpp:17
This class implements iteration on the types of a given range of values.
Definition: Block.h:26
type_range getTypes() const
Definition: ValueRange.cpp:35
type_range getType() const
Definition: ValueRange.cpp:46
type_range getType() const
Definition: ValueRange.cpp:30
type_range getTypes() const
Definition: ValueRange.cpp:26
type_range getType() const
Definition: ValueRange.cpp:39