MLIR 22.0.0git
IRDL.h File Reference
#include "mlir-c/IR.h"

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (IRDL, irdl)
MLIR_CAPI_EXPORTED MlirLogicalResult mlirLoadIRDLDialects (MlirModule module)
 Loads all IRDL dialects in the provided module, registering the dialects in the module's associated context.
MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityAttrGet (MlirContext ctx, MlirStringRef value)
MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityArrayAttrGet (MlirContext ctx, intptr_t nValues, MlirAttribute const *values)

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( IRDL ,
irdl  )

References MLIR_CAPI_EXPORTED.

◆ mlirIRDLVariadicityArrayAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityArrayAttrGet ( MlirContext ctx,
intptr_t nValues,
MlirAttribute const * values )

Definition at line 33 of file IRDL.cpp.

References unwrap(), unwrapList(), and wrap().

◆ mlirIRDLVariadicityAttrGet()

MLIR_CAPI_EXPORTED MlirAttribute mlirIRDLVariadicityAttrGet ( MlirContext ctx,
MlirStringRef value )

Definition at line 24 of file IRDL.cpp.

References unwrap(), and wrap().

◆ mlirLoadIRDLDialects()

MLIR_CAPI_EXPORTED MlirLogicalResult mlirLoadIRDLDialects ( MlirModule module)

Loads all IRDL dialects in the provided module, registering the dialects in the module's associated context.

Definition at line 16 of file IRDL.cpp.

References mlir::irdl::loadDialects(), mlirLoadIRDLDialects(), unwrap(), and wrap().

Referenced by mlirLoadIRDLDialects(), and populateDialectIRDLSubmodule().