Lines Matching refs:PyLocation

639 PyLocation *PyThreadContextEntry::getLocation() {  in getLocation()
642 return py::cast<PyLocation *>(location); in getLocation()
655 PyLocation *PyThreadContextEntry::getDefaultLocation() { in getDefaultLocation()
703 py::object PyThreadContextEntry::pushLocation(PyLocation &location) { in pushLocation()
712 void PyThreadContextEntry::popLocation(PyLocation &location) { in popLocation()
765 PyLocation PyDiagnostic::getLocation() { in getLocation()
769 return PyLocation(PyMlirContext::forContext(context), loc); in getLocation()
825 py::object PyLocation::getCapsule() { in getCapsule()
829 PyLocation PyLocation::createFromCapsule(py::object capsule) { in createFromCapsule()
833 return PyLocation(PyMlirContext::forContext(mlirLocationGetContext(rawLoc)), in createFromCapsule()
837 py::object PyLocation::contextEnter() { in contextEnter()
841 void PyLocation::contextExit(const pybind11::object &excType, in contextExit()
847 PyLocation &DefaultingPyLocation::resolve() { in resolve()
2378 py::class_<PyLocation>(m, "Location", py::module_local()) in populateIRCore()
2379 .def_property_readonly(MLIR_PYTHON_CAPI_PTR_ATTR, &PyLocation::getCapsule) in populateIRCore()
2380 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyLocation::createFromCapsule) in populateIRCore()
2381 .def("__enter__", &PyLocation::contextEnter) in populateIRCore()
2382 .def("__exit__", &PyLocation::contextExit) in populateIRCore()
2384 [](PyLocation &self, PyLocation &other) -> bool { in populateIRCore()
2387 .def("__eq__", [](PyLocation &self, py::object other) { return false; }) in populateIRCore()
2400 return PyLocation(context->getRef(), in populateIRCore()
2407 [](PyLocation callee, const std::vector<PyLocation> &frames, in populateIRCore()
2412 for (const PyLocation &frame : in populateIRCore()
2415 return PyLocation(context->getRef(), in populateIRCore()
2424 return PyLocation( in populateIRCore()
2433 [](const std::vector<PyLocation> &pyLocations, in populateIRCore()
2443 return PyLocation(context->getRef(), location); in populateIRCore()
2449 [](std::string name, llvm::Optional<PyLocation> childLoc, in populateIRCore()
2451 return PyLocation( in populateIRCore()
2462 [](PyLocation &self) { return self.getContext().getObject(); }, in populateIRCore()
2466 [](PyLocation &self, std::string message) { in populateIRCore()
2470 .def("__repr__", [](PyLocation &self) { in populateIRCore()
2606 return PyLocation(operation.getContext(), in populateIRCore()