Ignore:
Timestamp:
Oct 18, 2014, 4:05:41 PM (5 years ago)
Author:
cameron
Message:

All -> Zeroes, Ones

File:
1 edited

Legend:

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

    r4244 r4247  
    1919#include <pablo/pabloAST.h>
    2020#include <pablo/pe_advance.h>
    21 #include <pablo/pe_all.h>
    2221#include <pablo/pe_and.h>
    2322#include <pablo/pe_call.h>
     
    3332#include <pablo/ps_if.h>
    3433#include <pablo/ps_while.h>
     34#include <pablo/pe_zeroes.h>
     35#include <pablo/pe_ones.h>
    3536#include <pablo/codegenstate.h>
    3637
     
    9293    std::string retVal = "";
    9394
    94     if (const All * all = dyn_cast<const All>(expr))
     95    if (isa<const Zeroes>(expr))
    9596    {
    96         retVal = "All " + std::to_string(all->getValue()) + " ";
     97        retVal = "Zeroes";
     98    }
     99    else if (isa<const Ones>(expr))
     100    {
     101        retVal = "Ones";
    97102    }
    98103    else if (const Call * pablo_call = dyn_cast<const Call>(expr))
Note: See TracChangeset for help on using the changeset viewer.