summaryrefslogtreecommitdiff
path: root/include/chillAST/chillASTs.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-30 14:14:51 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-30 14:14:51 -0600
commit79b47d47c0c8ecdce651024b41b9109f05593010 (patch)
treecd99cc71c960343d5707db4a8fec0794821539a3 /include/chillAST/chillASTs.hh
parent87e7538503756d036fec4c2b18a9c19d126626a4 (diff)
downloadchill-79b47d47c0c8ecdce651024b41b9109f05593010.tar.gz
chill-79b47d47c0c8ecdce651024b41b9109f05593010.tar.bz2
chill-79b47d47c0c8ecdce651024b41b9109f05593010.zip
fixes
Diffstat (limited to 'include/chillAST/chillASTs.hh')
-rw-r--r--include/chillAST/chillASTs.hh17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/chillAST/chillASTs.hh b/include/chillAST/chillASTs.hh
index 795f12b..90f19e8 100644
--- a/include/chillAST/chillASTs.hh
+++ b/include/chillAST/chillASTs.hh
@@ -973,9 +973,9 @@ public:
char *op;
//! true for prefix unary operator
bool prefix;
- chillAST_Node *subexpr;
// constructors
+ chillAST_UnaryOperator();
chillAST_UnaryOperator(const char *oper, bool pre, chillAST_Node *sub);
// other methods particular to this type of node
@@ -984,29 +984,20 @@ public:
(!strcmp(op, "--"))); // are there more ??? TODO
}
+ chillAST_Node* getSubExpr() { return getChild(0); }
+ void setSubExpr(chillAST_Node* sub) { setChild(0,sub); }
+
// required methods that I can't seem to get to inherit
chillAST_Node *constantFold();
chillAST_Node *clone();
- void gatherVarDecls(std::vector<chillAST_VarDecl *> &decls);
-
void gatherVarDeclsMore(std::vector<chillAST_VarDecl *> &decls) { gatherVarDecls(decls); };
- void gatherScalarVarDecls(std::vector<chillAST_VarDecl *> &decls);
-
- void gatherArrayVarDecls(std::vector<chillAST_VarDecl *> &decls);
-
void gatherArrayRefs(std::vector<chillAST_ArraySubscriptExpr *> &refs, bool writtento); // chillAST_UnaryOperator
void gatherVarLHSUsage(std::vector<chillAST_VarDecl *> &decls);
- void replaceVarDecls(chillAST_VarDecl *olddecl, chillAST_VarDecl *newdecl);
-
- void gatherVarUsage(std::vector<chillAST_VarDecl *> &decls);
-
- void gatherDeclRefExprs(std::vector<chillAST_DeclRefExpr *> &refs);
-
//void replaceVarDecls( chillAST_VarDecl *olddecl, chillAST_VarDecl *newdecl);
bool findLoopIndexesToReplace(chillAST_SymbolTable *symtab,
bool forcesync = false) { return false; }; // no loops under here