Ignore:
Timestamp:
Nov 22, 2015, 3:17:10 PM (4 years ago)
Author:
nmedfort
Message:

More work on n-ary operations.

File:
1 edited

Legend:

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

    r4876 r4878  
    225225}
    226226
    227 
    228227PabloAST * PabloBlock::createAnd(PabloAST * expr1, PabloAST * expr2) {
    229228    assert (expr1 && expr2);
     
    252251}
    253252
     253And * PabloBlock::createAnd(const unsigned operands, PabloAST * value) {
     254    return insertAtInsertionPoint(new And(operands, value, makeName("and_")));
     255}
     256
    254257PabloAST * PabloBlock::createAnd(PabloAST * expr1, PabloAST * expr2, const std::string prefix) {
    255258    assert (expr1 && expr2);
     
    294297    }
    295298    return insertAtInsertionPoint(new Or(expr1, expr2, makeName("or_")));
     299}
     300
     301Or * PabloBlock::createOr(const unsigned operands, PabloAST * value) {
     302    return insertAtInsertionPoint(new Or(operands, value, makeName("or_")));
    296303}
    297304
Note: See TracChangeset for help on using the changeset viewer.