We are currently consolidating to a region-based representation. Once that's done, it might be more feasible to use MLIR's symbol table.