Commit 25d01e0
Store function signatures instead of FuncOp handles in functionMap (review doc 2)
NamespaceInfo::functionMap cached raw mlir_ts::FuncOp handles; since
the discovery pass emits into a throwaway module (#213), any handle
registered during discovery is guaranteed to dangle once the module is
erased - consumers survived only because they read the (context-owned)
type early. The map now stores FunctionEntry { symbol name, function
type }, which is all any consumer used; the one site that needs a live
op (generic-instantiation short-circuit) resolves it through
theModule.lookupSymbol with a short/full-name fallback.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent f0bf983 commit 25d01e0
2 files changed
Lines changed: 32 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
988 | 1002 | | |
989 | 1003 | | |
990 | 1004 | | |
| |||
998 | 1012 | | |
999 | 1013 | | |
1000 | 1014 | | |
1001 | | - | |
| 1015 | + | |
1002 | 1016 | | |
1003 | 1017 | | |
1004 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5312 | 5312 | | |
5313 | 5313 | | |
5314 | 5314 | | |
5315 | | - | |
| 5315 | + | |
5316 | 5316 | | |
5317 | 5317 | | |
5318 | 5318 | | |
| |||
6032 | 6032 | | |
6033 | 6033 | | |
6034 | 6034 | | |
6035 | | - | |
| 6035 | + | |
| 6036 | + | |
6036 | 6037 | | |
6037 | 6038 | | |
6038 | 6039 | | |
| |||
6081 | 6082 | | |
6082 | 6083 | | |
6083 | 6084 | | |
6084 | | - | |
6085 | | - | |
| 6085 | + | |
| 6086 | + | |
6086 | 6087 | | |
6087 | 6088 | | |
| 6089 | + | |
| 6090 | + | |
| 6091 | + | |
| 6092 | + | |
| 6093 | + | |
| 6094 | + | |
| 6095 | + | |
| 6096 | + | |
6088 | 6097 | | |
6089 | 6098 | | |
6090 | 6099 | | |
| |||
15966 | 15975 | | |
15967 | 15976 | | |
15968 | 15977 | | |
15969 | | - | |
15970 | | - | |
15971 | | - | |
15972 | | - | |
15973 | | - | |
| 15978 | + | |
| 15979 | + | |
15974 | 15980 | | |
15975 | 15981 | | |
15976 | 15982 | | |
| |||
26273 | 26279 | | |
26274 | 26280 | | |
26275 | 26281 | | |
26276 | | - | |
| 26282 | + | |
26277 | 26283 | | |
26278 | 26284 | | |
26279 | 26285 | | |
26280 | 26286 | | |
26281 | | - | |
| 26287 | + | |
26282 | 26288 | | |
26283 | 26289 | | |
26284 | 26290 | | |
| |||
0 commit comments