Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Make Vector64<T>, Vector128<T>, and Vector256<T> readonly #19251

Merged
merged 1 commit into from
Aug 2, 2018
Merged

Make Vector64<T>, Vector128<T>, and Vector256<T> readonly #19251

merged 1 commit into from
Aug 2, 2018

Conversation

tannergooding
Copy link
Member

This marks the HWIntrinsic types as readonly. This allows the C# compiler to assume the type is immutable and it can then perform certain optimizations when used in the context of other readonly types, fields, etc.

@tannergooding
Copy link
Member Author

A similar change was taken for all the primitive types here: #18645

@tannergooding
Copy link
Member Author

CC. @CarolEidt, @fiigii, @sdmaclea, @eerhardt, @jkotas

Copy link

@fiigii fiigii left a comment

Choose a reason for hiding this comment

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

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants