mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
hooks for ZAM optimization of calls to particular functions
This commit is contained in:
parent
4b39e1f5f5
commit
e38053ee3c
2 changed files with 89 additions and 6 deletions
|
@ -1381,6 +1381,7 @@ public:
|
|||
ExprPtr Inline(Inliner* inl) override;
|
||||
|
||||
bool IsReduced(Reducer* c) const override;
|
||||
bool WillTransform(Reducer* c) const override;
|
||||
bool HasReducedOps(Reducer* c) const override;
|
||||
ExprPtr Reduce(Reducer* c, StmtPtr& red_stmt) override;
|
||||
StmtPtr ReduceToSingletons(Reducer* c) override;
|
||||
|
@ -1388,6 +1389,11 @@ public:
|
|||
protected:
|
||||
void ExprDescribe(ODesc* d) const override;
|
||||
|
||||
bool IsFoldableBiF() const;
|
||||
bool AllConstArgs() const;
|
||||
bool CheckForBuiltin() const;
|
||||
ExprPtr TransformToBuiltin();
|
||||
|
||||
ExprPtr func;
|
||||
ListExprPtr args;
|
||||
bool in_when;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue