MLIR  19.0.0git
Namespaces | Functions
Support.h File Reference
#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)
 

Function Documentation

◆ unwrap() [1/2]

mlir::LogicalResult unwrap ( MlirLogicalResult  res)
inline

Definition at line 44 of file Support.h.

References mlirLogicalResultIsSuccess(), and mlir::success().

◆ unwrap() [2/2]

llvm::StringRef unwrap ( MlirStringRef  ref)
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.

◆ wrap() [1/2]

MlirStringRef wrap ( llvm::StringRef  ref)
inline

Converts a StringRef into its MLIR C API equivalent.

Definition at line 29 of file Support.h.

References mlirStringRefCreate().

◆ wrap() [2/2]

MlirLogicalResult wrap ( mlir::LogicalResult  res)
inline