MLIR
20.0.0git
|
Utility trait base that provides accessors for derived traits that have multiple results. More...
#include "mlir/IR/OpDefinition.h"
Public Types | |
using | result_iterator = Operation::result_iterator |
using | result_range = Operation::result_range |
using | result_type_iterator = Operation::result_type_iterator |
using | result_type_range = Operation::result_type_range |
Public Member Functions | |
unsigned | getNumResults () |
Return the number of results. More... | |
Value | getResult (unsigned i) |
Return the result at index 'i'. More... | |
template<typename ValuesT > | |
void | replaceAllUsesWith (ValuesT &&values) |
Replace all uses of results of this operation with the provided 'values'. More... | |
Type | getType (unsigned i) |
Return the type of the i -th result. More... | |
result_iterator | result_begin () |
Result iterator access. More... | |
result_iterator | result_end () |
result_range | getResults () |
result_type_iterator | result_type_begin () |
Result type access. More... | |
result_type_iterator | result_type_end () |
result_type_range | getResultTypes () |
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 results.
Definition at line 620 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::result_iterator = Operation::result_iterator |
Definition at line 621 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::result_range = Operation::result_range |
Definition at line 622 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::result_type_iterator = Operation::result_type_iterator |
Definition at line 623 of file OpDefinition.h.
using mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::result_type_range = Operation::result_type_range |
Definition at line 624 of file OpDefinition.h.
|
inline |
Return the number of results.
Definition at line 627 of file OpDefinition.h.
References mlir::Operation::getNumResults(), and mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation().
|
inline |
Return the result at index 'i'.
Definition at line 630 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::getResult().
Referenced by mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::getType().
|
inline |
Definition at line 647 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::getResults().
|
inline |
Definition at line 656 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::getResultTypes().
|
inline |
Return the type of the i
-th result.
Definition at line 640 of file OpDefinition.h.
References mlir::OpTrait::detail::MultiResultTraitBase< ConcreteType, TraitType >::getResult(), and mlir::Value::getType().
|
inline |
Replace all uses of results of this operation with the provided 'values'.
'values' may correspond to an existing operation, or a range of 'Value'.
Definition at line 635 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::replaceAllUsesWith().
|
inline |
Result iterator access.
Definition at line 643 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::result_begin().
|
inline |
Definition at line 646 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::result_end().
|
inline |
Result type access.
Definition at line 650 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::result_type_begin().
|
inline |
Definition at line 653 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation(), and mlir::Operation::result_type_end().