Searched refs:PyAttribute (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Bindings/Python/ |
| H A D | IRTypes.cpp | 367 llvm::Optional<PyAttribute> &encodingAttr, in bindDerived() 390 [](PyRankedTensorType &self) -> llvm::Optional<PyAttribute> { in bindDerived() 394 return PyAttribute(self.getContext(), encoding); in bindDerived() 441 PyAttribute *layout, PyAttribute *memorySpace, in bindDerived() 467 [](PyMemRefType &self) -> PyAttribute { in bindDerived() 469 return PyAttribute(self.getContext(), layout); in bindDerived() 481 [](PyMemRefType &self) -> PyAttribute { in bindDerived() 483 return PyAttribute(self.getContext(), a); in bindDerived() 500 [](PyType &elementType, PyAttribute *memorySpace, in bindDerived() 525 [](PyUnrankedMemRefType &self) -> PyAttribute { in bindDerived() [all …]
|
| H A D | IRModule.h | 815 class PyAttribute : public BaseContextObject { 817 PyAttribute(PyMlirContextRef contextRef, MlirAttribute attr) in PyAttribute() function 819 bool operator==(const PyAttribute &other); 864 template <typename DerivedTy, typename BaseTy = PyAttribute> 876 PyConcreteAttribute(PyAttribute &orig) in PyConcreteAttribute() 879 static MlirAttribute castFrom(PyAttribute &orig) { in castFrom() 896 [](PyAttribute &otherAttr) -> bool { in bind() 900 cls.def_property_readonly("type", [](PyAttribute &attr) { in bind() 1030 PyAttribute insert(PyOperationBase &symbol); 1033 static PyAttribute getSymbolName(PyOperationBase &symbol); [all …]
|
| H A D | IRAttributes.cpp | 121 PyArrayAttributeIterator(PyAttribute attr) : attr(std::move(attr)) {} in PyArrayAttributeIterator() 125 PyAttribute dunderNext() { in dunderNext() 129 return PyAttribute(attr.getContext(), in dunderNext() 141 PyAttribute attr; 145 PyAttribute getItem(intptr_t i) { in getItem() 146 return PyAttribute(getContext(), mlirArrayAttrGetElement(*this, i)); in getItem() 156 mlirAttributes.push_back(pyTryCast<PyAttribute>(attribute)); in bindDerived() 184 attributes.push_back(pyTryCast<PyAttribute>(attr)); in bindDerived() 507 PyAttribute &elementAttr) { in getSplat() 777 auto &mlirAttr = it.second.cast<PyAttribute &>(); in bindDerived() [all …]
|
| H A D | IRCore.cpp | 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() 1760 return PyAttribute( in insert() 2978 [](PyAttribute &self, PyAttribute &other) { return self == other; }) in populateIRCore() 2981 [](PyAttribute &self) { in populateIRCore() 2989 [](PyAttribute &self) { in populateIRCore() [all …]
|
| H A D | IRInterfaces.cpp | 188 llvm::Optional<PyAttribute> attributes, in inferReturnTypes()
|