Searched refs:PyType (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Bindings/Python/ |
| H A D | IRTypes.cpp | 205 [](PyType &elementType) { in bindDerived() 220 [](PyComplexType &self) -> PyType { in bindDerived() 222 return PyType(self.getContext(), t); in bindDerived() 239 return PyType(self.getContext(), t); in bindDerived() 335 [](std::vector<int64_t> shape, PyType &elementType, in bindDerived() 366 [](std::vector<int64_t> shape, PyType &elementType, in bindDerived() 500 [](PyType &elementType, PyAttribute *memorySpace, in bindDerived() 548 elements.push_back(element.cast<PyType>()); in bindDerived() 556 [](PyTupleType &self, intptr_t pos) -> PyType { in bindDerived() 558 return PyType(self.getContext(), t); in bindDerived() [all …]
|
| H A D | IRModule.h | 38 class PyType; variable 745 class PyType : public BaseContextObject { 747 PyType(PyMlirContextRef contextRef, MlirType type) in PyType() function 749 bool operator==(const PyType &other); 760 static PyType createFromCapsule(pybind11::object capsule); 771 template <typename DerivedTy, typename BaseTy = PyType> 783 PyConcreteType(PyType &orig) in PyConcreteType() 786 static MlirType castFrom(PyType &orig) { in castFrom() 798 cls.def(pybind11::init<PyType &>(), pybind11::keep_alive<0, 1>(), in bind() 802 [](PyType &otherType) -> bool { in bind() [all …]
|
| H A D | IRCore.cpp | 331 argTypes.push_back(pyArg.cast<PyType &>()); in appendBlock() 1141 for (PyType *result : *results) { in create() 1314 std::vector<PyType *> resultTypes; in buildGeneric() 1673 bool PyType::operator==(const PyType &other) { in operator ==() 1677 py::object PyType::getCapsule() { in getCapsule() 1681 PyType PyType::createFromCapsule(py::object capsule) { in createFromCapsule() 1969 std::vector<PyType> result; in getValueTypes() 3076 .def("__eq__", [](PyType &self, PyType &other) { return self == other; }) in populateIRCore() 3079 [](PyType &self) { in populateIRCore() 3086 [](PyType &self) { in populateIRCore() [all …]
|
| H A D | IRInterfaces.cpp | 169 std::vector<PyType> &inferredTypes; 186 std::vector<PyType> 209 std::vector<PyType> inferredTypes; in inferReturnTypes()
|
| H A D | IRAttributes.cpp | 202 [](PyType &type, double value, DefaultingPyLocation loc) { in bindDerived() 253 [](PyType &type, int64_t value) { in bindDerived() 332 [](std::string dialectNamespace, py::buffer buffer, PyType &type, in bindDerived() 378 [](PyType &type, std::string value) { in bindDerived() 404 getFromBuffer(py::buffer array, bool signless, Optional<PyType> explicitType, in getFromBuffer() 506 static PyDenseElementsAttribute getSplat(const PyType &shapedType, in getSplat() 859 [](PyType value, DefaultingPyMlirContext context) { in bindDerived() 866 return PyType(self.getContext()->getRef(), in bindDerived()
|
| H A D | IRAffine.cpp | 34 template <typename PyType, typename CType> 41 result.push_back(item.cast<PyType>()); in pyListToVector()
|