hooks for ZAM optimization of calls to particular functions

This commit is contained in:
Vern Paxson 2024-04-08 18:14:59 -04:00 committed by Tim Wojtulewicz
parent 4b39e1f5f5
commit e38053ee3c
2 changed files with 89 additions and 6 deletions

View file

@ -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;