MLIR
18.0.0git
|
This class provides support for representing a failure result, or a valid value of type T
.
More...
#include "mlir/Support/LogicalResult.h"
Public Member Functions | |
FailureOr (LogicalResult result) | |
Allow constructing from a LogicalResult. More... | |
FailureOr () | |
FailureOr (T &&y) | |
FailureOr (const T &y) | |
template<typename U , std::enable_if_t< std::is_constructible< T, U >::value > * = nullptr> | |
FailureOr (const FailureOr< U > &other) | |
operator LogicalResult () const | |
This class provides support for representing a failure result, or a valid value of type T
.
This allows for integrating with LogicalResult, while also providing a value on the success path.
Definition at line 78 of file LogicalResult.h.
|
inline |
Allow constructing from a LogicalResult.
The result must be a failure. Success results should use a proper instance of type T
.
Definition at line 82 of file LogicalResult.h.
References mlir::failed().
|
inline |
Definition at line 86 of file LogicalResult.h.
|
inline |
Definition at line 87 of file LogicalResult.h.
|
inline |
Definition at line 88 of file LogicalResult.h.
|
inline |
Definition at line 91 of file LogicalResult.h.
|
inline |
Definition at line 95 of file LogicalResult.h.
References mlir::success().