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

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

#include "mlir/IR/OpDefinition.h"

+ Inheritance diagram for mlir::OpTrait::OneSuccessor< ConcreteType >:
+ Collaboration diagram for mlir::OpTrait::OneSuccessor< ConcreteType >:

Public Member Functions

BlockgetSuccessor ()
 
void setSuccessor (Block *succ)
 

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

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

Detailed Description

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

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

Definition at line 756 of file OpDefinition.h.

Member Function Documentation

◆ getSuccessor()

template<typename ConcreteType >
Block* mlir::OpTrait::OneSuccessor< ConcreteType >::getSuccessor ( )
inline

Definition at line 758 of file OpDefinition.h.

References mlir::Block::getSuccessor().

◆ setSuccessor()

template<typename ConcreteType >
void mlir::OpTrait::OneSuccessor< ConcreteType >::setSuccessor ( Block succ)
inline

Definition at line 759 of file OpDefinition.h.

◆ verifyTrait()

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

Definition at line 763 of file OpDefinition.h.

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


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