MLIR
20.0.0git
|
This class provides return value APIs for ops that are known to have a single result. More...
#include "mlir/IR/OpDefinition.h"
Public Member Functions | |
mlir::TypedValue< ResultType > | getResult () |
operator mlir::TypedValue< ResultType > () | |
If the operation returns a single value, then the Op can be implicitly converted to a Value. More... | |
ResultType | getType () |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, OneTypedResult< ResultType >::Impl > | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
This class provides return value APIs for ops that are known to have a single result.
ResultType is the concrete type returned by getType().
Definition at line 694 of file OpDefinition.h.
|
inline |
Definition at line 697 of file OpDefinition.h.
References mlir::OpTrait::TraitBase< ConcreteType, OneTypedResult< ResultType >::Impl >::getOperation(), and mlir::Operation::getResult().
Referenced by mlir::OpTrait::OneTypedResult< ResultType >::Impl< ConcreteType >::getType(), and mlir::OpTrait::OneTypedResult< ResultType >::Impl< ConcreteType >::operator mlir::TypedValue< ResultType >().
|
inline |
Definition at line 706 of file OpDefinition.h.
References mlir::OpTrait::OneTypedResult< ResultType >::Impl< ConcreteType >::getResult().
|
inline |
If the operation returns a single value, then the Op can be implicitly converted to a Value.
This yields the value of the only result.
Definition at line 704 of file OpDefinition.h.
References mlir::OpTrait::OneTypedResult< ResultType >::Impl< ConcreteType >::getResult().