|
MLIR 23.0.0git
|
#include "mlir-c/ExtensibleDialect.h"#include "mlir/CAPI/IR.h"#include "mlir/CAPI/Support.h"#include "mlir/IR/ExtensibleDialect.h"#include "mlir/IR/OperationSupport.h"Go to the source code of this file.
Classes | |
| class | mlir::ExternalDynamicOpTrait |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
Functions | |
| bool | mlirDynamicOpTraitAttach (MlirDynamicOpTrait dynamicOpTrait, MlirStringRef opName, MlirContext context) |
| Attach a dynamic op trait to the given operation name. | |
| MlirDynamicOpTrait | mlirDynamicOpTraitIsTerminatorCreate () |
| Get the dynamic op trait that indicates the operation is a terminator. | |
| MlirDynamicOpTrait | mlirDynamicOpTraitNoTerminatorCreate () |
| Get the dynamic op trait that indicates regions have no terminator. | |
| void | mlirDynamicOpTraitDestroy (MlirDynamicOpTrait dynamicOpTrait) |
| Destroy the dynamic op trait. | |
| MlirDynamicOpTrait | mlirDynamicOpTraitCreate (MlirTypeID typeID, MlirDynamicOpTraitCallbacks callbacks, void *userData) |
| Create a custom dynamic op trait with the given type ID and callbacks. | |
| bool | mlirDialectIsAExtensibleDialect (MlirDialect dialect) |
| Check if the given dialect is an extensible dialect. | |
| MlirDynamicTypeDefinition | mlirExtensibleDialectLookupTypeDefinition (MlirDialect dialect, MlirStringRef typeName) |
| Look up a registered type definition by type name in the given dialect. | |
| bool | mlirTypeIsADynamicType (MlirType type) |
| Check if the given type is a dynamic type. | |
| MlirTypeID | mlirDynamicTypeGetTypeID () |
| MlirType | mlirDynamicTypeGet (MlirDynamicTypeDefinition typeDef, MlirAttribute *attrs, intptr_t numAttrs) |
| Get a dynamic type by instantiating the given type definition with the provided attributes. | |
| intptr_t | mlirDynamicTypeGetNumParams (MlirType type) |
| Get the number of parameters in the given dynamic type. | |
| MlirAttribute | mlirDynamicTypeGetParam (MlirType type, intptr_t index) |
| Get the parameter at the given index in the provided dynamic type. | |
| MlirDynamicTypeDefinition | mlirDynamicTypeGetTypeDef (MlirType type) |
| Get the type definition of the given dynamic type. | |
| MlirTypeID | mlirDynamicTypeDefinitionGetTypeID (MlirDynamicTypeDefinition typeDef) |
| Get the type ID of a dynamic type definition. | |
| MlirStringRef | mlirDynamicTypeDefinitionGetName (MlirDynamicTypeDefinition typeDef) |
| Get the name of the given dynamic type definition. | |
| MlirDialect | mlirDynamicTypeDefinitionGetDialect (MlirDynamicTypeDefinition typeDef) |
| Get the dialect that the given dynamic type definition belongs to. | |
| MlirDynamicAttrDefinition | mlirExtensibleDialectLookupAttrDefinition (MlirDialect dialect, MlirStringRef attrName) |
| Look up a registered attribute definition by attribute name in the given dialect. | |
| bool | mlirAttributeIsADynamicAttr (MlirAttribute attr) |
| Check if the given attribute is a dynamic attribute. | |
| MlirTypeID | mlirDynamicAttrGetTypeID (void) |
| MlirAttribute | mlirDynamicAttrGet (MlirDynamicAttrDefinition attrDef, MlirAttribute *attrs, intptr_t numAttrs) |
| Get a dynamic attribute by instantiating the given attribute definition with the provided attributes. | |
| intptr_t | mlirDynamicAttrGetNumParams (MlirAttribute attr) |
| Get the number of parameters in the given dynamic attribute. | |
| MlirAttribute | mlirDynamicAttrGetParam (MlirAttribute attr, intptr_t index) |
| Get the parameter at the given index in the provided dynamic attribute. | |
| MlirDynamicAttrDefinition | mlirDynamicAttrGetAttrDef (MlirAttribute attr) |
| Get the attribute definition of the given dynamic attribute. | |
| MlirTypeID | mlirDynamicAttrDefinitionGetTypeID (MlirDynamicAttrDefinition attrDef) |
| Get the type ID of a dynamic attribute definition. | |
| MlirStringRef | mlirDynamicAttrDefinitionGetName (MlirDynamicAttrDefinition attrDef) |
| Get the name of the given dynamic attribute definition. | |
| MlirDialect | mlirDynamicAttrDefinitionGetDialect (MlirDynamicAttrDefinition attrDef) |
| Get the dialect that the given dynamic attribute definition belongs to. | |
| bool mlirAttributeIsADynamicAttr | ( | MlirAttribute | attr | ) |
Check if the given attribute is a dynamic attribute.
Definition at line 154 of file ExtensibleDialect.cpp.
References unwrap().
| bool mlirDialectIsAExtensibleDialect | ( | MlirDialect | dialect | ) |
Check if the given dialect is an extensible dialect.
Definition at line 91 of file ExtensibleDialect.cpp.
References unwrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::getDynamicAttrDef(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::getDynamicTypeDef().
| MlirDialect mlirDynamicAttrDefinitionGetDialect | ( | MlirDynamicAttrDefinition | attrDef | ) |
Get the dialect that the given dynamic attribute definition belongs to.
Definition at line 195 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirStringRef mlirDynamicAttrDefinitionGetName | ( | MlirDynamicAttrDefinition | attrDef | ) |
Get the name of the given dynamic attribute definition.
Definition at line 190 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirTypeID mlirDynamicAttrDefinitionGetTypeID | ( | MlirDynamicAttrDefinition | attrDef | ) |
Get the type ID of a dynamic attribute definition.
Definition at line 185 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirAttribute mlirDynamicAttrGet | ( | MlirDynamicAttrDefinition | attrDef, |
| MlirAttribute * | attrs, | ||
| intptr_t | numAttrs ) |
Get a dynamic attribute by instantiating the given attribute definition with the provided attributes.
Definition at line 162 of file ExtensibleDialect.cpp.
References mlir::DynamicAttr::get(), unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirDynamicAttrDefinition mlirDynamicAttrGetAttrDef | ( | MlirAttribute | attr | ) |
Get the attribute definition of the given dynamic attribute.
Definition at line 180 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| intptr_t mlirDynamicAttrGetNumParams | ( | MlirAttribute | attr | ) |
Get the number of parameters in the given dynamic attribute.
Definition at line 172 of file ExtensibleDialect.cpp.
References unwrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirAttribute mlirDynamicAttrGetParam | ( | MlirAttribute | attr, |
| intptr_t | index ) |
Get the parameter at the given index in the provided dynamic attribute.
Definition at line 176 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicAttribute::bindDerived().
| MlirTypeID mlirDynamicAttrGetTypeID | ( | void | ) |
Definition at line 158 of file ExtensibleDialect.cpp.
References mlir::detail::StorageUserBase< ConcreteType, BaseType, StorageType, detail::AttributeUniquer, Traits... >::getTypeID(), and wrap().
| bool mlirDynamicOpTraitAttach | ( | MlirDynamicOpTrait | dynamicOpTrait, |
| MlirStringRef | opName, | ||
| MlirContext | context ) |
Attach a dynamic op trait to the given operation name.
Note that the operation name must be modeled by dynamic dialect and must be registered. The ownership of the trait will be transferred to the operation name after this call.
Definition at line 21 of file ExtensibleDialect.cpp.
References mlir::OperationName::getImpl(), mlir::RegisteredOperationName::lookup(), mlirDynamicOpTraitAttach(), and unwrap().
Referenced by mlirDynamicOpTraitAttach().
| MlirDynamicOpTrait mlirDynamicOpTraitCreate | ( | MlirTypeID | typeID, |
| MlirDynamicOpTraitCallbacks | callbacks, | ||
| void * | userData ) |
Create a custom dynamic op trait with the given type ID and callbacks.
Definition at line 85 of file ExtensibleDialect.cpp.
| void mlirDynamicOpTraitDestroy | ( | MlirDynamicOpTrait | dynamicOpTrait | ) |
Destroy the dynamic op trait.
Definition at line 49 of file ExtensibleDialect.cpp.
References unwrap().
| MlirDynamicOpTrait mlirDynamicOpTraitIsTerminatorCreate | ( | void | ) |
Get the dynamic op trait that indicates the operation is a terminator.
Definition at line 41 of file ExtensibleDialect.cpp.
References wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicOpTraits::IsTerminator::bind().
| MlirDynamicOpTrait mlirDynamicOpTraitNoTerminatorCreate | ( | void | ) |
Get the dynamic op trait that indicates regions have no terminator.
Definition at line 45 of file ExtensibleDialect.cpp.
References wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicOpTraits::NoTerminator::bind().
| MlirDialect mlirDynamicTypeDefinitionGetDialect | ( | MlirDynamicTypeDefinition | typeDef | ) |
Get the dialect that the given dynamic type definition belongs to.
Definition at line 143 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirStringRef mlirDynamicTypeDefinitionGetName | ( | MlirDynamicTypeDefinition | typeDef | ) |
Get the name of the given dynamic type definition.
Definition at line 138 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirTypeID mlirDynamicTypeDefinitionGetTypeID | ( | MlirDynamicTypeDefinition | typeDef | ) |
Get the type ID of a dynamic type definition.
Definition at line 133 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirType mlirDynamicTypeGet | ( | MlirDynamicTypeDefinition | typeDef, |
| MlirAttribute * | attrs, | ||
| intptr_t | numAttrs ) |
Get a dynamic type by instantiating the given type definition with the provided attributes.
Definition at line 110 of file ExtensibleDialect.cpp.
References mlir::DynamicType::get(), unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| intptr_t mlirDynamicTypeGetNumParams | ( | MlirType | type | ) |
Get the number of parameters in the given dynamic type.
Definition at line 120 of file ExtensibleDialect.cpp.
References unwrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirAttribute mlirDynamicTypeGetParam | ( | MlirType | type, |
| intptr_t | index ) |
Get the parameter at the given index in the provided dynamic type.
Definition at line 124 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirDynamicTypeDefinition mlirDynamicTypeGetTypeDef | ( | MlirType | type | ) |
Get the type definition of the given dynamic type.
Definition at line 128 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyDynamicType::bindDerived().
| MlirTypeID mlirDynamicTypeGetTypeID | ( | ) |
Definition at line 106 of file ExtensibleDialect.cpp.
References mlir::detail::StorageUserBase< ConcreteType, BaseType, StorageType, detail::TypeUniquer, Traits... >::getTypeID(), and wrap().
| MlirDynamicAttrDefinition mlirExtensibleDialectLookupAttrDefinition | ( | MlirDialect | dialect, |
| MlirStringRef | attrName ) |
Look up a registered attribute definition by attribute name in the given dialect.
Note that the dialect must be an extensible dialect.
Definition at line 148 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::getDynamicAttrDef().
| MlirDynamicTypeDefinition mlirExtensibleDialectLookupTypeDefinition | ( | MlirDialect | dialect, |
| MlirStringRef | typeName ) |
Look up a registered type definition by type name in the given dialect.
Note that the dialect must be an extensible dialect.
Definition at line 96 of file ExtensibleDialect.cpp.
References unwrap(), and wrap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::getDynamicTypeDef().
| bool mlirTypeIsADynamicType | ( | MlirType | type | ) |
Check if the given type is a dynamic type.
Definition at line 102 of file ExtensibleDialect.cpp.
References unwrap().