PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
authorJay Foad <jay.foad@gmail.com>
Tue, 7 Dec 2010 08:25:19 +0000 (08:25 +0000)
committerJay Foad <jay.foad@gmail.com>
Tue, 7 Dec 2010 08:25:19 +0000 (08:25 +0000)
commit40f8f6264d5af2c38e797e0dc59827cd231e8ff7
tree3f3b576d6ec060c4063e4630d1ac4fad94997d82
parent0ea112f104215ccba8d89c839cdeded6e3d49e59
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method
trunc(), to be const and to return a new value instead of modifying the
object in place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121120 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/llvm/ADT/APInt.h
include/llvm/ADT/APSInt.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/ConstantFolding.cpp
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ValueTracking.cpp
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Support/APFloat.cpp
lib/Support/APInt.cpp
lib/Support/ConstantRange.cpp
lib/Support/StringRef.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
lib/Transforms/Scalar/MemCpyOptimizer.cpp
lib/VMCore/ConstantFold.cpp
unittests/Support/ConstantRangeTest.cpp