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 | 4e5ca9e578db1375a0a7d7fa400ceccb99816505 (patch) | |
tree | e406ecbda5f350f3aa6dc143be0931cbe9586eb9 /llvm/lib/Target/PowerPC/PPCTargetMachine.h | |
parent | 9d8dd4bf52ee59c3e2ab3f912ca2dbe8a882d5c5 (diff) | |
download | bcm5719-llvm-4e5ca9e578db1375a0a7d7fa400ceccb99816505.tar.gz bcm5719-llvm-4e5ca9e578db1375a0a7d7fa400ceccb99816505.zip |
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).
llvm-svn: 173520
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h index d917d99ded6..606ccb31412 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h +++ b/llvm/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. |