MLIR  16.0.0git
Classes | Namespaces | Functions
LogicalResult.h File Reference
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/Optional.h"
+ Include dependency graph for LogicalResult.h:

Go to the source code of this file.

Classes

struct  mlir::LogicalResult
 This class represents an efficient way to signal success or failure. More...
 
class  mlir::FailureOr< T >
 This class provides support for representing a failure result, or a valid value of type T. More...
 
class  mlir::ParseResult
 This class represents success/failure for parsing-like operations that find it important to chain together failable operations with ||. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 

Functions

LogicalResult mlir::success (bool isSuccess=true)
 Utility function to generate a LogicalResult. More...
 
LogicalResult mlir::failure (bool isFailure=true)
 Utility function to generate a LogicalResult. More...
 
bool mlir::succeeded (LogicalResult result)
 Utility function that returns true if the provided LogicalResult corresponds to a success value. More...
 
bool mlir::failed (LogicalResult result)
 Utility function that returns true if the provided LogicalResult corresponds to a failure value. More...
 
template<typename T , typename = std::enable_if_t<!std::is_convertible_v<T, bool>>>
auto mlir::success (T &&t)
 Wrap a value on the success path in a FailureOr of the same value type. More...