MLIR
18.0.0git
|
#include "mlir-c/Support.h"
#include "mlir/CAPI/Wrap.h"
#include "mlir/Support/LogicalResult.h"
#include "mlir/Support/TypeID.h"
#include "llvm/ADT/StringRef.h"
Go to the source code of this file.
Namespaces | |
llvm | |
Include the generated interface declarations. | |
Functions | |
MlirStringRef | wrap (llvm::StringRef ref) |
Converts a StringRef into its MLIR C API equivalent. More... | |
llvm::StringRef | unwrap (MlirStringRef ref) |
Creates a StringRef out of its MLIR C API equivalent. More... | |
MlirLogicalResult | wrap (mlir::LogicalResult res) |
mlir::LogicalResult | unwrap (MlirLogicalResult res) |
|
inline |
Definition at line 44 of file Support.h.
References mlirLogicalResultIsSuccess(), and mlir::success().
|
inline |
Creates a StringRef out of its MLIR C API equivalent.
Definition at line 34 of file Support.h.
References MlirStringRef::data, and MlirStringRef::length.
|
inline |
Converts a StringRef into its MLIR C API equivalent.
Definition at line 29 of file Support.h.
References mlirStringRefCreate().
|
inline |
Definition at line 38 of file Support.h.
References mlirLogicalResultFailure(), mlirLogicalResultSuccess(), and mlir::succeeded().