Ignore:
Timestamp:
Jan 31, 2017, 4:08:11 PM (2 years ago)
Author:
nmedfort
Message:

Removed 'function' and 'self' parameters from generateXXXMethod() functions.

File:
1 edited

Legend:

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

    r5285 r5292  
    1010#include <pablo/pe_zeroes.h>
    1111#include <pablo/pe_ones.h>
    12 #include <llvm/IR/Module.h>
    13 #include <llvm/IR/Verifier.h>
    14 #include <IR_Gen/idisa_builder.h>
    15 #include <llvm/Support/raw_os_ostream.h>
     12//#include <llvm/IR/Module.h>
     13//#include <llvm/IR/Verifier.h>
     14//#include <IR_Gen/idisa_builder.h>
    1615
    1716using namespace pablo;
     
    8887}
    8988
    90 void PabloKernel::generateDoBlockMethod(Function * function, Value  *self, Value * blockNo) const {
    91     mPabloCompiler->compile(function, self, blockNo);
     89void PabloKernel::generateDoBlockMethod(Value * blockNo) {
     90    mPabloCompiler->compile(blockNo);
    9291}
    9392
    94 void PabloKernel::generateFinalBlockMethod(Function * function, Value *self, Value *remainingBytes, Value *blockNo) const {
     93void PabloKernel::generateFinalBlockMethod(Value *remainingBytes, Value * blockNo) {
    9594    // Standard Pablo convention for final block processing: set a bit marking
    9695    // the position just past EOF, as well as a mask marking all positions past EOF.
    97     setScalarField(self, "EOFbit", iBuilder->bitblock_set_bit(remainingBytes));
    98     setScalarField(self, "EOFmask", iBuilder->bitblock_mask_from(remainingBytes));
    99     iBuilder->CreateCall(getDoBlockFunction(), { self });
     96    setScalarField("EOFbit", iBuilder->bitblock_set_bit(remainingBytes));
     97    setScalarField("EOFmask", iBuilder->bitblock_mask_from(remainingBytes));
     98    CreateDoBlockMethodCall();
    10099}
    101100
Note: See TracChangeset for help on using the changeset viewer.