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_pabloe.h

    r4199 r4200  
    77#ifndef PE_PABLOE_H
    88#define PE_PABLOE_H
     9
     10#include <llvm/Support/Casting.h>
     11
     12using namespace llvm;
    913
    1014namespace pablo {
     
    4347};
    4448
     49bool equals(const PabloE * expr1, const PabloE *expr2);
     50
     51//template <typename To, typename From>
     52//inline static bool isa(const From * object) {
     53//    return To::classof(object);
     54//}
     55
     56//template <typename To, typename From>
     57//inline static To * cast(From * object) {
     58//    return reinterpret_cast<To *>(object);
     59//}
     60
     61//template <typename To, typename From>
     62//inline static To * dyn_cast(From * object) {
     63//    if (isa<To, From>(object)) {
     64//        return cast<To, From>(object);
     65//    }
     66//    return nullptr;
     67//}
     68
    4569}
    4670
Note: See TracChangeset for help on using the changeset viewer.