13#include "mlir/Bindings/Python/NanobindAdaptors.h"
15#include <nanobind/nanobind.h>
18using namespace mlir::python::nanobind_adaptors;
21 m.doc() =
"Arc dialect Python native extension";
26 [](nb::object cls, MlirType innerType) {
29 nb::arg(
"cls"), nb::arg(
"inner_type"))
30 .def_property_readonly(
36 [](nb::object cls,
unsigned numWords, MlirType wordType,
37 MlirType addressType) {
40 nb::arg(
"cls"), nb::arg(
"num_words"), nb::arg(
"word_type"),
41 nb::arg(
"address_type"));
46 [](nb::object cls, MlirContext ctx, nb::object size) {
52 nb::arg(
"cls"), nb::arg(
"context") = nb::none(),
53 nb::arg(
"size") = nb::none());
58 [](nb::object cls, MlirAttribute model) {
61 nb::arg(
"cls"), nb::arg(
"model"));
MLIR_CAPI_EXPORTED MlirType arcMemoryTypeGet(unsigned numWords, MlirType wordType, MlirType addressType)
MLIR_CAPI_EXPORTED bool arcTypeIsASimModelInstance(MlirType type)
MLIR_CAPI_EXPORTED MlirType arcStateTypeGetType(MlirType type)
MLIR_CAPI_EXPORTED bool arcTypeIsAState(MlirType type)
MLIR_CAPI_EXPORTED MlirType arcStorageTypeGet(MlirContext ctx)
MLIR_CAPI_EXPORTED MlirType arcSimModelInstanceTypeGet(MlirAttribute model)
MLIR_CAPI_EXPORTED MlirType arcStorageTypeGetWithSize(MlirContext ctx, unsigned size)
MLIR_CAPI_EXPORTED bool arcTypeIsAMemory(MlirType type)
MLIR_CAPI_EXPORTED bool arcTypeIsAStorage(MlirType type)
MLIR_CAPI_EXPORTED MlirType arcStateTypeGet(MlirType innerType)
void populateDialectArcSubmodule(nanobind::module_ &m)