Skip to content
Commit e038552c authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[PM] Port TTI to the new pass manager, introducing a TargetIRAnalysis to

produce it.

This adds a function to the TargetMachine that produces this analysis
via a callback for each function. This in turn faves the way to produce
a *different* TTI per-function with the correct subtarget cached.

I've also done the necessary wiring in the opt tool to thread the target
machine down and make it available to the pass registry so that we can
construct this analysis from a target machine when available.

llvm-svn: 227721
parent 2844ca73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment