diff options
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index b8b7882ac00..fe851c1b6fb 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -126,3 +126,12 @@ bool PPCTargetMachine::addCodeEmitter(PassManagerBase &PM,    return false;  } + +void PPCTargetMachine::addAnalysisPasses(PassManagerBase &PM) { +  // Add first the target-independent BasicTTI pass, then our PPC pass. This +  // allows the PPC pass to delegate to the target independent layer when +  // appropriate. +  PM.add(createBasicTargetTransformInfoPass(getTargetLowering())); +  PM.add(createPPCTargetTransformInfoPass(this)); +} +  | 

