MLIR  20.0.0git
Public Member Functions | List of all members
mlir::RegionRange Class Reference

This class provides an abstraction over the different types of ranges over Regions. More...

#include "mlir/IR/Region.h"

+ Inheritance diagram for mlir::RegionRange:

Public Member Functions

 RegionRange (MutableArrayRef< Region > regions=std::nullopt)
 
template<typename Arg , typename = std::enable_if_t<std::is_constructible< ArrayRef<std::unique_ptr<Region>>, Arg>::value>>
 RegionRange (Arg &&arg)
 
template<typename Arg >
 RegionRange (Arg &&arg, std::enable_if_t< std::is_constructible< ArrayRef< Region * >, Arg >::value > *=nullptr)
 
 RegionRange (ArrayRef< std::unique_ptr< Region >> regions)
 
 RegionRange (ArrayRef< Region * > regions)
 

Detailed Description

This class provides an abstraction over the different types of ranges over Regions.

In many cases, this prevents the need to explicitly materialize a SmallVector/std::vector. This class should be used in places that are not suitable for a more derived type (e.g. ArrayRef) or a template range parameter.

Definition at line 342 of file Region.h.

Constructor & Destructor Documentation

◆ RegionRange() [1/5]

RegionRange::RegionRange ( MutableArrayRef< Region regions = std::nullopt)

Definition at line 260 of file Region.cpp.

◆ RegionRange() [2/5]

template<typename Arg , typename = std::enable_if_t<std::is_constructible< ArrayRef<std::unique_ptr<Region>>, Arg>::value>>
mlir::RegionRange::RegionRange ( Arg &&  arg)
inline

Definition at line 360 of file Region.h.

◆ RegionRange() [3/5]

template<typename Arg >
mlir::RegionRange::RegionRange ( Arg &&  arg,
std::enable_if_t< std::is_constructible< ArrayRef< Region * >, Arg >::value > *  = nullptr 
)
inline

Definition at line 364 of file Region.h.

◆ RegionRange() [4/5]

RegionRange::RegionRange ( ArrayRef< std::unique_ptr< Region >>  regions)

Definition at line 262 of file Region.cpp.

◆ RegionRange() [5/5]

RegionRange::RegionRange ( ArrayRef< Region * >  regions)

Definition at line 264 of file Region.cpp.


The documentation for this class was generated from the following files: