mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
introduce notions of script functions/BiFs that are (1) foldable, (2) replaceable
This commit is contained in:
parent
5445e8c7ff
commit
1b838ca91d
3 changed files with 201 additions and 165 deletions
|
@ -34,6 +34,11 @@ void Inliner::Analyze() {
|
|||
if ( is_special_script_func(f.Func()->Name()) )
|
||||
continue;
|
||||
|
||||
// If ZAM can replace the script, don't inline it, so its usage
|
||||
// remains visible during the AST reduction process.
|
||||
if ( is_ZAM_replaceable_script_func(f.Func()->Name()) )
|
||||
continue;
|
||||
|
||||
std::unordered_set<const Func*> cs;
|
||||
|
||||
// Aspirational ....
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue