Ignore:
Timestamp:
Jan 19, 2019, 2:44:50 PM (4 months ago)
Author:
cameron
Message:

-enable-cache-trace flag; base64 encoding for property kernels.

File:
1 edited

Legend:

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

    r6184 r6285  
    1313#include <pablo/builder.hpp>
    1414#include <llvm/Support/ErrorHandling.h>
     15#include <boost/archive/iterators/base64_from_binary.hpp>
     16#include <boost/archive/iterators/transform_width.hpp>
    1517
    1618using namespace kernel;
    1719using namespace pablo;
     20using namespace boost::archive::iterators;
     21
     22std::string base64(std::string to_encode) {
     23    typedef base64_from_binary< transform_width<std::string::const_iterator, 6, 8> > base64_t;
     24    return std::string(base64_t(to_encode.begin()), base64_t(to_encode.end()));
     25}
    1826
    1927
    2028UnicodePropertyKernelBuilder::UnicodePropertyKernelBuilder(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, re::Name * property_value_name, StreamSet *BasisBits, StreamSet * property)
    2129: PabloKernel(iBuilder,
    22 "UCD:" + property_value_name->getFullName(),
     30"UCD:" + base64(property_value_name->getFullName().c_str()),
    2331{Binding{"basis", BasisBits}},
    2432{Binding{"property_stream", property}}),
Note: See TracChangeset for help on using the changeset viewer.