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

[mono] Intrinsify multiple StoreVector API's #98514

Merged
merged 6 commits into from
Feb 16, 2024

Conversation

jkurdek
Copy link
Member

@jkurdek jkurdek commented Feb 15, 2024

Contributes to #93081

This PR intrinsifies the following APIs:

AdvSimd.StoreVector64x*
AdvSimd.Arm64.StoreVector128x*
AdvSimd.StoreVector64xAndZip
AdvSimd.Arm64.StoreVector128x
AndZip

Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.


MonoClass* value = mono_class_from_mono_type_internal (fsig->params [1]);

MonoInst* ins = emit_simd_ins_for_sig (cfg, klass, OP_ARM64_STM, opcode, arg0_type, fsig, args);
Copy link
Member

@fanyang-mono fanyang-mono Feb 15, 2024

Choose a reason for hiding this comment

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

You could pass value as the second argument for emit_simd_ins_for_sig and get rid of the next line. Although value is kinda generic. Maybe rename it to klass_tuple_var or something else with more information.

@kunalspathak
Copy link
Member

cc: @a74nh @SwapnilGaikwad

@ghost
Copy link

ghost commented Feb 15, 2024

Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #93081

This PR intrinsifies the following API's:

AdvSimd.StoreVector64x*
AdvSimd.Arm64.StoreVector128x*

Author: jkurdek
Assignees: jkurdek
Labels:

area-System.Runtime.Intrinsics, new-api-needs-documentation

Milestone: -

Copy link
Member

@kunalspathak kunalspathak left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@jkurdek jkurdek marked this pull request as ready for review February 16, 2024 10:59
case SN_StoreVector64x2AndZip:
case SN_StoreVector64x3AndZip:
case SN_StoreVector64x4AndZip: {
int opcode = 0;
Copy link
Member

Choose a reason for hiding this comment

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

Usually we consider OP_ARM64_STM as the opcode. I would prefer to rename this variable as intrinsics_id or iid

Copy link
Member

@fanyang-mono fanyang-mono left a comment

Choose a reason for hiding this comment

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

LGTM!

@jkurdek jkurdek merged commit 355b19d into dotnet:main Feb 16, 2024
85 of 168 checks passed
@jkurdek jkurdek deleted the vector-store-intrins branch February 16, 2024 16:54
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants