Lines Matching refs:object
47 PyObjectRef(T *referrent, pybind11::object object) in PyObjectRef() argument
48 : referrent(referrent), object(std::move(object)) { in PyObjectRef()
51 assert(this->object && "cannot construct PyObjectRef with null object"); in PyObjectRef()
54 : referrent(other.referrent), object(std::move(other.object)) { in PyObjectRef()
56 assert(!other.object); in PyObjectRef()
59 : referrent(other.referrent), object(other.object /* copies */) {} in PyObjectRef()
63 if (!object) in getRefCount()
65 return object.ref_count(); in getRefCount()
71 pybind11::object releaseObject() { in releaseObject()
72 assert(referrent && object); in releaseObject()
74 auto stolen = std::move(object); in releaseObject()
80 assert(referrent && object);
83 pybind11::object getObject() { in getObject()
84 assert(referrent && object); in getObject()
85 return object; in getObject()
87 operator bool() const { return referrent && object; }
91 pybind11::object object; variable
110 PyThreadContextEntry(FrameKind frameKind, pybind11::object context, in PyThreadContextEntry()
111 pybind11::object insertionPoint, in PyThreadContextEntry()
112 pybind11::object location) in PyThreadContextEntry()
132 static pybind11::object pushContext(PyMlirContext &context);
134 static pybind11::object pushInsertionPoint(PyInsertionPoint &insertionPoint);
136 static pybind11::object pushLocation(PyLocation &location);
143 static void push(FrameKind frameKind, pybind11::object context,
144 pybind11::object insertionPoint, pybind11::object location);
147 pybind11::object context;
149 pybind11::object insertionPoint;
151 pybind11::object location;
189 pybind11::object getCapsule();
195 static pybind11::object createFromCapsule(pybind11::object capsule);
215 pybind11::object contextEnter();
216 void contextExit(const pybind11::object &excType,
217 const pybind11::object &excVal,
218 const pybind11::object &excTb);
222 pybind11::object attachDiagnosticHandler(pybind11::object callback);
330 PyDiagnosticHandler(MlirContext context, pybind11::object callback);
339 pybind11::object contextEnter() { return pybind11::cast(this); } in contextEnter()
340 void contextExit(const pybind11::object &excType, in contextExit()
341 const pybind11::object &excVal, in contextExit()
342 const pybind11::object &excTb) { in contextExit()
348 pybind11::object callback;
385 PyDialect(pybind11::object descriptor) : descriptor(std::move(descriptor)) {} in PyDialect()
387 pybind11::object getDescriptor() { return descriptor; } in getDescriptor()
390 pybind11::object descriptor;
412 pybind11::object getCapsule();
413 static PyDialectRegistry createFromCapsule(pybind11::object capsule);
429 pybind11::object contextEnter();
430 void contextExit(const pybind11::object &excType,
431 const pybind11::object &excVal,
432 const pybind11::object &excTb);
435 pybind11::object getCapsule();
441 static PyLocation createFromCapsule(pybind11::object capsule);
478 pybind11::reinterpret_borrow<pybind11::object>(handle)); in getRef()
485 pybind11::object getCapsule();
491 static pybind11::object createFromCapsule(pybind11::object capsule);
505 void print(pybind11::object fileObject, bool binary,
509 pybind11::object getAsm(bool binary,
540 pybind11::object parentKeepAlive = pybind11::object());
546 pybind11::object parentKeepAlive = pybind11::object());
553 parentKeepAlive = pybind11::object(); in detachFromParent()
565 this, pybind11::reinterpret_borrow<pybind11::object>(handle)); in getRef()
569 void setAttached(const pybind11::object &parent = pybind11::object()) {
588 pybind11::object getCapsule();
593 static pybind11::object createFromCapsule(pybind11::object capsule);
596 static pybind11::object
601 DefaultingPyLocation location, const pybind11::object &ip);
604 pybind11::object createOpView();
614 pybind11::object clone(const pybind11::object &ip);
620 pybind11::object parentKeepAlive);
630 pybind11::object parentKeepAlive;
645 PyOpView(const pybind11::object &operationObject);
648 static pybind11::object createRawSubclass(const pybind11::object &userClass);
650 pybind11::object getOperationObject() { return operationObject; } in getOperationObject()
652 static pybind11::object
653 buildGeneric(const pybind11::object &cls, pybind11::list resultTypeList,
658 const pybind11::object &maybeIp);
662 pybind11::object operationObject; // Holds the reference.
727 pybind11::object contextEnter();
728 void contextExit(const pybind11::object &excType,
729 const pybind11::object &excVal,
730 const pybind11::object &excTb);
754 pybind11::object getCapsule();
760 static PyType createFromCapsule(pybind11::object capsule);
824 pybind11::object getCapsule();
830 static PyAttribute createFromCapsule(pybind11::object capsule);
928 pybind11::object getCapsule();
932 static PyValue createFromCapsule(pybind11::object capsule);
949 pybind11::object getCapsule();
955 static PyAffineExpr createFromCapsule(pybind11::object capsule);
976 pybind11::object getCapsule();
982 static PyAffineMap createFromCapsule(pybind11::object capsule);
997 pybind11::object getCapsule();
1002 static PyIntegerSet createFromCapsule(pybind11::object capsule);
1019 pybind11::object dunderGetItem(const std::string &name);
1049 pybind11::object callback);