Ignore:
Timestamp:
Jun 14, 2018, 10:41:45 AM (16 months ago)
Author:
cameron
Message:

Little-endian/big-endian bit number options, default to little-endian

File:
1 edited

Legend:

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

    r6047 r6089  
    66
    77#include <IR_Gen/idisa_target.h>                   // for GetIDISA_Builder
     8#include <cc/alphabet.h>
    89#include <cc/cc_compiler.h>                        // for CC_Compiler
    910#include <kernels/deletion.h>                      // for DeletionKernel
     
    8485    Var * error_mask = main.createVar("error_mask", zeroes);
    8586
    86     cc::Parabix_CC_Compiler ccc(getEntryScope(), u8_bits);
     87    cc::Parabix_CC_Compiler ccc(getEntryScope(), u8_bits, cc::BitNumbering::BigEndian);
    8788
    8889    // The logic for processing non-ASCII bytes will be embedded within an if-hierarchy.
     
    291292    StreamSetBuffer * BasisBits = pxDriver.addBuffer<StaticBuffer>(iBuilder, iBuilder->getStreamSetTy(8, 1), bufferSize);
    292293
    293     Kernel * s2pk = pxDriver.addKernelInstance<S2PKernel>(iBuilder);
     294    Kernel * s2pk = pxDriver.addKernelInstance<S2PKernel>(iBuilder, cc::BitNumbering::BigEndian);
    294295    pxDriver.makeKernelCall(s2pk, {ByteStream}, {BasisBits});
    295296
     
    329330        Kernel * unSwizzleK = pxDriver.addKernelInstance<SwizzleGenerator>(iBuilder, 16, 1, 4);
    330331        pxDriver.makeKernelCall(unSwizzleK, {u16Swizzle0, u16Swizzle1, u16Swizzle2, u16Swizzle3}, {u16bits});
    331         Kernel * p2sk = pxDriver.addKernelInstance<P2S16Kernel>(iBuilder);
     332        Kernel * p2sk = pxDriver.addKernelInstance<P2S16Kernel>(iBuilder, cc::BitNumbering::BigEndian);
    332333        pxDriver.makeKernelCall(p2sk, {u16bits}, {u16bytes});
    333334    } else {
     
    335336        Kernel * delK = pxDriver.addKernelInstance<FieldCompressKernel>(iBuilder, iBuilder->getBitBlockWidth()/16, 16);
    336337        pxDriver.makeKernelCall(delK, {u8bits, DelMask}, {u16bits, DeletionCounts});
    337         Kernel * p2sk = pxDriver.addKernelInstance<P2S16KernelWithCompressedOutput>(iBuilder);
     338        Kernel * p2sk = pxDriver.addKernelInstance<P2S16KernelWithCompressedOutput>(iBuilder, cc::BitNumbering::BigEndian);
    338339        pxDriver.makeKernelCall(p2sk, {u16bits, DeletionCounts}, {u16bytes});
    339340    }
Note: See TracChangeset for help on using the changeset viewer.