Merge branch 'master' into topic/vern/cpp-prep-profiling

This commit is contained in:
Jon Siwek 2021-03-31 12:02:17 -07:00
commit fb33597372
100 changed files with 625 additions and 252 deletions

View file

@ -106,6 +106,11 @@ extern std::unordered_set<const Func*> non_recursive_funcs;
// Analyze a given function for optimization.
extern void analyze_func(ScriptFuncPtr f);
// Analyze the given top-level statement(s) for optimization. Returns
// a pointer to a FuncInfo for an argument-less quasi-function that can
// be Invoked, or its body executed directly, to execute the statements.
extern const FuncInfo* analyze_global_stmts(Stmt* stmts);
// Analyze all of the parsed scripts collectively for optimization.
extern void analyze_scripts();