summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCTargetMachine.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-01-25 23:05:59 +0000
committerHal Finkel <hfinkel@anl.gov>2013-01-25 23:05:59 +0000
commita8b289b70d5ef416608bb71a874b8b4fe80158e1 (patch)
tree17a720ed98c8eb4d13cf364a7028bb50a3f810ef /lib/Target/PowerPC/PPCTargetMachine.h
parentf777d09f375c1206cd0cea649bd0b2c04d668bfa (diff)
downloadllvm-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.h3
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.