Ignore:
Timestamp:
Feb 6, 2018, 11:21:07 AM (15 months ago)
Author:
cameron
Message:

Eliminate mInitial - only 1 required UTF-8 stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/grep_kernel.cpp

    r5847 r5863  
    109109    //
    110110    //
    111    
    112     it.createAssign(valid_pfx, it.createAnd(valid_pfx, u8valid));
    113111    it.createAssign(nonFinal, it.createAnd(nonFinal, u8valid));
    114    
    115     PabloAST * u8single = pb.createAnd(ccc.compileCC(makeByte(0x00, 0x7F)), pb.createNot(u8invalid));
    116     PabloAST * const initial = pb.createOr(u8single, valid_pfx, "initial");
    117     PabloAST * const final = pb.createNot(pb.createOr(nonFinal, u8invalid), "final");
    118112
    119113    Var * const required = getOutputStreamVar("required");
    120     pb.createAssign(pb.createExtract(required, pb.getInteger(0)), initial);
    121     pb.createAssign(pb.createExtract(required, pb.getInteger(1)), nonFinal);
    122     pb.createAssign(pb.createExtract(required, pb.getInteger(2)), final);
    123 
     114    pb.createAssign(pb.createExtract(required, pb.getInteger(0)), nonFinal);
    124115}
    125116
     
    129120{Binding{kb->getStreamSetTy(8), "basis"}},
    130121// output
    131 {Binding{kb->getStreamSetTy(3), "required", FixedRate(), Add1()}}) {
     122{Binding{kb->getStreamSetTy(1), "required", FixedRate()}}) {
    132123
    133124}
     
    182173        Binding{b->getStreamSetTy(1, 1), "linebreak"},
    183174        Binding{b->getStreamSetTy(1, 1), "cr+lf"},
    184         Binding{b->getStreamSetTy(3, 1), "required"}
     175        Binding{b->getStreamSetTy(1, 1), "required"}
    185176    };
    186177    for (const auto & alphabet : alphabets) {
Note: See TracChangeset for help on using the changeset viewer.