Ignore:
Timestamp:
Sep 7, 2017, 4:56:56 PM (22 months ago)
Author:
nmedfort
Message:

Partial check-in for avoidance of compiling Pablo/LLVM code to determine the Kernel struct type when using a cached object. Inactive RE alternation minimization check in.

File:
1 edited

Legend:

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

    r5267 r5630  
    2626        , Intersect
    2727        , Name
    28         , Permute
     28        // , Permute
    2929        , Rep
    3030        , Seq
    3131        , Start
    32         , SymDiff
    33         , Union
     32        // , SymDiff
     33        // , Union
    3434    };
    3535    inline ClassTypeId getClassTypeId() const {
     
    5252class Vector : public RE, public std::vector<RE*, RE::VectorAllocator> {
    5353public:
     54    static inline bool classof(const RE * re) {
     55        const auto typeId = re->getClassTypeId();
     56        return typeId == ClassTypeId::Alt || typeId == ClassTypeId::Seq;
     57    }
     58    static inline bool classof(const void *) {
     59        return false;
     60    }
    5461    virtual ~Vector() {}
    5562protected:
Note: See TracChangeset for help on using the changeset viewer.