Ignore:
Timestamp:
Jan 19, 2017, 2:41:02 PM (3 years ago)
Author:
nmedfort
Message:

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File:
1 edited

Legend:

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

    r5227 r5267  
    77#include "printer_pablos.h"
    88#include <pablo/codegenstate.h>
     9#include <pablo/boolean.h>
     10#include <pablo/arithmetic.h>
     11#include <pablo/branch.h>
     12#include <pablo/pe_advance.h>
     13#include <pablo/pe_lookahead.h>
     14#include <pablo/pe_matchstar.h>
     15#include <pablo/pe_scanthru.h>
     16#include <pablo/pe_infile.h>
     17#include <pablo/pe_count.h>
     18#include <pablo/pe_integer.h>
     19#include <pablo/pe_string.h>
     20#include <pablo/pe_zeroes.h>
     21#include <pablo/pe_ones.h>
     22#include <pablo/pe_var.h>
     23#include <pablo/ps_assign.h>
    924#include <pablo/pablo_kernel.h>
    1025#include <llvm/Support/raw_os_ostream.h>
    1126
    1227using namespace pablo;
    13 
     28using namespace llvm;
    1429using TypeId = PabloAST::ClassTypeId;
    1530
    1631const unsigned BlockIndenting = 2;
    1732
    18 void PabloPrinter::print(const PabloKernel * kernel, llvm::raw_ostream & out) {
     33void PabloPrinter::print(const PabloKernel * kernel, raw_ostream & out) {
    1934    print(kernel->getEntryBlock(), out, true);
    2035}
    2136
    22 void PabloPrinter::print(const Statement * stmt, llvm::raw_ostream & out, const bool expandNested, const unsigned indent) {
     37void PabloPrinter::print(const Statement * stmt, raw_ostream & out, const bool expandNested, const unsigned indent) {
    2338    out.indent(indent);
    2439    if (stmt == nullptr) {
     
    176191    } else if (isa<Integer>(expr)) {
    177192        out << cast<Integer>(expr)->value();
    178     } else if (isa<Prototype>(expr)) {
    179         out << cast<Prototype>(expr)->getName();
    180193    } else {
    181194        out << "???";
     
    183196}
    184197
    185 void PabloPrinter::print(const PabloBlock * block, llvm::raw_ostream & strm, const bool expandNested, const unsigned indent) {
     198void PabloPrinter::print(const PabloBlock * block, raw_ostream & strm, const bool expandNested, const unsigned indent) {
    186199    for (const Statement * stmt : *block) {
    187200        print(stmt, strm, expandNested, indent);
Note: See TracChangeset for help on using the changeset viewer.