Ignore:
Timestamp:
Sep 27, 2015, 1:32:27 AM (4 years ago)
Author:
nmedfort
Message:

Progress on multi-target UCD compiler.

File:
1 edited

Legend:

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

    r4776 r4797  
    7272    }
    7373    else if (const Next * next = dyn_cast<const Next>(stmt)) {       
    74         strm << next->getName() << "' = ";
     74        strm << "Next(" << next->getName() << ") = ";
    7575        print(next->getExpr(), strm);
    7676    }
     
    183183    }
    184184    else {
    185         strm << indent << "**UNKNOWN Pablo Statement type **" << "\n";
     185        strm << "???";
    186186    }
    187187}
     
    195195        strm << "1";
    196196    } else if (const Var * var = dyn_cast<const Var>(expr)) {
     197        assert (var->getName());
    197198        strm  << var->getName();
    198199    } else if (const Next * next = dyn_cast<const Next>(expr)) {
     200        assert (next->getName());
    199201        strm << "Next(" << next->getName() << ")";
    200202    } else if (const If * ifstmt = dyn_cast<If>(expr)) {
     
    207209        assert (stmt->getName());
    208210        strm << stmt->getName();
     211    } else if (isa<Integer>(expr)) {
     212        strm << cast<Integer>(expr)->value();
    209213    } else {
    210214        strm << "???";
Note: See TracChangeset for help on using the changeset viewer.