Ignore:
Timestamp:
Sep 30, 2015, 12:26:23 PM (4 years ago)
Author:
nmedfort
Message:

Progress on multi-target UCD compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_compiler.h

    r4684 r4808  
    1212#include <cc/cc_compiler.h>
    1313#include <pablo/builder.hpp>
    14 #include <string>
    15 #include <list>
    16 #include <map>
    17 
    18 namespace cc {
    19 class CC_NameMap;
    20 }
     14#ifdef USE_BOOST
     15#include <boost/container/flat_set.hpp>
     16#else
     17#include <unordered_set>
     18#endif
    2119
    2220namespace pablo {
     
    2422}
    2523
     24namespace UCD {
     25class UnicodeSet;
     26}
    2627
    2728/*   Marker streams represent the results of matching steps.
     
    5859    RE_Compiler(pablo::PabloFunction & function, cc::CC_Compiler & ccCompiler);
    5960    void initializeRequiredStreams();
     61    void compileUnicodeNames(RE * re);
    6062    void finalizeMatchResult(MarkerType match_result);
    6163    MarkerType compile(RE * re) {
     
    6466
    6567private:
     68
     69    #ifdef USE_BOOST
     70    using NameSet = boost::container::flat_set<Name *>;
     71    #else
     72    using NameSet = std::unordered_set<Name *>;
     73    #endif
    6674
    6775    MarkerType compile(RE * re, pablo::PabloBuilder & cg);
     
    8795    MarkerType processUnboundedRep(RE * repeated, MarkerType marker, pablo::PabloBuilder & pb);
    8896    MarkerType processBoundedRep(RE * repeated, int ub, MarkerType marker, pablo::PabloBuilder & pb);
     97    static void gatherUnicodePropertyNames(RE * re, NameSet & nameSet);
    8998
    9099private:
Note: See TracChangeset for help on using the changeset viewer.