MLIR
20.0.0git
|
Utility trait base that provides accessors for derived traits that have multiple operands. More...
#include "mlir/IR/OpDefinition.h"
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 > | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
Utility trait base that provides accessors for derived traits that have multiple operands.
Definition at line 389 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_iterator = Operation::operand_iterator |
Definition at line 390 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_range = Operation::operand_range |
Definition at line 391 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_iterator = Operation::operand_type_iterator |
Definition at line 392 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiOperandTraitBase< ConcreteType, TraitType >::operand_type_range = Operation::operand_type_range |
Definition at line 393 of file OpDefinition.h.
|
inline |
Return the number of operands.
Definition at line 396 of file OpDefinition.h.
References mlir::Operation::getNumOperands(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().
|
inline |
Return the operand at index 'i'.
Definition at line 399 of file OpDefinition.h.
References mlir::Operation::getOperand(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().
|
inline |
Definition at line 411 of file OpDefinition.h.
References mlir::Operation::getOperands(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().
|
inline |
Definition at line 420 of file OpDefinition.h.
References mlir::Operation::getOperandTypes(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().
|
inline |
Operand iterator access.
Definition at line 407 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::operand_begin().
|
inline |
Definition at line 410 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::operand_end().
|
inline |
Operand type access.
Definition at line 414 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::operand_type_begin().
|
inline |
Definition at line 417 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::operand_type_end().
|
inline |
Set the operand at index 'i' to 'value'.
Definition at line 402 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::setOperand().