Ignore:
Timestamp:
Dec 13, 2018, 12:16:02 PM (5 months ago)
Author:
cameron
Message:

Clean-up/refactoring step for REs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_re.h

    r6225 r6226  
    1212
    1313namespace re {
     14
     15// REs are defined in a class hierarchy supporting llvm::isa, llvm::dyn_cast.
     16#define RE_SUBTYPE(kind) \
     17static inline bool classof(const RE * re) {return re->getClassTypeId() == ClassTypeId::kind;}\
     18static inline bool classof(const void *) {return false;}
    1419
    1520class RE {
Note: See TracChangeset for help on using the changeset viewer.