Add a new Operator class, for handling Instructions and ConstantExprs
authorDan Gohman <gohman@apple.com>
Fri, 17 Jul 2009 20:47:02 +0000 (20:47 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 17 Jul 2009 20:47:02 +0000 (20:47 +0000)
commitca178908c8dc2303a1fb54a8a93bab0f0b964e11
tree80aa85f4b479a948b080f13679535c4c29b7a145
parente2cf37b88c089a71727b3ecd466856f0cd638813
Add a new Operator class, for handling Instructions and ConstantExprs
in a convenient manner, factoring out some common code from
InstructionCombining and ValueTracking. Move the contents of
BinaryOperators.h into Operator.h and use Operator to generalize them
to support ConstantExprs as well as Instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76232 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryOperators.h [deleted file]
include/llvm/Operator.h [new file with mode: 0644]
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ValueTracking.cpp
lib/Transforms/Scalar/InstructionCombining.cpp