Ignore:
Timestamp:
Nov 30, 2015, 4:30:02 PM (3 years ago)
Author:
nmedfort
Message:

More work on n-ary operations. Unresolved bug in DistributionPass?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/codegenstate.h

    r4878 r4885  
    105105    PabloAST * createAnd(PabloAST * expr1, PabloAST * expr2);
    106106
     107    PabloAST * createAnd(PabloAST * expr1, PabloAST * expr2, const std::string prefix);
     108
    107109    And * createAnd(const unsigned operands, PabloAST * value);
    108110
    109     PabloAST * createAnd(PabloAST * expr1, PabloAST * expr2, const std::string prefix);
     111    And * createAnd(std::vector<PabloAST *>::iterator begin, std::vector<PabloAST *>::iterator end) {
     112        return insertAtInsertionPoint(new And(begin, end, makeName("and_")));
     113    }
    110114
    111115    PabloAST * createNot(PabloAST * expr);
     
    115119    PabloAST * createOr(PabloAST * expr1, PabloAST * expr2);
    116120
     121    PabloAST * createOr(PabloAST * expr1, PabloAST * expr2, const std::string prefix);
     122
     123    Or * createOr(std::vector<PabloAST *>::iterator begin, std::vector<PabloAST *>::iterator end) {
     124        return insertAtInsertionPoint(new Or(begin, end, makeName("or_")));
     125    }
     126
    117127    Or * createOr(const unsigned operands, PabloAST * value);
    118128
    119     PabloAST * createOr(PabloAST * expr1, PabloAST * expr2, const std::string prefix);
    120 
    121129    PabloAST * createXor(PabloAST * expr1, PabloAST * expr2);
    122130
    123131    PabloAST * createXor(PabloAST * expr1, PabloAST * expr2, const std::string prefix);
     132
     133    Xor * createXor(std::vector<PabloAST *>::iterator begin, std::vector<PabloAST *>::iterator end) {
     134        return insertAtInsertionPoint(new Xor(begin, end, makeName("xor_")));
     135    }
    124136
    125137    PabloAST * createMatchStar(PabloAST * marker, PabloAST * charclass);
Note: See TracChangeset for help on using the changeset viewer.