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)
commitd3c965d6251e6d939f7797f8704d4e3a82f7e274
tree8efa0dd2fa26f1d3c24e434257eeabe7bce8db22
parentac47c1bc39d9d5de51d8ef5385545e643e076556
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172658 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/TargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.cpp