You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make it possible to order methods by specifying symbolic names (#117537)
Text file with an ordered list of symbol names is much easier to emit based on sampling than MIBC (that requires methods in IL terms). Methods that are listed are generated in the specified order. Methods that are not listed are sorted by the compiler. Things that are listed but don't exist are silently skipped.
Copy file name to clipboardExpand all lines: src/coreclr/tools/aot/ILCompiler/ILCompilerRootCommand.cs
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ internal sealed class ILCompilerRootCommand : RootCommand
31
31
new("--method-layout"){CustomParser=MakeMethodLayoutAlgorithm,DefaultValueFactory=MakeMethodLayoutAlgorithm,Description="Layout algorithm used by profile-driven optimization for arranging methods in a file.",HelpName="arg"};
new("--file-layout"){CustomParser=MakeFileLayoutAlgorithm,DefaultValueFactory=MakeFileLayoutAlgorithm,Description="Layout algorithm used by profile-driven optimization for arranging non-method contents in a file.",HelpName="arg"};
34
+
publicOption<string>OrderFile{get;}=
35
+
new("--order"){Description="File that specifies order of symbols within the generated object file"};
34
36
publicOption<string[]>SatelliteFilePaths{get;}=
35
37
new("--satellite"){DefaultValueFactory= _ =>Array.Empty<string>(),Description="Satellite assemblies associated with inputs/references"};
36
38
publicOption<bool>EnableDebugInfo{get;}=
@@ -193,6 +195,7 @@ public ILCompilerRootCommand(string[] args) : base(".NET Native IL Compiler")
193
195
Options.Add(MibcFilePaths);
194
196
Options.Add(MethodLayout);
195
197
Options.Add(FileLayout);
198
+
Options.Add(OrderFile);
196
199
Options.Add(SatelliteFilePaths);
197
200
Options.Add(EnableDebugInfo);
198
201
Options.Add(UseDwarf5);
@@ -300,7 +303,7 @@ public ILCompilerRootCommand(string[] args) : base(".NET Native IL Compiler")
300
303
301
304
#pragma warning disable CA1861// Avoid constant arrays as arguments. Only executed once during the execution of the program.
0 commit comments