MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::OpTrait::OneRegion< ConcreteType > Class Template Reference

This class provides APIs for ops that are known to have a single region. More...

#include "mlir/IR/OpDefinition.h"

+ Inheritance diagram for mlir::OpTrait::OneRegion< ConcreteType >:

Public Member Functions

RegiongetRegion ()
 
auto getOps ()
 Returns a range of operations within the region of this operation. More...
 
template<typename OpT >
auto getOps ()
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, OneRegion >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 

Detailed Description

template<typename ConcreteType>
class mlir::OpTrait::OneRegion< ConcreteType >

This class provides APIs for ops that are known to have a single region.

Definition at line 549 of file OpDefinition.h.

Member Function Documentation

◆ getOps() [1/2]

template<typename ConcreteType >
auto mlir::OpTrait::OneRegion< ConcreteType >::getOps ( )
inline

Returns a range of operations within the region of this operation.

Definition at line 554 of file OpDefinition.h.

References mlir::Region::getOps(), and mlir::OpTrait::OneRegion< ConcreteType >::getRegion().

◆ getOps() [2/2]

template<typename ConcreteType >
template<typename OpT >
auto mlir::OpTrait::OneRegion< ConcreteType >::getOps ( )
inline

◆ getRegion()

template<typename ConcreteType >
Region& mlir::OpTrait::OneRegion< ConcreteType >::getRegion ( )
inline

◆ verifyTrait()

template<typename ConcreteType >
static LogicalResult mlir::OpTrait::OneRegion< ConcreteType >::verifyTrait ( Operation op)
inlinestatic

Definition at line 560 of file OpDefinition.h.

References mlir::OpTrait::impl::verifyOneRegion().


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