Add a flag to annotate all functions with the optremark (@_assemblyVision) attribute

rdar://159291169
This commit is contained in:
Arnold Schwaighofer
2025-08-22 09:29:20 -07:00
parent 29fcb5ef05
commit df5a8cd3cc
5 changed files with 42 additions and 1 deletions

View File

@@ -3075,6 +3075,10 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Opts.OptRecordFormat = *formatOrErr;
}
Opts.EnableGlobalAssemblyVision = Args.hasFlag(
OPT_enable_assembly_vision_all, OPT_disable_assembly_vision_all,
Opts.EnableGlobalAssemblyVision);
if (const Arg *A = Args.getLastArg(OPT_save_optimization_record_passes))
Opts.OptRecordPasses = A->getValue();