Ignore:
Timestamp:
Oct 16, 2018, 2:29:44 PM (7 months ago)
Author:
nmedfort
Message:

Added RE_Inspector.

Migrated RE passes to RE_Transformer.

Incorporated Memoizer functionality into RE_Transformer/Inspector.

Removed Memoizer.

Bug fix for unicode_set.

File:
1 edited

Legend:

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

    r5772 r6173  
    1616namespace re {
    1717
    18 class Any : public RE {
     18class Any {
    1919public:
    2020    static inline bool classof(const RE * re) {
    21         return (re->getClassTypeId() == ClassTypeId::CC) && llvm::cast<CC>(re)->full();
     21        if (llvm::isa<Name>(re)) {
     22            re = llvm::cast<Name>(re)->getDefinition();
     23            if (re == nullptr) return false;
     24        }
     25        return llvm::isa<CC>(re) && llvm::cast<CC>(re)->full();
    2226    }
    2327    static inline bool classof(const void *) {
    2428        return false;
    2529    }
    26 protected:
    27     Any() : RE(ClassTypeId::Any) {}
    28     virtual ~Any() {}
     30private:
     31    Any() {}
    2932};
    3033
Note: See TracChangeset for help on using the changeset viewer.