Ignore:
Timestamp:
Jan 13, 2018, 11:57:43 AM (20 months ago)
Author:
nmedfort
Message:

Pablo support for byte comparisions; LineFeed? kernel processes byte streams directly. Some clean up of PabloBuilder? functionality.

File:
1 edited

Legend:

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

    r5823 r5828  
    8989}
    9090
     91inline std::vector<Binding> makeOutputBindings(const std::unique_ptr<kernel::KernelBuilder> & b, const std::vector<CC *> & charClasses) {
     92    std::vector<Binding> bindings;
     93    for (CC * cc : charClasses) {
     94        bindings.emplace_back(Binding(b->getStreamTy(), cc->canonicalName(re::CC_type::ByteClass)));
     95    }
     96    return bindings;
     97}
     98
    9199ParabixCharacterClassKernelBuilder::ParabixCharacterClassKernelBuilder (
    92100        const std::unique_ptr<kernel::KernelBuilder> & b, std::string ccSetName, const std::vector<CC *> & charClasses, unsigned codeUnitSize)
    93 : PabloKernel(b, ccSetName +"_kernel", {Binding{b->getStreamSetTy(codeUnitSize), "basis"}})
     101: PabloKernel(b, ccSetName +"_kernel",
     102// stream inputs
     103{Binding{b->getStreamSetTy(codeUnitSize), "basis"}}
     104// stream outputs
     105, makeOutputBindings(b, charClasses)
     106)
    94107, mCharClasses(charClasses) {
    95     for (CC * cc : mCharClasses) {
    96         addOutput(cc->canonicalName(re::CC_type::ByteClass), b->getStreamTy());
    97     }
     108
    98109}
    99110
Note: See TracChangeset for help on using the changeset viewer.