Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir-c/IR.h
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
static inline bool mlirModuleIsNull(MlirModule module) { return !module.ptr; } | static inline bool mlirModuleIsNull(MlirModule module) { return !module.ptr; } | ||||
/// Takes a module owned by the caller and deletes it. | /// Takes a module owned by the caller and deletes it. | ||||
MLIR_CAPI_EXPORTED void mlirModuleDestroy(MlirModule module); | MLIR_CAPI_EXPORTED void mlirModuleDestroy(MlirModule module); | ||||
/// Views the module as a generic operation. | /// Views the module as a generic operation. | ||||
MLIR_CAPI_EXPORTED MlirOperation mlirModuleGetOperation(MlirModule module); | MLIR_CAPI_EXPORTED MlirOperation mlirModuleGetOperation(MlirModule module); | ||||
/// Views the generic operation as a module. | |||||
/// The returned module is null when the input operation was not a ModuleOp. | |||||
MLIR_CAPI_EXPORTED MlirModule mlirModuleFromOperation(MlirOperation op); | |||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// Operation state. | // Operation state. | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
/// An auxiliary class for constructing operations. | /// An auxiliary class for constructing operations. | ||||
/// | /// | ||||
/// This class contains all the information necessary to construct the | /// This class contains all the information necessary to construct the | ||||
/// operation. It owns the MlirRegions it has pointers to and does not own | /// operation. It owns the MlirRegions it has pointers to and does not own | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |