Skip to content
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

Intrinsify Unsafe.Read/Write/Copy, handle struct BitCast #85562

Merged
merged 64 commits into from
Jul 23, 2023

Conversation

MichalPetryka
Copy link
Contributor

@MichalPetryka MichalPetryka commented Apr 29, 2023

Implements Unsafe.Read/Write/Copy (and the unaligned versions) as JIT intrinsics.

Fixes bugs with small type params not being correctly extended in bitcast.

Handles structs in Unsafe.BitCast via intrinsic.

Contributes to #69220.
Fixes #55357.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Apr 29, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 29, 2023
@ghost
Copy link

ghost commented Apr 29, 2023

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

Issue Details

Implements Unsafe.Read/Write (and the unaligned versions) as JIT intrinsics.

Handles structs in Unsafe.BitCast via intrinsic.

Contributes to #69220.

Author: MichalPetryka
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@MichalPetryka MichalPetryka marked this pull request as ready for review April 30, 2023 18:35
src/coreclr/jit/gentree.cpp Outdated Show resolved Hide resolved
src/coreclr/jit/importercalls.cpp Outdated Show resolved Hide resolved
@MichalPetryka
Copy link
Contributor Author

I'll be unable to respond to reviews for a few weeks, I've asked @thatbakamono to apply any feedback though.

@EgorBo
Copy link
Member

EgorBo commented Jul 16, 2023

/azp run runtime-coreclr outerloop, runtime-extra-platforms, runtime-coreclr pgostress

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 85562 in repo dotnet/runtime

@EgorBo
Copy link
Member

EgorBo commented Jul 16, 2023

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 85562 in repo dotnet/runtime

@EgorBo
Copy link
Member

EgorBo commented Jul 16, 2023

/azp run runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@EgorBo
Copy link
Member

EgorBo commented Jul 22, 2023

Can you please rebase it - CI should be better now

@MichalPetryka
Copy link
Contributor Author

@MihuBot

@EgorBo
Copy link
Member

EgorBo commented Jul 23, 2023

Thanks!

@AndyAyersMS
Copy link
Member

@AndyAyersMS
Copy link
Member

@ghost ghost locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsafe.As resulting in lots of unnecessary moves.
5 participants