Ignore:
Timestamp:
Dec 25, 2014, 8:30:38 AM (5 years ago)
Author:
cameron
Message:

Sel -> Xor optimization; implement Pablo Xor in printer, compiler

File:
1 edited

Legend:

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

    r4346 r4359  
    119119        strm << ")";
    120120    }
     121    else if (const Xor * pablo_xor = dyn_cast<const Xor>(expr)) {
     122        strm << "(";
     123        print(pablo_xor->getExpr1(), strm);
     124        strm << " ^ ";
     125        print(pablo_xor->getExpr2(), strm);
     126        strm << ")";
     127    }
    121128    else if (const Sel * pablo_sel = dyn_cast<const Sel>(expr)) {
    122129        strm << "(";
Note: See TracChangeset for help on using the changeset viewer.