Ignore:
Timestamp:
Oct 21, 2014, 11:05:04 PM (5 years ago)
Author:
nmedfort
Message:

Pablo Compiler now generates phi nodes created for carry variables. zStarHeight showed 33% improvement. Had to manually merge in last check-in's changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/printer_pablos.cpp

    r4253 r4257  
    7272{
    7373    if (const Assign * an = dyn_cast<const Assign>(stmt)) {
    74         return "Assign('" + an->getName() + "', " + ShowPabloAST(an->getExpr()) + "),";
     74        return "Assign('" + an->getName()->str() + "', " + ShowPabloAST(an->getExpr()) + "),";
    7575    }
    7676    else if (const Next * next = dyn_cast<const Next>(stmt)) {
    77         return "Next(" + next->getName() + ", " + ShowPabloAST(next->getExpr()) + ")";
     77        return "Next(" + next->getName()->str() + ", " + ShowPabloAST(next->getExpr()) + ")";
    7878    }
    7979    else if (const If * ifstmt = dyn_cast<const If>(stmt)) {
     
    9494    }
    9595    else if (const Call * pablo_call = dyn_cast<const Call>(expr)) {
    96         return "Call '" + pablo_call->getCallee() + "'";
     96        return "Call '" + pablo_call->getCallee()->str() + "'";
    9797    }
    9898    else if (const Var * pablo_var = dyn_cast<const Var>(expr)) {
    99         return "Var '" + pablo_var->getName() + "' ";
     99        return "Var '" + pablo_var->getName()->str() + "' ";
    100100    }
    101101    else if (const And * pablo_and = dyn_cast<const And>(expr)) {
Note: See TracChangeset for help on using the changeset viewer.