MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::OpTrait::AtMostOneChildOf< ChildOps >::Impl< ConcreteType > Class Template Reference

#include "mlir/Dialect/IRDL/IR/IRDLTraits.h"

+ Inheritance diagram for mlir::OpTrait::AtMostOneChildOf< ChildOps >::Impl< ConcreteType >:

Public Member Functions

template<typename OpT >
std::enable_if_t< std::disjunction< std::is_same< OpT, ChildOps >... >::value, std::optional< OpT > > getOp ()
 Get the unique operation of a specific op that is in the operation region. More...
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

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

Detailed Description

template<typename... ChildOps>
template<typename ConcreteType>
class mlir::OpTrait::AtMostOneChildOf< ChildOps >::Impl< ConcreteType >

Definition at line 33 of file IRDLTraits.h.

Member Function Documentation

◆ getOp()

template<typename... ChildOps>
template<typename ConcreteType >
template<typename OpT >
std::enable_if_t<std::disjunction<std::is_same<OpT, ChildOps>...>::value, std::optional<OpT> > mlir::OpTrait::AtMostOneChildOf< ChildOps >::Impl< ConcreteType >::getOp ( )
inline

Get the unique operation of a specific op that is in the operation region.

Definition at line 69 of file IRDLTraits.h.

References mlir::OpTrait::TraitBase< ConcreteType, AtMostOneChildOf< ChildOps... >::Impl >::getOperation().

◆ verifyTrait()

template<typename... ChildOps>
template<typename ConcreteType >
static LogicalResult mlir::OpTrait::AtMostOneChildOf< ChildOps >::Impl< ConcreteType >::verifyTrait ( Operation op)
inlinestatic

Definition at line 36 of file IRDLTraits.h.


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