Ignore:
Timestamp:
Aug 29, 2016, 3:37:03 PM (3 years ago)
Author:
cameron
Message:

Some clean ups of encoding info for ccc restructuring.

File:
1 edited

Legend:

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

    r5133 r5137  
    2323#include <llvm/Support/raw_ostream.h>
    2424
    25 #include <utf_encoding.h>
    2625#include <re/re_cc.h>
    2726#include <cc/cc_compiler.h>
     
    3837#include <pablo/pablo_compiler.h>
    3938#include <pablo/pablo_toolchain.h>
    40 
    41 
    42 #include <utf_encoding.h>
    4339
    4440// mmap system
     
    10197//
    10298
    103 pablo::PabloFunction * wc_gen(Encoding encoding) {
     99pablo::PabloFunction * wc_gen() {
    104100    //  input: 8 basis bit streams
    105101    //  output: 3 counters
    106102   
    107103    pablo::PabloFunction * function = pablo::PabloFunction::Create("wc", 8, 0);
    108     cc::CC_Compiler ccc(*function, encoding);
     104    cc::CC_Compiler ccc(*function);
    109105   
    110106    pablo::PabloBuilder pBuilder(ccc.getBuilder().getPabloBlock(), ccc.getBuilder());
     
    209205    IDISA::IDISA_Builder * idb = IDISA::GetIDISA_Builder(M);
    210206
    211     Encoding encoding(Encoding::Type::UTF_8, 8);
    212     pablo::PabloFunction * function = wc_gen(encoding);
     207    pablo::PabloFunction * function = wc_gen();
    213208    llvm::Function * main_IR = wcPipeline(M, idb, function);
    214209
Note: See TracChangeset for help on using the changeset viewer.