Ignore:
Timestamp:
Dec 31, 2017, 7:22:14 PM (15 months ago)
Author:
cameron
Message:

Supporting multiple alphabets in RE compilation - initial check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/multiplex_CCs.cpp

    r5801 r5816  
    99#include "boost/dynamic_bitset.hpp"
    1010#include <cc/multiplex_CCs.h>
     11#include <re/printer_re.h>
    1112#include <llvm/Support/Casting.h>
    1213#include <llvm/Support/ErrorHandling.h>
     14#include <llvm/Support/raw_ostream.h>
    1315
    1416namespace cc {
     
    138140   
    139141    const auto index = find(mUnicodeSets.begin(), mUnicodeSets.end(), sourceCC) - mUnicodeSets.begin();
     142    if (index >= mUnicodeSets.size()) {
     143        llvm::errs() << Printer_RE::PrintRE(sourceCC) << " not found\n";
     144    }
    140145    const auto exclusive_IDs = mExclusiveSetIDs[index];
    141146    re::CC * CC_union = re::makeCC(this);
Note: See TracChangeset for help on using the changeset viewer.