Changes to support making the shift instructions be true BinaryOperators.
authorReid Spencer <rspencer@reidspencer.com>
Fri, 2 Feb 2007 02:16:23 +0000 (02:16 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 2 Feb 2007 02:16:23 +0000 (02:16 +0000)
commit832254e1c2387c0cbeb0a820b8315fbe85cb003a
treed3d0c15237b69dfda4ea152775417f2cc67b369b
parent9a2ef9509e76869c3d658fb3e321d9b9e9d479d9
Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33776 91177308-0d34-0410-b5e6-96231b3b80d8
72 files changed:
include/llvm/Constants.h
include/llvm/Instruction.def
include/llvm/Instruction.h
include/llvm/Instructions.h
include/llvm/Support/InstVisitor.h
include/llvm/Support/PatternMatch.h
lib/Analysis/ConstantFolding.cpp
lib/Analysis/IPA/Andersens.cpp
lib/Analysis/ScalarEvolution.cpp
lib/AsmParser/Lexer.cpp.cvs
lib/AsmParser/Lexer.l
lib/AsmParser/Lexer.l.cvs
lib/AsmParser/llvmAsmParser.cpp.cvs
lib/AsmParser/llvmAsmParser.h.cvs
lib/AsmParser/llvmAsmParser.y
lib/AsmParser/llvmAsmParser.y.cvs
lib/Bytecode/Reader/Reader.cpp
lib/CodeGen/IntrinsicLowering.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/ExecutionEngine/Interpreter/Execution.cpp
lib/ExecutionEngine/Interpreter/Interpreter.h
lib/Makefile
lib/Target/CBackend/CBackend.cpp
lib/Transforms/ExprTypeConvert.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Scalar/ScalarReplAggregates.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/Constants.cpp
lib/VMCore/Instructions.cpp
lib/VMCore/Verifier.cpp
test/Assembler/2003-05-21-MalformedShiftCrash.llx
test/Assembler/2007-02-01-UpgradeShift.ll [new file with mode: 0644]
test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll
test/CodeGen/ARM/2007-01-31-RegInfoAssert.ll
test/CodeGen/ARM/bits.ll
test/CodeGen/ARM/long_shift.ll
test/CodeGen/ARM/sxt_rot.ll
test/CodeGen/ARM/uxt_rot.ll
test/CodeGen/Alpha/add.ll
test/CodeGen/PowerPC/and-elim.ll
test/CodeGen/PowerPC/and_sext.ll
test/CodeGen/PowerPC/rlwinm2.ll
test/CodeGen/PowerPC/rotl.ll
test/CodeGen/X86/2007-01-13-StackPtrIndex.ll
test/CodeGen/X86/trunc-to-bool.ll
test/Integer/BitBit.ll
test/Integer/a1.ll
test/Integer/a15.ll
test/Integer/a17.ll
test/Integer/a31.ll
test/Integer/a33.ll
test/Integer/a63.ll
test/Integer/a7.ll
test/Integer/a9.ll
test/Integer/testarith_bt.ll
test/Integer/testlogical_new_bt.ll
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/shift-simplify.ll
test/Transforms/InstCombine/shift-sra.ll
test/Transforms/InstCombine/signext.ll
test/Transforms/Reassociate/shifttest.ll
tools/llvm-upgrade/UpgradeInternals.h
tools/llvm-upgrade/UpgradeLexer.cpp.cvs
tools/llvm-upgrade/UpgradeLexer.l
tools/llvm-upgrade/UpgradeLexer.l.cvs
tools/llvm-upgrade/UpgradeParser.cpp.cvs
tools/llvm-upgrade/UpgradeParser.h.cvs
tools/llvm-upgrade/UpgradeParser.y
tools/llvm-upgrade/UpgradeParser.y.cvs