Changeset 4417


Ignore:
Timestamp:
Jan 13, 2015, 6:56:29 PM (4 years ago)
Author:
cameron
Message:

Add missing Xor logic in Examine; minor fixes

Location:
icGREP/icgrep-devel/icgrep/pablo
Files:
2 edited

Legend:

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

    r4416 r4417  
    135135    }
    136136
    137     if (!mCalleeMap.empty()) {
    138         DeclareCallFunctions();
    139     }
     137    DeclareCallFunctions();
    140138
    141139    Function::arg_iterator args = mFunction->arg_begin();
     
    168166    compileStatements(pb.statements());
    169167
    170     assert (mCarryQueueIdx <= mCarryQueueSize);
    171     assert (mAdvanceQueueIdx <= mAdvanceQueueSize);
     168    assert (mCarryQueueIdx == mCarryQueueSize);
     169    assert (mAdvanceQueueIdx == mAdvanceQueueSize);
    172170    assert (mNestingDepth == 0);
    173171    //Terminate the block
     
    445443        Examine(pablo_or->getExpr1());
    446444        Examine(pablo_or->getExpr2());
     445    }
     446    else if (Xor * pablo_xor = dyn_cast<Xor>(expr)) {
     447        Examine(pablo_xor->getExpr1());
     448        Examine(pablo_xor->getExpr2());
    447449    }
    448450    else if (Sel * pablo_sel = dyn_cast<Sel>(expr)) {
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r4416 r4417  
    2020#include <string>
    2121#include <list>
     22#include <vector>
    2223#include <map>
    2324#include <algorithm>
Note: See TracChangeset for help on using the changeset viewer.