MLIR 22.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
10#include "mlir/IR/TypeRange.h"
11
12using namespace mlir;
13
14//===----------------------------------------------------------------------===//
15// TypeRangeRange
16//===----------------------------------------------------------------------===//
17
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
48ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; }
49
TypeRangeRange getTypes() const
Returns the range of types of the values within this range.
TypeRangeRange getType() const
type_range getType() const
type_range getTypes() const
ValueTypeRange< OperandRange > type_range
Definition ValueRange.h:49
ValueTypeRange< ResultRange > type_range
Definition ValueRange.h:258
type_range getTypes() const
type_range getType() const
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
Include the generated interface declarations.