Ignore:
Timestamp:
Jan 13, 2015, 4:01:06 PM (5 years ago)
Author:
nmedfort
Message:

Many use def info changes; removed dependency on boost system library. More work still needed on CSE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4415 r4416  
    1818#include <stdexcept>
    1919#include <include/simd-lib/bitblock.hpp>
     20#include <sstream>
    2021
    2122#ifdef USE_LLVM_3_4
     
    617618        //End Block
    618619        IRBuilder<> bEnd(ifEndBlock);
    619         for (const Assign * a : ifStatement->getDefined()) {
     620        for (const Statement * a : ifStatement->getDefined()) {
    620621            PHINode * phi = bEnd.CreatePHI(mBitBlockType, 2, a->getName()->str());
    621622            auto f = mMarkerMap.find(a);
     
    840841    auto f = mMarkerMap.find(expr);
    841842    if (f == mMarkerMap.end()) {
    842         throw std::runtime_error("Unrecognized Pablo expression type; can't compile.");
     843        std::stringstream str;
     844        str << "\"";
     845        PabloPrinter::print(expr, str);
     846        str << "\" was used before definition!";
     847        throw std::runtime_error(str.str());
    843848    }
    844849    return f->second;
Note: See TracChangeset for help on using the changeset viewer.