[PM] Port TTI to the new pass manager, introducing a TargetIRAnalysis to
[oota-llvm.git] / tools / opt / PassRegistry.def
index 9361d98c9a5f618aaec2ef670a65979d41b1454e..4ee9e97158e2d339d5549f14abe38e69097545f6 100644 (file)
@@ -55,6 +55,8 @@ FUNCTION_ANALYSIS("domtree", DominatorTreeAnalysis())
 FUNCTION_ANALYSIS("loops", LoopAnalysis())
 FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
 FUNCTION_ANALYSIS("targetlibinfo", TargetLibraryAnalysis())
+FUNCTION_ANALYSIS("targetir",
+                  TM ? TM->getTargetIRAnalysis() : TargetIRAnalysis())
 #undef FUNCTION_ANALYSIS
 
 #ifndef FUNCTION_PASS