diff options
Diffstat (limited to 'include/chillAST/chillASTs.hh')
-rw-r--r-- | include/chillAST/chillASTs.hh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/chillAST/chillASTs.hh b/include/chillAST/chillASTs.hh index f49cf6f..67189dc 100644 --- a/include/chillAST/chillASTs.hh +++ b/include/chillAST/chillASTs.hh @@ -265,7 +265,6 @@ public: // required methods void replaceChild(chillAST_Node *old, chillAST_Node *newchild); - chillAST_Node *constantFold(); chillAST_Node *clone(); @@ -409,8 +408,6 @@ public: //void replaceVarDecls( chillAST_VarDecl *olddecl, chillAST_VarDecl *newdecl); bool findLoopIndexesToReplace(chillAST_SymbolTable *symtab, bool forcesync = false); - chillAST_Node *constantFold(); - }; // end FunctionDecl class chillAST_SourceFile : public chillAST_Node { @@ -596,9 +593,9 @@ public: chillAST_Node *getCond() { return getChild(0); }; - chillAST_Node *getRHS() { return getChild(1); }; + chillAST_Node *getLHS() { return getChild(1); }; - chillAST_Node *getLHS() { return getChild(2); }; + chillAST_Node *getRHS() { return getChild(2); }; void setCond(chillAST_Node *newc) { setChild(0, newc); } @@ -811,8 +808,6 @@ public: int evalAsInt() { return value; } // required methods that I can't seem to get to inherit - chillAST_Node *constantFold(); - chillAST_Node *clone(); bool findLoopIndexesToReplace(chillAST_SymbolTable *symtab, @@ -843,8 +838,6 @@ public: int getPrecision() { return precision; } // required methods that I can't seem to get to inherit - chillAST_Node *constantFold(); - chillAST_Node *clone(); bool findLoopIndexesToReplace(chillAST_SymbolTable *symtab, @@ -944,6 +937,8 @@ public: // required methods that I can't seem to get to inherit chillAST_Node *getSubExpr() { return getChild(0); } + chillAST_Node *constantFold(); + void setSubExpr(chillAST_Node *sub) { return setChild(0, sub); } chillAST_Node *clone(); |