Lines Matching defs:PySymbolTable
2272 // PySymbolTable.
2275 PySymbolTable::PySymbolTable(PyOperationBase &operation)
2283 nb::object PySymbolTable::dunderGetItem(const std::string &name) {
2296 void PySymbolTable::erase(PyOperationBase &symbol) {
2306 void PySymbolTable::dunderDel(const std::string &name) {
2311 MlirAttribute PySymbolTable::insert(PyOperationBase &symbol) {
2321 MlirAttribute PySymbolTable::getSymbolName(PyOperationBase &symbol) {
2333 void PySymbolTable::setSymbolName(PyOperationBase &symbol,
2348 MlirAttribute PySymbolTable::getVisibility(PyOperationBase &symbol) {
2359 void PySymbolTable::setVisibility(PyOperationBase &symbol,
2377 void PySymbolTable::replaceAllSymbolUses(const std::string &oldSymbol,
2389 void PySymbolTable::walkSymbolTables(PyOperationBase &from,
3964 nb::class_<PySymbolTable>(m, "SymbolTable")
3966 .def("__getitem__", &PySymbolTable::dunderGetItem)
3967 .def("insert", &PySymbolTable::insert, nb::arg("operation"))
3968 .def("erase", &PySymbolTable::erase, nb::arg("operation"))
3969 .def("__delitem__", &PySymbolTable::dunderDel)
3971 [](PySymbolTable &table, const std::string &name) {
3976 .def_static("set_symbol_name", &PySymbolTable::setSymbolName,
3978 .def_static("get_symbol_name", &PySymbolTable::getSymbolName,
3980 .def_static("get_visibility", &PySymbolTable::getVisibility,
3982 .def_static("set_visibility", &PySymbolTable::setVisibility,
3985 &PySymbolTable::replaceAllSymbolUses, nb::arg("old_symbol"),
3987 .def_static("walk_symbol_tables", &PySymbolTable::walkSymbolTables,