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

[SE-0251] Additions to SIMD types. #23421

Merged
merged 2 commits into from
Apr 9, 2019

Conversation

stephentyrone
Copy link
Contributor

@stephentyrone stephentyrone commented Mar 19, 2019

  • extension from 2 and 3-element vectors to 3- and 4-element vectors.
  • the .one member
  • swizzles via subscript-by-simd
  • min/max/sum reductions
  • min/max/clamp on vectors-of-comparable
  • any and all
  • copysign

Fixes rdar://problem/48276450

- extension from 2 and 3-element vectors to 3- and 4-element vectors.
- the .one member
- swizzles via subscript-by-simd
- min/max/sum reductions
- min/max/clamp on vectors-of-comparable
- any and all
- copysign

All of is is pending evolution review.
Make permute subscript wrap on vector length, even for SIMD3 dictionaries. Also restore min/max to globals, rather than static functions.
@stephentyrone stephentyrone marked this pull request as ready for review April 4, 2019 20:40
@stephentyrone
Copy link
Contributor Author

@swift-ci please test

@stephentyrone
Copy link
Contributor Author

@swift-ci please test source compatibility

@stephentyrone
Copy link
Contributor Author

@swift-ci please test source compatibility.

@stephentyrone stephentyrone changed the title Additions to SIMD types. [SE-0251] Additions to SIMD types. Apr 5, 2019
@airspeedswift
Copy link
Member

Is this gtm?

@stephentyrone
Copy link
Contributor Author

stephentyrone commented Apr 9, 2019 via email

@stephentyrone stephentyrone merged commit f4b2916 into swiftlang:master Apr 9, 2019
@stephentyrone stephentyrone deleted the simd-additions branch April 9, 2019 16:53
stephentyrone added a commit to stephentyrone/swift that referenced this pull request Apr 11, 2019
* Additions to SIMD types.

- extension from 2 and 3-element vectors to 3- and 4-element vectors.
- the .one member
- swizzles via subscript-by-simd
- min/max/sum reductions
- min/max/clamp on vectors-of-comparable
- any and all

- Make permute subscript wrap on vector length, even for SIMD3 dictionaries. Also restore min/max to globals, rather than static functions.
stephentyrone added a commit that referenced this pull request Apr 16, 2019
* Some cleanup of SIMDVector and SIMDVectorTypes source files. (#23389)

Bring formatting closer in line with the rest of the standard lib, remove "public" from extensions (moving it onto the contents defined therein). Restore Swift project headers that were apparently lost at some point.

* [SE-0251] Additions to SIMD types. (#23421)

* Additions to SIMD types.

- extension from 2 and 3-element vectors to 3- and 4-element vectors.
- the .one member
- swizzles via subscript-by-simd
- min/max/sum reductions
- min/max/clamp on vectors-of-comparable
- any and all

- Make permute subscript wrap on vector length, even for SIMD3 dictionaries. Also restore min/max to globals, rather than static functions.

* Temporarily remove the global min(a,b) and max(a,b) SIMD functions. (#23960)

These are triggering a bad compile-time regression for some expressions; that's a bug that should be fixed, but we don't know how to fix it yet, so we'll need to remove these in the short-term, and possibly spell them differently in the medium term.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants