OSDN Git Service

Initial implementation of PPCTargetTransformInfo
authorHal Finkel <hfinkel@anl.gov>
Fri, 25 Jan 2013 23:05:59 +0000 (23:05 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 25 Jan 2013 23:05:59 +0000 (23:05 +0000)
commita8b289b70d5ef416608bb71a874b8b4fe80158e1
tree17a720ed98c8eb4d13cf364a7028bb50a3f810ef
parentf777d09f375c1206cd0cea649bd0b2c04d668bfa
Initial implementation of PPCTargetTransformInfo

This provides a place to add customized operation cost information and
control some other target-specific IR-level transformations.

The only non-trivial logic in this checkin assigns a higher cost to
unaligned loads and stores (covered by the included test case).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173520 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCTargetMachine.cpp
lib/Target/PowerPC/PPCTargetMachine.h
lib/Target/PowerPC/PPCTargetTransformInfo.cpp [new file with mode: 0644]
test/Analysis/CostModel/PowerPC/lit.local.cfg [new file with mode: 0644]
test/Analysis/CostModel/PowerPC/load_store.ll [new file with mode: 0644]