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