Ignore:
Timestamp:
Aug 28, 2014, 8:26:35 AM (5 years ago)
Author:
cameron
Message:

Support for Pablo if-statements; use for utf-8 scope streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/llvm_gen_helper.cpp

    r3955 r4086  
    2929    {
    3030        retVal = CarryCount_PabloE(sm->getExpr());
     31    }
     32    else if (If* ifstmt = dynamic_cast<If*>(stmt)) {
     33        retVal = CarryCount_PabloE(ifstmt->getExpr());
     34        retVal += CarryCount_PabloStatements(ifstmt->getPSList());
     35        // If there is more than one internal carry, we create a stored
     36        // accumulator value that Ors together all the carries, so add 1
     37        // to the carry count.
     38        if (retVal > 1) retVal++;
    3139    }
    3240    else if (While* whl = dynamic_cast<While*>(stmt))
Note: See TracChangeset for help on using the changeset viewer.