Lines Matching refs:PyValue
1115 llvm::Optional<std::vector<PyValue *>> operands, in create()
1131 for (PyValue *operand : *operands) { in create()
1399 std::vector<PyValue *> operands; in buildGeneric()
1405 operands.push_back(py::cast<PyValue *>(it.value())); in buildGeneric()
1433 auto *operandValue = py::cast<PyValue *>(std::get<0>(it.value())); in buildGeneric()
1460 operands.push_back(py::cast<PyValue *>(segmentItem)); in buildGeneric()
1693 pybind11::object PyValue::getCapsule() { in getCapsule()
1697 PyValue PyValue::createFromCapsule(pybind11::object capsule) { in createFromCapsule()
1711 return PyValue(ownerRef, value); in createFromCapsule()
1876 class PyConcreteValue : public PyValue {
1882 using ClassTy = py::class_<DerivedTy, PyValue>;
1887 : PyValue(operationRef, value) {} in PyConcreteValue()
1888 PyConcreteValue(PyValue &orig) in PyConcreteValue()
1893 static MlirValue castFrom(PyValue &orig) { in castFrom()
1906 cls.def(py::init<PyValue &>(), py::keep_alive<0, 1>(), py::arg("value")); in bind()
1909 [](PyValue &otherValue) -> bool { in bind()
2031 class PyOpOperandList : public Sliceable<PyOpOperandList, PyValue> {
2043 void dunderSetItem(intptr_t index, PyValue value) { in dunderSetItem()
2054 friend class Sliceable<PyOpOperandList, PyValue>;
2061 PyValue getRawElement(intptr_t pos) { in getRawElement()
2072 return PyValue(pyOwner, operand); in getRawElement()
2114 PyValue value(operation, mlirOperationGetResult(operation->get(), index)); in getRawElement()
3108 py::class_<PyValue>(m, "Value", py::module_local()) in populateIRCore()
3109 .def_property_readonly(MLIR_PYTHON_CAPI_PTR_ATTR, &PyValue::getCapsule) in populateIRCore()
3110 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyValue::createFromCapsule) in populateIRCore()
3113 [](PyValue &self) { return self.getParentOperation()->getContext(); }, in populateIRCore()
3116 "dump", [](PyValue &self) { mlirValueDump(self.get()); }, in populateIRCore()
3120 [](PyValue &self) { in populateIRCore()
3128 [](PyValue &self, PyValue &other) { in populateIRCore()
3131 .def("__eq__", [](PyValue &self, py::object other) { return false; }) in populateIRCore()
3133 [](PyValue &self) { in populateIRCore()
3138 [](PyValue &self) { in populateIRCore()
3147 .def_property_readonly("type", [](PyValue &self) { in populateIRCore()