Ignore:
Timestamp:
Sep 30, 2014, 2:44:40 PM (5 years ago)
Author:
nmedfort
Message:

Replaced dynamic_cast with llvm::dyn_cast in pablo code; implemented make functions for pablo constructors. Disabled RTTI.

File:
1 edited

Legend:

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

    r4199 r4200  
    66
    77#include "pe_not.h"
     8#include "pe_all.h"
     9
     10namespace pablo {
     11
     12PabloE * make_not(PabloE * expr) {
     13    if (All * all = dyn_cast<All>(expr)) {
     14        return make_all(!all->getValue());
     15    }
     16    else if (Not * pe_not = dyn_cast<Not>(expr)) {
     17        return pe_not->getExpr();
     18    }
     19    return new Not(expr);
     20}
     21
     22}
Note: See TracChangeset for help on using the changeset viewer.