-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add a few hooks that make external AbstractInterpreters easier #36317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
94a1373
6df87cc
d4ec401
4fa57c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2100,6 +2100,10 @@ typedef struct { | |
|
||
// Cache access. Default: jl_rettype_inferred. | ||
jl_codeinstance_lookup_t lookup; | ||
|
||
// If not `nothing`, rewrite all generic calls to call | ||
// generic_context(f, args...) instead of f(args...). | ||
jl_value_t *generic_context; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs a default value in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Also I realize the comment is outdated, since I settled on |
||
} jl_cgparams_t; | ||
extern JL_DLLEXPORT jl_cgparams_t jl_default_cgparams; | ||
extern JL_DLLEXPORT int jl_default_debug_info_kind; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a slight design smell that this other state is getting mixed into into our state here. Why isn't this part of the
InferenceParams
configuration values?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it's not really for configuration, it's so that the interpreter can detect that this InferenceState was not created by it and handle it appropriately.