Lines Matching refs:PyOperation
370 PyOperation::forOperation(parentOperation->getContext(), next); in dunderNext()
421 return PyOperation::forOperation(parentOperation->getContext(), childOp) in dunderGetItem()
916 PyOperation::PyOperation(PyMlirContextRef contextRef, MlirOperation operation) in PyOperation() function in PyOperation
919 PyOperation::~PyOperation() { in ~PyOperation()
932 PyOperationRef PyOperation::createInstance(PyMlirContextRef contextRef, in createInstance()
937 PyOperation *unownedOperation = in createInstance()
938 new PyOperation(std::move(contextRef), operation); in createInstance()
952 PyOperationRef PyOperation::forOperation(PyMlirContextRef contextRef, in forOperation()
963 PyOperation *existing = it->second.second; in forOperation()
968 PyOperationRef PyOperation::createDetached(PyMlirContextRef contextRef, in createDetached()
982 void PyOperation::checkValid() const { in checkValid()
993 PyOperation &operation = getOperation(); in print()
1048 PyOperation &operation = getOperation(); in moveAfter()
1049 PyOperation &otherOp = other.getOperation(); in moveAfter()
1057 PyOperation &operation = getOperation(); in moveBefore()
1058 PyOperation &otherOp = other.getOperation(); in moveBefore()
1065 llvm::Optional<PyOperationRef> PyOperation::getParentOperation() { in getParentOperation()
1072 return PyOperation::forOperation(getContext(), operation); in getParentOperation()
1075 PyBlock PyOperation::getBlock() { in getBlock()
1084 py::object PyOperation::getCapsule() { in getCapsule()
1089 py::object PyOperation::createFromCapsule(py::object capsule) { in createFromCapsule()
1113 py::object PyOperation::create( in create()
1229 PyOperation::createDetached(location->getContext(), operation); in create()
1235 py::object PyOperation::clone(const py::object &maybeIp) { in clone()
1238 PyOperation::createDetached(getContext(), clonedOperation); in clone()
1244 py::object PyOperation::createOpView() { in createOpView()
1255 void PyOperation::erase() { in erase()
1520 return PyOperation::create(name, in buildGeneric()
1580 PyOperation &operation = operationBase.getOperation(); in insert()
1613 PyOperationRef firstOpRef = PyOperation::forOperation( in atBlockBegin()
1622 PyOperationRef terminatorOpRef = PyOperation::forOperation( in atBlockTerminator()
1710 PyOperation::forOperation(PyMlirContext::forContext(ctx), owner); in createFromCapsule()
1733 return PyOperation::forOperation(operation->getContext(), symbol, in dunderGetItem()
1767 PyOperation &operation = symbol.getOperation(); in getSymbolName()
1780 PyOperation &operation = symbol.getOperation(); in setSymbolName()
1793 PyOperation &operation = symbol.getOperation(); in getVisibility()
1809 PyOperation &operation = symbol.getOperation(); in setVisibility()
1824 PyOperation &fromOperation = from.getOperation(); in replaceAllSymbolUses()
1836 PyOperation &fromOperation = from.getOperation(); in walkSymbolTables()
1852 PyOperation::forOperation(calleeUserData->context, foundOp); in walkSymbolTables()
2071 PyOperation::forOperation(operation->getContext(), owner); in getRawElement()
2513 return PyOperation::forOperation(self.getContext(), in populateIRCore()
2522 PyOperationRef moduleOp = PyOperation::forOperation( in populateIRCore()
2605 PyOperation &operation = self.getOperation(); in populateIRCore()
2657 PyOperation &operation = self.getOperation(); in populateIRCore()
2667 py::class_<PyOperation, PyOperationBase>(m, "Operation", py::module_local()) in populateIRCore()
2668 .def_static("create", &PyOperation::create, py::arg("name"), in populateIRCore()
2676 [](PyOperation &self) -> py::object { in populateIRCore()
2682 .def("erase", &PyOperation::erase) in populateIRCore()
2683 .def("clone", &PyOperation::clone, py::arg("ip") = py::none()) in populateIRCore()
2685 &PyOperation::getCapsule) in populateIRCore()
2686 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyOperation::createFromCapsule) in populateIRCore()
2688 [](PyOperation &self) { in populateIRCore()
2697 [](PyOperation &self) { in populateIRCore()
2702 .def_property_readonly("opview", &PyOperation::createOpView); in populateIRCore()