Change CostTable model to be global to all targets
authorRenato Golin <renato.golin@linaro.org>
Wed, 16 Jan 2013 21:29:55 +0000 (21:29 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 16 Jan 2013 21:29:55 +0000 (21:29 +0000)
commitf104c4c4ca8f561078497f36127cdf0fdc54cb88
treedfeef079c5da88b7f085e4478eebef814fe16c55
parent862fec88356614724510b9b14d422015103bc9b1
Change CostTable model to be global to all targets

Moving the X86CostTable to a common place, so that other back-ends
can share the code. Also simplifying it a bit and commoning up
tables with one and two types on operations.

llvm-svn: 172658
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp