IRGen: Add the ability to mark certain generic entry points in back traces

Mark generic function calls with concrete parameters, generic v-table calls and
generic witness table calls where self is generic.
This commit is contained in:
Arnold Schwaighofer
2024-10-14 14:04:53 -07:00
parent 82914d1979
commit 8ebb3ec473
12 changed files with 180 additions and 11 deletions

View File

@@ -3473,6 +3473,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Args.hasFlag(OPT_enable_fragile_resilient_protocol_witnesses,
OPT_disable_fragile_resilient_protocol_witnesses,
Opts.UseFragileResilientProtocolWitnesses);
Opts.UseProfilingMarkerThunks =
Args.hasFlag(OPT_enable_profiling_marker_thunks,
OPT_disable_profiling_marker_thunks,
Opts.UseProfilingMarkerThunks);
Opts.EmitYieldOnce2AsYieldOnce =
!LangOpts.hasFeature(Feature::CoroutineAccessorsAllocateInCallee);
Opts.EnableHotColdSplit =