Lines Matching refs:PyAttribute

1162         auto &attribute = it.second.cast<PyAttribute &>();  in create()
1505 PyAttribute(context, segmentLengthAttr); in buildGeneric()
1515 PyAttribute(context, segmentLengthAttr); in buildGeneric()
1641 bool PyAttribute::operator==(const PyAttribute &other) { in operator ==()
1645 py::object PyAttribute::getCapsule() { in getCapsule()
1649 PyAttribute PyAttribute::createFromCapsule(py::object capsule) { in createFromCapsule()
1653 return PyAttribute( in createFromCapsule()
1753 PyAttribute PySymbolTable::insert(PyOperationBase &symbol) { in insert()
1760 return PyAttribute( in insert()
1765 PyAttribute PySymbolTable::getSymbolName(PyOperationBase &symbol) { in getSymbolName()
1774 return PyAttribute(symbol.getOperation().getContext(), existingNameAttr); in getSymbolName()
1792 PyAttribute PySymbolTable::getVisibility(PyOperationBase &symbol) { in getVisibility()
1800 return PyAttribute(symbol.getOperation().getContext(), existingVisAttr); in getVisibility()
2132 PyAttribute dunderGetItemNamed(const std::string &name) { in dunderGetItemNamed()
2139 return PyAttribute(operation->getContext(), attr); in dunderGetItemNamed()
2155 void dunderSetItem(const std::string &name, const PyAttribute &attr) { in dunderSetItem()
2434 llvm::Optional<PyAttribute> metadata, in populateIRCore()
2938 py::class_<PyAttribute>(m, "Attribute", py::module_local()) in populateIRCore()
2941 .def(py::init<PyAttribute &>(), py::arg("cast_from_type"), in populateIRCore()
2944 &PyAttribute::getCapsule) in populateIRCore()
2945 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyAttribute::createFromCapsule) in populateIRCore()
2958 return PyAttribute(context->getRef(), type); in populateIRCore()
2964 [](PyAttribute &self) { return self.getContext().getObject(); }, in populateIRCore()
2967 [](PyAttribute &self) { in populateIRCore()
2973 [](PyAttribute &self, std::string name) { in populateIRCore()
2978 [](PyAttribute &self, PyAttribute &other) { return self == other; }) in populateIRCore()
2979 .def("__eq__", [](PyAttribute &self, py::object &other) { return false; }) in populateIRCore()
2981 [](PyAttribute &self) { in populateIRCore()
2985 "dump", [](PyAttribute &self) { mlirAttributeDump(self); }, in populateIRCore()
2989 [](PyAttribute &self) { in populateIRCore()
2996 .def("__repr__", [](PyAttribute &self) { in populateIRCore()
3042 return PyAttribute(std::move(contextRef), self.namedAttr.attribute); in populateIRCore()