MLIR
20.0.0git
|
This class provides an abstraction over the different types of ranges over Blocks. More...
#include "mlir/IR/BlockSupport.h"
Public Member Functions | |
BlockRange (ArrayRef< Block * > blocks=std::nullopt) | |
BlockRange (SuccessorRange successors) | |
template<typename Arg , typename = std::enable_if_t<std::is_constructible< ArrayRef<Block *>, Arg>::value>> | |
BlockRange (Arg &&arg) | |
BlockRange (std::initializer_list< Block * > blocks) | |
This class provides an abstraction over the different types of ranges over Blocks.
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 103 of file BlockSupport.h.
BlockRange::BlockRange | ( | SuccessorRange | successors | ) |
|
inline |
Definition at line 113 of file BlockSupport.h.
|
inline |
Definition at line 115 of file BlockSupport.h.