MLIR  20.0.0git
Public Types | Public Member Functions | List of all members
mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType > Struct Template Reference

Utility trait base that provides accessors for derived traits that have multiple successors. More...

#include "mlir/IR/OpDefinition.h"

+ Inheritance diagram for mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >:

Public Types

using succ_iterator = Operation::succ_iterator
 
using succ_range = SuccessorRange
 

Public Member Functions

unsigned getNumSuccessors ()
 Return the number of successors. More...
 
BlockgetSuccessor (unsigned i)
 Return the successor at index. More...
 
void setSuccessor (Block *block, unsigned i)
 Set the successor at index. More...
 
succ_iterator succ_begin ()
 Successor iterator access. More...
 
succ_iterator succ_end ()
 
succ_range getSuccessors ()
 

Additional Inherited Members

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

Detailed Description

template<typename ConcreteType, template< typename > class TraitType>
struct mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >

Utility trait base that provides accessors for derived traits that have multiple successors.

Definition at line 785 of file OpDefinition.h.

Member Typedef Documentation

◆ succ_iterator

template<typename ConcreteType , template< typename > class TraitType>
using mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::succ_iterator = Operation::succ_iterator

Definition at line 786 of file OpDefinition.h.

◆ succ_range

template<typename ConcreteType , template< typename > class TraitType>
using mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::succ_range = SuccessorRange

Definition at line 787 of file OpDefinition.h.

Member Function Documentation

◆ getNumSuccessors()

template<typename ConcreteType , template< typename > class TraitType>
unsigned mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::getNumSuccessors ( )
inline

Return the number of successors.

Definition at line 790 of file OpDefinition.h.

References mlir::Operation::getNumSuccessors(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().

◆ getSuccessor()

template<typename ConcreteType , template< typename > class TraitType>
Block* mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::getSuccessor ( unsigned  i)
inline

Return the successor at index.

Definition at line 795 of file OpDefinition.h.

References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::getSuccessor().

◆ getSuccessors()

template<typename ConcreteType , template< typename > class TraitType>
succ_range mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::getSuccessors ( )
inline

◆ setSuccessor()

template<typename ConcreteType , template< typename > class TraitType>
void mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::setSuccessor ( Block block,
unsigned  i 
)
inline

Set the successor at index.

Definition at line 800 of file OpDefinition.h.

References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::setSuccessor().

◆ succ_begin()

template<typename ConcreteType , template< typename > class TraitType>
succ_iterator mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::succ_begin ( )
inline

Successor iterator access.

Definition at line 805 of file OpDefinition.h.

References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().

◆ succ_end()

template<typename ConcreteType , template< typename > class TraitType>
succ_iterator mlir::OpTrait::detail::MultiSuccessorTraitBase< ConcreteType, TraitType >::succ_end ( )
inline

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