From 87e7538503756d036fec4c2b18a9c19d126626a4 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Fri, 30 Sep 2016 13:25:57 -0600 Subject: Binary Ternary --- lib/chillcg/src/CG_chillBuilder.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/chillcg/src/CG_chillBuilder.cc') diff --git a/lib/chillcg/src/CG_chillBuilder.cc b/lib/chillcg/src/CG_chillBuilder.cc index 7f13334..27d0af2 100755 --- a/lib/chillcg/src/CG_chillBuilder.cc +++ b/lib/chillcg/src/CG_chillBuilder.cc @@ -103,8 +103,8 @@ namespace omega { // b->print(); printf("\n"); fflush(stdout); //} - chillAST_Node *lhs = b->lhs; - chillAST_Node *rhs = b->rhs; + chillAST_Node *lhs = b->getLHS(); + chillAST_Node *rhs = b->getRHS(); //if (!strcmp(b->op, "=") && rhs->isBinaryOperator() ) { // chillAST_BinaryOperator *r = (chillAST_BinaryOperator *) rhs; @@ -116,8 +116,8 @@ namespace omega { //rhs->dump(); printf("\n"); fflush(stdout); - b->lhs = substituteChill( oldvar, newvar, lhs, b); - b->rhs = substituteChill( oldvar, newvar, rhs, b); + b->setLHS(substituteChill( oldvar, newvar, lhs, b)); + b->setRHS(substituteChill( oldvar, newvar, rhs, b)); return b; } -- cgit v1.2.3-70-g09d2