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

Disallow repeated swizzle element in assignment #585

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17979,6 +17979,9 @@ void load(size_t offset, multi_ptr<const DataT, AddressSpace, IsDecorated> ptr)
|====
_Availability:_ Available only in [code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.

_Effects:_ Loads values from memory into elements of the underlying [code]#vec#
object.
A total of [code]#NumElements# values are loaded from memory, starting at the
Expand Down Expand Up @@ -18194,9 +18197,12 @@ Where [code]#OP# is: [code]#pass:[+=]#, [code]#-=#, [code]#*=#, [code]#/=#,
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ If [code]#OP# is one of the following: [code]#%=#, [code]#&=#,
[code]#|=#, [code]#^=#, [code]#+<<=+#, [code]#>>=#; available only when:
[code]#DataT != float && DataT != double && DataT != half#.
_Constraints:_ Available only when the left hand side
[code]#+__writeable_swizzle__+# view does not contain any repeated elements.

If [code]#OP# is one of the following: [code]#%=#, [code]#&=#, [code]#|=#,
[code]#^=#, [code]#+<<=+#, [code]#>>=#; available only when: [code]#DataT !=
float && DataT != double && DataT != half#.

In addition, overloads (1) and (2) are available only when the element data type
of [code]#lhs# is the same as the element data type of [code]#rhs# and when the
Expand Down Expand Up @@ -18237,7 +18243,9 @@ Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when [code]#DataT# is not [code]#bool#.
_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.
Available only when [code]#DataT# is not [code]#bool#.

_Effects:_ Perform an in-place element-wise [code]#OP# prefix arithmetic
operation on those elements of the [code]#vec# object that have corresponding
Expand All @@ -18262,7 +18270,9 @@ Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when [code]#DataT# is not [code]#bool#.
_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.
Available only when [code]#DataT# is not [code]#bool#.

_Effects:_ Perform an in-place element-wise [code]#OP# postfix arithmetic
operation on those elements of the [code]#vec# object that have corresponding
Expand Down