My Project
Public Types | Public Member Functions | List of all members
mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType > Struct Template Reference

#include <OpDefinition.h>

Inheritance diagram for mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >:
Collaboration graph
[legend]

Public Types

using operand_iterator = Operation::operand_iterator
 
using operand_range = Operation::operand_range
 
using operand_type_iterator = Operation::operand_type_iterator
 
using operand_type_range = Operation::operand_type_range
 

Public Member Functions

unsigned getNumOperands ()
 Return the number of operands. More...
 
Value getOperand (unsigned i)
 Return the operand at index 'i'. More...
 
void setOperand (unsigned i, Value value)
 Set the operand at index 'i' to 'value'. More...
 
operand_iterator operand_begin ()
 Operand iterator access. More...
 
operand_iterator operand_end ()
 
operand_range getOperands ()
 
operand_type_iterator operand_type_begin ()
 Operand type access. More...
 
operand_type_iterator operand_type_end ()
 
operand_type_range getOperandTypes ()
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, TraitType >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 
- Static Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, TraitType >
static LogicalResult verifyTrait (Operation *op)
 
static AbstractOperation::OperationProperties getTraitProperties ()
 

Detailed Description

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

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

Member Typedef Documentation

◆ operand_iterator

template<typename ConcreteType, template< typename > class TraitType>
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_iterator = Operation::operand_iterator

◆ operand_range

template<typename ConcreteType, template< typename > class TraitType>
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_range = Operation::operand_range

◆ operand_type_iterator

template<typename ConcreteType, template< typename > class TraitType>
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_iterator = Operation::operand_type_iterator

◆ operand_type_range

template<typename ConcreteType, template< typename > class TraitType>
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_range = Operation::operand_type_range

Member Function Documentation

◆ getNumOperands()

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

Return the number of operands.

◆ getOperand()

template<typename ConcreteType, template< typename > class TraitType>
Value mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::getOperand ( unsigned  i)
inline

Return the operand at index 'i'.

◆ getOperands()

template<typename ConcreteType, template< typename > class TraitType>
operand_range mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::getOperands ( )
inline

◆ getOperandTypes()

template<typename ConcreteType, template< typename > class TraitType>
operand_type_range mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::getOperandTypes ( )
inline

◆ operand_begin()

template<typename ConcreteType, template< typename > class TraitType>
operand_iterator mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_begin ( )
inline

Operand iterator access.

◆ operand_end()

template<typename ConcreteType, template< typename > class TraitType>
operand_iterator mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_end ( )
inline

◆ operand_type_begin()

template<typename ConcreteType, template< typename > class TraitType>
operand_type_iterator mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_begin ( )
inline

Operand type access.

◆ operand_type_end()

template<typename ConcreteType, template< typename > class TraitType>
operand_type_iterator mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_end ( )
inline

◆ setOperand()

template<typename ConcreteType, template< typename > class TraitType>
void mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::setOperand ( unsigned  i,
Value  value 
)
inline

Set the operand at index 'i' to 'value'.


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