Lines Matching refs:PyAttribute

919         auto &attribute = it.second.cast<PyAttribute &>();  in create()
1115 bool PyAttribute::operator==(const PyAttribute &other) { in operator ==()
1119 py::object PyAttribute::getCapsule() { in getCapsule()
1123 PyAttribute PyAttribute::createFromCapsule(py::object capsule) { in createFromCapsule()
1127 return PyAttribute( in createFromCapsule()
1359 PyAttribute dunderGetItemNamed(const std::string &name) { in dunderGetItemNamed()
1366 return PyAttribute(operation->getContext(), attr); in dunderGetItemNamed()
1380 void dunderSetItem(const std::string &name, PyAttribute attr) { in dunderSetItem()
1429 template <typename DerivedTy, typename BaseTy = PyAttribute>
1441 PyConcreteAttribute(PyAttribute &orig) in PyConcreteAttribute()
1444 static MlirAttribute castFrom(PyAttribute &orig) { in castFrom()
1456 cls.def(py::init<PyAttribute &>(), py::keep_alive<0, 1>()); in bind()
1684 PyAttribute &elementAttr) { in getSplat()
2991 py::class_<PyAttribute>(m, "Attribute") in populateIRSubmodule()
2993 &PyAttribute::getCapsule) in populateIRSubmodule()
2994 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyAttribute::createFromCapsule) in populateIRSubmodule()
3007 return PyAttribute(context->getRef(), type); in populateIRSubmodule()
3013 [](PyAttribute &self) { return self.getContext().getObject(); }, in populateIRSubmodule()
3016 [](PyAttribute &self) { in populateIRSubmodule()
3022 [](PyAttribute &self, std::string name) { in populateIRSubmodule()
3027 [](PyAttribute &self, PyAttribute &other) { return self == other; }) in populateIRSubmodule()
3028 .def("__eq__", [](PyAttribute &self, py::object &other) { return false; }) in populateIRSubmodule()
3030 "dump", [](PyAttribute &self) { mlirAttributeDump(self); }, in populateIRSubmodule()
3034 [](PyAttribute &self) { in populateIRSubmodule()
3041 .def("__repr__", [](PyAttribute &self) { in populateIRSubmodule()
3085 return PyAttribute(std::move(contextRef), self.namedAttr.attribute); in populateIRSubmodule()