MLIR  16.0.0git
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"
+ Include dependency graph for Support.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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]

llvm::StringRef unwrap ( MlirStringRef  ref)
inline

Creates a StringRef out of its MLIR C API equivalent.

Definition at line 30 of file Support.h.

References MlirStringRef::data, and MlirStringRef::length.

◆ unwrap() [2/2]

mlir::LogicalResult unwrap ( MlirLogicalResult  res)
inline

Definition at line 40 of file Support.h.

◆ wrap() [1/2]

MlirStringRef wrap ( llvm::StringRef  ref)
inline

Converts a StringRef into its MLIR C API equivalent.

Definition at line 25 of file Support.h.

References mlirStringRefCreate().

◆ wrap() [2/2]

MlirLogicalResult wrap ( mlir::LogicalResult  res)
inline

Definition at line 34 of file Support.h.