Changeset 5589


Ignore:
Timestamp:
Aug 1, 2017, 1:04:34 PM (3 months ago)
Author:
xuedongx
Message:

generare negated deletion mask

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
2 edited

Legend:

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

    r5564 r5589  
    3333    // Outputs
    3434    Var * delmask = main.createVar("delmask", zeroes);
     35    Var * neg_delmask = main.createVar("neg_delmask", zeroes);
    3536    Var * error_mask = main.createVar("error_mask", zeroes);
    3637   
     
    9899   
    99100    it.createAssign(delmask, it.createOr(it.createOr(del3, del4), ccc.compileCC(re::makeCC(0xC0, 0xFF), it)));
     101    it.createAssign(neg_delmask, it.createNot(delmask));
    100102   
    101103    Var * delmask_out = this->getOutputStreamVar("delMask");
     104    Var * neg_delmask_out = this->getOutputStreamVar("neg_delMask");
    102105    Var * error_mask_out = this->getOutputStreamVar("errMask");
    103106   
    104107    main.createAssign(main.createExtract(delmask_out, main.getInteger(0)), delmask);
     108    main.createAssign(main.createExtract(neg_delmask_out, main.getInteger(0)), neg_delmask);
    105109    main.createAssign(main.createExtract(error_mask_out,  main.getInteger(0)), error_mask);
    106110
  • icGREP/icgrep-devel/icgrep/kernels/delmask_kernel.h

    r5564 r5589  
    1919    : PabloKernel(iBuilder, "delmask_kernel", {Binding{iBuilder->getStreamSetTy(8, 1), "u8bit"}},
    2020                       {Binding{iBuilder->getStreamSetTy(1, 1), "delMask"},
     21                        Binding{iBuilder->getStreamSetTy(1, 1), "neg_delMask"},
    2122                        Binding{iBuilder->getStreamSetTy(1, 1), "errMask"}}, {}) {
    2223
Note: See TracChangeset for help on using the changeset viewer.