Skip to content

Commit

Permalink
export jl_resolve_globals_in_ir (JuliaLang#42013)
Browse files Browse the repository at this point in the history
This would be very useful for external `AbstractInterpreter`s
to infer (and possibly even optimize) toplevel thunks.
  • Loading branch information
aviatesk authored and LilithHafner committed Mar 8, 2022
1 parent f566ff2 commit 279848c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jl_exported_funcs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
XX(jl_exit_on_sigint) \
XX(jl_exit_threaded_region) \
XX(jl_expand) \
XX(jl_resolve_globals_in_ir) \
XX(jl_expand_and_resolve) \
XX(jl_expand_stmt) \
XX(jl_expand_stmt_with_loc) \
Expand Down Expand Up @@ -550,4 +551,3 @@
XX(jl_vprintf) \
XX(jl_wakeup_thread) \
XX(jl_yield) \

2 changes: 1 addition & 1 deletion src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static jl_value_t *resolve_globals(jl_value_t *expr, jl_module_t *module, jl_sve
return expr;
}

void jl_resolve_globals_in_ir(jl_array_t *stmts, jl_module_t *m, jl_svec_t *sparam_vals,
JL_DLLEXPORT void jl_resolve_globals_in_ir(jl_array_t *stmts, jl_module_t *m, jl_svec_t *sparam_vals,
int binding_effects)
{
size_t i, l = jl_array_len(stmts);
Expand Down

0 comments on commit 279848c

Please sign in to comment.