Ignore:
Timestamp:
Nov 16, 2015, 10:01:04 PM (4 years ago)
Author:
nmedfort
Message:

First stage in making And/Or/Xor? statements n-ary statements.

File:
1 edited

Legend:

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

    r4870 r4873  
    391391    }
    392392    else if (const And * pablo_and = dyn_cast<And>(stmt)) {
    393         expr = iBuilder.simd_and(compileExpression(pablo_and->getExpr1()), compileExpression(pablo_and->getExpr2()));
     393        expr = iBuilder.simd_and(compileExpression(pablo_and->getOperand(0)), compileExpression(pablo_and->getOperand(1)));
    394394    }
    395395    else if (const Or * pablo_or = dyn_cast<Or>(stmt)) {
    396         expr = iBuilder.simd_or(compileExpression(pablo_or->getExpr1()), compileExpression(pablo_or->getExpr2()));
     396        expr = iBuilder.simd_or(compileExpression(pablo_or->getOperand(0)), compileExpression(pablo_or->getOperand(1)));
    397397    }
    398398    else if (const Xor * pablo_xor = dyn_cast<Xor>(stmt)) {
    399         expr = iBuilder.simd_xor(compileExpression(pablo_xor->getExpr1()), compileExpression(pablo_xor->getExpr2()));
     399        expr = iBuilder.simd_xor(compileExpression(pablo_xor->getOperand(0)), compileExpression(pablo_xor->getOperand(1)));
    400400    }
    401401    else if (const Sel * sel = dyn_cast<Sel>(stmt)) {
Note: See TracChangeset for help on using the changeset viewer.