Skip to content

Remove ReadyToRun prefix from image layout code #115188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MichalStrehovsky
Copy link
Member

This is now shared with native AOT.

Cc @dotnet/ilc-contrib

This is now shared with native AOT.
@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 11:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the image layout code by removing the "ReadyToRun" prefix from various types and method names to share the implementation with native AOT.

  • Renamed enums and options from ReadyToRunMethodLayoutAlgorithm/ReadyToRunFileLayoutAlgorithm to MethodLayoutAlgorithm/FileLayoutAlgorithm.
  • Updated function names and associated variables accordingly across multiple projects.
  • Adjusted string formatting and error handling to reference the new enum types.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/coreclr/tools/aot/crossgen2/Crossgen2RootCommand.cs Updated layout option types and corresponding helper methods.
src/coreclr/tools/aot/ILCompiler/ILCompilerRootCommand.cs Changed layout option types and helper methods to use new enum names.
src/coreclr/tools/aot/ILCompiler.RyuJit/Compiler/RyuJitCompilationBuilder.cs Adjusted variable types and method signatures for file layout algorithms.
src/coreclr/tools/aot/ILCompiler.RyuJit/Compiler/RyuJitCompilation.cs Updated constructor parameter types and optimizer instantiation.
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilationBuilder.cs Modified API to accept new layout algorithm types.
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs Switched to new file layout optimizer and updated parameters.
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/FileLayoutOptimizer.cs Renamed enums and class, and updated switch cases to use the new names.
Files not reviewed (2)
  • src/coreclr/tools/aot/ILCompiler.ReadyToRun/ILCompiler.ReadyToRun.csproj: Language not supported
  • src/coreclr/tools/aot/ILCompiler.RyuJit/ILCompiler.RyuJit.csproj: Language not supported

Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants