diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-01-25 23:05:59 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-01-25 23:05:59 +0000 |
commit | a8b289b70d5ef416608bb71a874b8b4fe80158e1 (patch) | |
tree | 17a720ed98c8eb4d13cf364a7028bb50a3f810ef /lib/Target/PowerPC/PPCTargetMachine.h | |
parent | f777d09f375c1206cd0cea649bd0b2c04d668bfa (diff) | |
download | llvm-a8b289b70d5ef416608bb71a874b8b4fe80158e1.tar.gz llvm-a8b289b70d5ef416608bb71a874b8b4fe80158e1.tar.bz2 llvm-a8b289b70d5ef416608bb71a874b8b4fe80158e1.tar.xz |
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
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.h')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.h b/lib/Target/PowerPC/PPCTargetMachine.h index d917d99ded..606ccb3141 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.h +++ b/lib/Target/PowerPC/PPCTargetMachine.h @@ -68,6 +68,9 @@ public: virtual TargetPassConfig *createPassConfig(PassManagerBase &PM); virtual bool addCodeEmitter(PassManagerBase &PM, JITCodeEmitter &JCE); + + /// \brief Register PPC analysis passes with a pass manager. + virtual void addAnalysisPasses(PassManagerBase &PM); }; /// PPC32TargetMachine - PowerPC 32-bit target machine. |