behavior.
)";
-static const char kTypeStrDunderDocstring[] =
- R"(Prints the assembly form of the type.)";
-
static const char kDumpDocstring[] =
R"(Dumps a debug representation of the object to stderr.)";
printAccum.getUserData());
return printAccum.join();
},
- kTypeStrDunderDocstring);
+ "Returns the assembly form of the operation.");
// Mapping of PyRegion.
py::class_<PyRegion>(m, "Region")
printAccum.getUserData());
return printAccum.join();
},
- kTypeStrDunderDocstring);
+ "Returns the assembly form of the block.");
- // Mapping of Type.
+ // Mapping of PyAttribute.
py::class_<PyAttribute>(m, "Attribute")
.def_property_readonly(
"context",
printAccum.getUserData());
return printAccum.join();
},
- kTypeStrDunderDocstring)
+ "Returns the assembly form of the Attribute.")
.def("__repr__", [](PyAttribute &self) {
// Generally, assembly formats are not printed for __repr__ because
// this can cause exceptionally long debug output and exceptions.
PyStringAttribute::bind(m);
PyDenseElementsAttribute::bind(m);
- // Mapping of Type.
+ // Mapping of PyType.
py::class_<PyType>(m, "Type")
.def_property_readonly(
"context", [](PyType &self) { return self.getContext().getObject(); },
printAccum.getUserData());
return printAccum.join();
},
- kTypeStrDunderDocstring)
+ "Returns the assembly form of the type.")
.def("__repr__", [](PyType &self) {
// Generally, assembly formats are not printed for __repr__ because
// this can cause exceptionally long debug output and exceptions.