[llvm] Added instant events and marking defered templated instantiation. (PR #103039)
Utkarsh Saxena via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 03:16:16 PDT 2024
================
@@ -18046,6 +18048,16 @@ void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
std::make_pair(Func, PointOfInstantiation));
// Notify the consumer that a function was implicitly instantiated.
Consumer.HandleCXXImplicitFunctionInstantiation(Func);
+
+ if (llvm::isTimeTraceVerbose()) {
+ llvm::timeTraceInstantEvent("DeferInstantiation", [&] {
+ std::string Name;
+ llvm::raw_string_ostream OS(Name);
+ Func->getNameForDiagnostic(OS, getPrintingPolicy(),
+ /*Qualified=*/true);
+ return Name;
+ });
+ }
----------------
usx95 wrote:
Ignore this. This is an old comment.
https://github.com/llvm/llvm-project/pull/103039
More information about the llvm-commits
mailing list