Changeset 4839


Ignore:
Timestamp:
Oct 16, 2015, 7:54:25 PM (2 years ago)
Author:
cameron
Message:

Parameterize PabloCompiler? on bitBlockType

Location:
icGREP/icgrep-devel/icgrep
Files:
5 edited

Legend:

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

    r4814 r4839  
    2222#endif
    2323#include <pablo/optimizers/booleanreassociationpass.h>
     24#include <llvm/IR/Type.h>
    2425#include <llvm/IR/Verifier.h>
    2526#include <llvm/Support/Debug.h>
     
    386387    property_list properties;
    387388
    388     PabloCompiler pc;
     389    PabloCompiler pc(VectorType::get(IntegerType::get(getGlobalContext(), 64), BLOCK_SIZE/64));
    389390    Module * module = new Module("ucd", getGlobalContext());
    390391    for (PropertyObject * obj : property_object_table) {
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r4826 r4839  
    1414#include "pablo/pablo_compiler.h"
    1515#include <llvm/IR/Function.h>
     16#include <llvm/IR/Type.h>
    1617#include <llvm/IR/Module.h>
    1718#include <llvm/ExecutionEngine/ExecutionEngine.h>
     
    157158
    158159        pablo_function_passes(function);
    159         pablo::PabloCompiler pablo_compiler;
     160        pablo::PabloCompiler pablo_compiler(VectorType::get(IntegerType::get(getGlobalContext(), 64), BLOCK_SIZE/64));
    160161        try {
    161162            icgrep_IR = pablo_compiler.compile(function);
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4838 r4839  
    5555namespace pablo {
    5656
    57 PabloCompiler::PabloCompiler()
     57PabloCompiler::PabloCompiler(Type * bitBlockType)
    5858: mMod(nullptr)
    5959, mBuilder(nullptr)
    6060, mCarryManager(nullptr)
    61     , mBitBlockType(VectorType::get(IntegerType::get(getGlobalContext(), 64), BLOCK_SIZE/64))
     61, mBitBlockType(bitBlockType)
    6262, iBuilder(mBitBlockType)
    6363, mInputType(nullptr)
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r4838 r4839  
    7474
    7575public:
    76     PabloCompiler();
     76    PabloCompiler(Type * bitBlockType);
    7777    ~PabloCompiler();
    7878    Function * compile(pablo::PabloFunction * function);
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r4831 r4839  
    2121#include <toolchain.h>
    2222#include "utf_encoding.h"
     23#include <llvm/IR/Type.h>
    2324#include <pablo/pablo_compiler.h>
    2425#include <do_grep.h>
     
    550551   
    551552    pablo_function_passes(nameSearchFunction);
    552     pablo::PabloCompiler pablo_compiler;
     553    pablo::PabloCompiler pablo_compiler(VectorType::get(IntegerType::get(getGlobalContext(), 64), BLOCK_SIZE/64));
    553554    try {
    554555        nameSearchIR = pablo_compiler.compile(nameSearchFunction);
Note: See TracChangeset for help on using the changeset viewer.