Ignore:
Timestamp:
Mar 18, 2017, 1:20:50 AM (2 years ago)
Author:
nmedfort
Message:

Work on non carry collapsing mode. Beginning work on pablo-level phi nodes.

File:
1 edited

Legend:

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

    r5329 r5368  
    1111#include <pablo/branch.h>
    1212#include <pablo/pe_advance.h>
     13#include <pablo/pe_count.h>
     14#include <pablo/pe_infile.h>
     15#include <pablo/pe_integer.h>
    1316#include <pablo/pe_lookahead.h>
    1417#include <pablo/pe_matchstar.h>
     18#include <pablo/pe_ones.h>
     19#include <pablo/pe_phi.h>
    1520#include <pablo/pe_scanthru.h>
    16 #include <pablo/pe_infile.h>
    17 #include <pablo/pe_count.h>
    18 #include <pablo/pe_integer.h>
    1921#include <pablo/pe_string.h>
     22#include <pablo/pe_var.h>
    2023#include <pablo/pe_zeroes.h>
    21 #include <pablo/pe_ones.h>
    22 #include <pablo/pe_var.h>
    2324#include <pablo/ps_assign.h>
    2425#include <pablo/pablo_kernel.h>
     
    3233
    3334namespace pablo {
     35
     36
     37Phi * PabloBlock::createPhi(Type * type, String * name) {
     38    if (type == nullptr) {
     39        type = getParent()->getBuilder()->getStreamTy();
     40    }
     41    if (name == nullptr) {
     42        name = makeName("phi");
     43    }
     44    return insertAtInsertionPoint(new (mAllocator) Phi(type, 2, name, mAllocator));
     45}
    3446
    3547/// UNARY CREATE FUNCTIONS
Note: See TracChangeset for help on using the changeset viewer.