Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/lib/CodeGen/SelectionDAG/TargetLowering.cpp

    r4574 r4664  
    9797    Entry.Node = Ops[i];
    9898    Entry.Ty = Entry.Node.getValueType().getTypeForEVT(*DAG.getContext());
    99     Entry.isSExt = isSigned;
    100     Entry.isZExt = !isSigned;
     99    Entry.isSExt = shouldSignExtendTypeInLibCall(Ops[i].getValueType(), isSigned);
     100    Entry.isZExt = !shouldSignExtendTypeInLibCall(Ops[i].getValueType(), isSigned);
    101101    Args.push_back(Entry);
    102102  }
     
    105105  Type *RetTy = RetVT.getTypeForEVT(*DAG.getContext());
    106106  TargetLowering::CallLoweringInfo CLI(DAG);
     107  bool signExtend = shouldSignExtendTypeInLibCall(RetVT, isSigned);
    107108  CLI.setDebugLoc(dl).setChain(DAG.getEntryNode())
    108109    .setCallee(getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0)
    109110    .setNoReturn(doesNotReturn).setDiscardResult(!isReturnValueUsed)
    110     .setSExtResult(isSigned).setZExtResult(!isSigned);
     111    .setSExtResult(signExtend).setZExtResult(!signExtend);
    111112  return LowerCallTo(CLI);
    112113}
Note: See TracChangeset for help on using the changeset viewer.