Ignore:
Timestamp:
Aug 16, 2015, 3:55:50 PM (4 years ago)
Author:
cameron
Message:

Embed carry data in compiled LLVM module; eliminate passing of carry data pointers/size

File:
1 edited

Legend:

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

    r4659 r4726  
    133133    Basis_bits basis_bits;
    134134    BitBlock match_vector;
    135     BitBlock process_block_state_data[(mProcessBlockStateSize + sizeof(BitBlock) - 1)/sizeof(BitBlock)];   
    136135   
    137136    mFileName = infilename + ":";
     
    146145
    147146    match_vector = simd<1>::constant<0>();
    148     memset (process_block_state_data, 0, mProcessBlockStateSize);
    149147    int fdSrc;
    150148    struct stat infile_sb;
     
    196194            s2p_do_block((BytePack *) &mFileBuffer[block_base], basis_bits);
    197195            Output output;
    198             mProcessBlockFcn(basis_bits, process_block_state_data, output);
     196            mProcessBlockFcn(basis_bits, output);
    199197
    200198            mMatch_scanner.load_block(output.matches, blk);
     
    243241        s2p_do_block((BytePack *) &mFileBuffer[block_base], basis_bits);
    244242        Output output;
    245         mProcessBlockFcn(basis_bits, process_block_state_data, output);
     243        mProcessBlockFcn(basis_bits, output);
    246244
    247245        mLineBreak_scanner.load_block(output.LF, blk);
     
    287285   
    288286    Output output;
    289     mProcessBlockFcn(basis_bits, process_block_state_data, output);
     287    mProcessBlockFcn(basis_bits, output);
    290288
    291289    if (mCountOnlyOption)
Note: See TracChangeset for help on using the changeset viewer.