Go to the source code of this file.
◆ DEFINE_C_API_METHODS
#define DEFINE_C_API_METHODS |
( |
|
name, |
|
|
|
cpptype |
|
) |
| |
Value: static inline name
wrap(cpptype cpp) { \
return name{cpp.getAsOpaquePointer()}; \
} \
static
inline cpptype
unwrap(name c) { \
return cpptype::getFromOpaquePointer(c.ptr); \
}
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Definition at line 31 of file Wrap.h.
◆ DEFINE_C_API_PTR_METHODS
#define DEFINE_C_API_PTR_METHODS |
( |
|
name, |
|
|
|
cpptype |
|
) |
| |
Value: static inline name
wrap(cpptype *cpp) {
return name{cpp}; } \
static
inline cpptype *
unwrap(name c) { \
return static_cast<cpptype *>(c.ptr); \
}
Definition at line 25 of file Wrap.h.
◆ unwrapList()
template<typename CppTy , typename CTy >
Definition at line 40 of file Wrap.h.
References unwrap().
Referenced by mlirAffineMapGet(), mlirArrayAttrGet(), mlirDenseElementsAttrGet(), mlirFunctionTypeGet(), mlirIntegerSetGet(), mlirIntegerSetReplaceGet(), mlirLLVMDICompositeTypeAttrGet(), mlirLLVMDIExpressionAttrGet(), mlirLLVMDIImportedEntityAttrGet(), mlirLLVMDISubprogramAttrGet(), mlirLLVMDISubroutineTypeAttrGet(), mlirLLVMFunctionTypeGet(), mlirLLVMStructTypeIdentifiedNewGet(), mlirLLVMStructTypeLiteralGet(), mlirLLVMStructTypeLiteralGetChecked(), mlirLLVMStructTypeSetBody(), mlirLocationFusedGet(), mlirOperationSetOperands(), mlirRewriterBaseCreateBlockBefore(), mlirRewriterBaseInlineBlockBefore(), mlirRewriterBaseMergeBlocks(), mlirRewriterBaseReplaceAllOpUsesWithValueRange(), mlirRewriterBaseReplaceAllValueRangeUsesWith(), mlirRewriterBaseReplaceOpUsesWithinBlock(), mlirRewriterBaseReplaceOpWithValues(), and mlirTupleTypeGet().