Ignore:
Timestamp:
Oct 21, 2014, 9:54:49 AM (5 years ago)
Author:
nmedfort
Message:

Added Diff to RE Compiler/Parser?. Removed CC.negate()

File:
1 edited

Legend:

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

    r4254 r4255  
    297297                                              /*isVarArg=*/false);
    298298
    299     mFunc_llvm_uadd_with_overflow = mMod->getFunction("llvm.uadd.with.overflow.carryin.i##BLOCK_SIZE");
     299    mFunc_llvm_uadd_with_overflow = mMod->getFunction("llvm.uadd.with.overflow.carryin.i"##BLOCK_SIZE);
    300300    if (!mFunc_llvm_uadd_with_overflow) {
    301301        mFunc_llvm_uadd_with_overflow = Function::Create(
    302302          /*Type=*/ FuncTy_1,
    303303          /*Linkage=*/ GlobalValue::ExternalLinkage,
    304           /*Name=*/ "llvm.uadd.with.overflow.carryin.i##BLOCK_SIZE", mMod); // (external, no body)
     304          /*Name=*/ "llvm.uadd.with.overflow.carryin.i"##BLOCK_SIZE, mMod); // (external, no body)
    305305        mFunc_llvm_uadd_with_overflow->setCallingConv(CallingConv::C);
    306306    }
     
    731731
    732732    //CarryQ - carry in.
    733     int this_carry_idx = mCarryQueueIdx++;
    734     Value* carryq_value = genCarryInLoad(mCarryQueuePtr, this_carry_idx);
     733    const int carryIdx = mCarryQueueIdx++;
     734    Value* carryq_value = genCarryInLoad(mCarryQueuePtr, carryIdx);
    735735
    736736#ifdef USE_UADD_OVERFLOW
     
    761761    Value* carry_out = genShiftHighbitToLow(b.CreateOr(carrygen, b.CreateAnd(carryprop, genNot(sum))), "carry_out");
    762762#endif
    763     genCarryOutStore(carry_out, mCarryQueuePtr, this_carry_idx);
     763    genCarryOutStore(carry_out, mCarryQueuePtr, carryIdx);
    764764    return sum;
    765765}
Note: See TracChangeset for help on using the changeset viewer.