File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ llvm::cl::opt<bool> VerifyFunctionsAfterSpecialization(
67
67
" Verify functions after they are specialized "
68
68
" 'PrettyStackTraceFunction'-ing the original function if we fail." ));
69
69
70
+ llvm::cl::opt<bool > DumpFunctionsAfterSpecialization (
71
+ " sil-generic-dump-functions-after-specialization" , llvm::cl::init(false ));
72
+
70
73
static bool OptimizeGenericSubstitutions = false ;
71
74
72
75
// / Max depth of a type which can be processed by the generic
@@ -2115,6 +2118,13 @@ GenericFuncSpecializer::tryCreateSpecialization(bool forcePrespecialization) {
2115
2118
SpecializedF->verify ();
2116
2119
}
2117
2120
2121
+ if (DumpFunctionsAfterSpecialization) {
2122
+ llvm::dbgs () << llvm::Twine (" Generic function: " ) + GenericFunc->getName () +
2123
+ " . Specialized Function: " + SpecializedF->getName ();
2124
+ GenericFunc->dump ();
2125
+ SpecializedF->dump ();
2126
+ }
2127
+
2118
2128
return SpecializedF;
2119
2129
}
2120
2130
You can’t perform that action at this time.
0 commit comments