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

[2024-11 LWG Motion 18] P1928R15 std::simd — merge data-parallel types from the Parallelism TS 2 #7440

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mattkretz
Copy link
Contributor

  • Add closing parenthesis in [simd.reductions] p3.
  • Add namespace std to simd_flags, basic_simd, and basic_simd_mask
  • Add comma after 'e.g.'
  • Add \rSec3[simd.expos.defn]{Exposition-only helpers} (missing sibling)
  • Remove \iref from simd.expos.abi] (5.3), already in (5.2)

Fixes #7430
Fixes cplusplus/papers#670

@mattkretz mattkretz force-pushed the motion-2024-11-lwg-18 branch from 472e4ad to 943a96d Compare November 25, 2024 15:48
@mattkretz
Copy link
Contributor Author

mattkretz commented Nov 25, 2024

  • I believe the 'Index of implementation-defined behavior' does not list simd yet.
  • Library index is missing
  • Is the second commit sufficiently editorial, or does it need an LWG issue?

@mattkretz mattkretz force-pushed the motion-2024-11-lwg-18 branch from 943a96d to a408f67 Compare November 25, 2024 20:38
@jensmaurer jensmaurer changed the title Merge 2024-11 LWG Motion 18 - P1928R15 std::simd — merge data-parallel types from the Parallelism TS 2 [2024-11 LWG Motion 18] P1928R15 std::simd — merge data-parallel types from the Parallelism TS 2 Dec 4, 2024
@jensmaurer jensmaurer added this to the post-2024-11 milestone Dec 4, 2024
@jensmaurer
Copy link
Member

I think the second commit is fine as-is.

source/numerics.tex Outdated Show resolved Hide resolved
source/numerics.tex Outdated Show resolved Hide resolved
source/numerics.tex Outdated Show resolved Hide resolved
source/numerics.tex Outdated Show resolved Hide resolved
source/numerics.tex Outdated Show resolved Hide resolved
\begin{itemize}
\item
\tcode{\exposid{deduced-simd-t}<T>}, if that type is not \tcode{void},
otherwise
Copy link
Member

Choose a reason for hiding this comment

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

"otherwise" should be at the start of a (the next) bullet, not at the end of the previous one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a deliberate choice of LWG because the possible type of the alias follows right after each bullet. I don't care either way, but if the "otherwise" always goes at the start of a bullet (without exceptions) then I think I need to make a few more changes.

Copy link
Member

Choose a reason for hiding this comment

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

@tkoeppe , your opinion here?

https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines isn't very clear on this topic.

source/numerics.tex Outdated Show resolved Hide resolved
Comment on lines +16758 to +16760
\tcode{value} identifies the alignment restrictions on pointers used for
(converting) loads and stores for the given type \tcode{T} on arrays of type
\tcode{U}.
Copy link
Member

Choose a reason for hiding this comment

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

That needs a normative statement somewhere. Cross-reference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The normative wording is in [simd.ctor] (the range ctor) and [simd.loadstore]. The cross-reference is directly preceding the note. Should it be in the note instead?

Copy link
Member

Choose a reason for hiding this comment

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

I think I would prefer that, but it's ok either way.

source/numerics.tex Outdated Show resolved Hide resolved
source/numerics.tex Outdated Show resolved Hide resolved
… TS 2

* Add closing parenthesis in [simd.reductions] p3.
* Add namespace std to simd_flags, basic_simd, and basic_simd_mask
* Add comma after 'e.g.'
* Add \rSec3[simd.expos.defn]{Exposition-only helpers} (missing sibling)
* Remove \iref from simd.expos.abi] (5.3), already in (5.2)

Fixes cplusplus#7430
Fixes cplusplus/papers#670
The return type in the itemdecl/-descr was obviously wrong (ABI tag as
first template argument to the simd_mask alias template and missing
closing template bracket). The synopsis had the correct return type.
@mattkretz mattkretz force-pushed the motion-2024-11-lwg-18 branch from a408f67 to 668fcd6 Compare December 5, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants