Ignore:
Timestamp:
Nov 6, 2016, 8:37:11 PM (3 years ago)
Author:
nmedfort
Message:

Initial work on adding types to PabloAST and mutable Var objects.

File:
1 edited

Legend:

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

    r5160 r5202  
    6363    PabloAST * const negatedVar = negation->getOperand(0);
    6464    if (isa<And>(negatedVar) || isa<Or>(negatedVar)) {
    65         const TypeId typeId = isa<And>(negatedVar) ? TypeId::Or : TypeId::And;
     65        TypeId typeId = isa<And>(negatedVar) ? TypeId::Or : TypeId::And;
    6666        bool expandable = false;
    6767        for (PabloAST * user : negation->users()) {
     
    8989                        }
    9090                        br = scope->getBranch();
    91                         scope = scope->getPredecessor ();
     91                        scope = scope->getPredecessor();
    9292                    }
    9393                }
     
    313313 ** ------------------------------------------------------------------------------------------------------------- */
    314314template <class Type>
    315 inline bool intersects(const Type & A, const Type & B) {
     315inline bool intersects(Type & A, Type & B) {
    316316    auto first1 = A.begin(), last1 = A.end();
    317317    auto first2 = B.begin(), last2 = B.end();
     
    523523 ** ------------------------------------------------------------------------------------------------------------- */
    524524inline void analyzeScopeDependencies(Assign * const def, ScopeDependencyGraph & G, ScopeDependencyMap & M) {
    525     if (LLVM_LIKELY(isa<Variadic>(def->getExpression()))) {
    526         buildScopeDependencyGraph(cast<Variadic>(def->getExpression()), G, M);
     525    if (LLVM_LIKELY(isa<Variadic>(def->getValue()))) {
     526        buildScopeDependencyGraph(cast<Variadic>(def->getValue()), G, M);
    527527    }
    528528}
Note: See TracChangeset for help on using the changeset viewer.