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

    r4199 r4200  
    1313
    1414class ScanThru : public  PabloE {
     15    friend PabloE * make_scanthru(PabloE *, PabloE *);
    1516public:
    16     ScanThru(PabloE* from, PabloE* thru)
     17    static inline bool classof(const PabloE * e) {
     18        return e->getClassTypeId() == ClassTypeId::ScanThru;
     19    }
     20    static inline bool classof(const void *) {
     21        return false;
     22    }
     23    ScanThru(PabloE * from, PabloE * thru)
    1724    : PabloE(ClassTypeId::ScanThru)
    1825    , mScanFrom(from)
     
    3542    }
    3643private:
    37     PabloE* mScanFrom;
    38     PabloE* mScanThru;
     44    PabloE * const mScanFrom;
     45    PabloE * const mScanThru;
    3946};
     47
     48inline PabloE * make_scanthru(PabloE * from, PabloE * thru) {
     49    return new ScanThru(from, thru);
     50}
    4051
    4152}
Note: See TracChangeset for help on using the changeset viewer.