Ignore:
Timestamp:
Nov 18, 2016, 1:46:55 PM (2 years ago)
Author:
nmedfort
Message:

Merged PabloFunction? and PabloKernel? classes. Updated projects where necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/pattern_compiler.cpp

    r5202 r5217  
    2020#include <re/re_analysis.h>
    2121#include <pablo/codegenstate.h>
    22 #include <pablo/function.h>
     22#include <pablo/prototype.h>
    2323
    2424#include <assert.h>
     
    3333
    3434
    35 Pattern_Compiler::Pattern_Compiler(pablo::PabloFunction & function)
    36 : mFunction(function)
     35Pattern_Compiler::Pattern_Compiler(PabloKernel & kernel)
     36: mKernel(kernel)
    3737{
    3838
     
    124124    }
    125125
    126     Var * output = mFunction.addResult("E", getStreamTy(1, dist + 1));
    127126
    128     for(int d=0; d<=dist; d++){
     127    Var * output = mKernel.addOutput("E", mKernel.getBuilder()->getStreamSetTy(dist + 1));
     128    for (int d = 0; d <= dist; d++) {
    129129        pb.createAssign(pb.createExtract(output, d), E[d]);
    130         // mFunction.setResult(d, pb.createAssign("E" + std::to_string(d), E[d]));
    131130    }
    132131}
Note: See TracChangeset for help on using the changeset viewer.