MLIR  16.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 >:
+ Collaboration 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 492 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 497 of file OpDefinition.h.

◆ getOps() [2/2]

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

Definition at line 499 of file OpDefinition.h.

◆ getRegion()

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

Definition at line 494 of file OpDefinition.h.

◆ verifyTrait()

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

Definition at line 503 of file OpDefinition.h.

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


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