Skip to content

Commit 0e169bf

Browse files
authored
[NFC] Collocate atomic instructions requirements (#741)
This change collocates storage class requirements for atomic instructions pointer argument to make it easier to find/read. No functional changes intended.
1 parent 26697ec commit 0e169bf

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

env/validation_rules.asciidoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ For all *Atomic Instructions*:
4747
or *CrossWorkgroup* _Storage Classes_. Note that an *Atomic Instruction*
4848
on a pointer to the *Function* _Storage Class_ is valid, but does not
4949
have defined behavior.
50+
* For OpenCL environments that support and declare the *GenericPointer*
51+
capability, the _Pointer_ operand may be a pointer to the *Generic*
52+
_Storage Class_, however behavior is still undefined if the *Generic*
53+
pointer represents a pointer to the *Function* _Storage Class_.
5054

5155
Recursion is not supported.
5256
The static function call graph for an entry point must not contain cycles.
@@ -161,9 +165,3 @@ And, the memory-order constraint in _Memory Semantics_ must be one of:
161165
** For OpenCL 2.0, OpenCL 2.1, OpenCL 2.2, or OpenCL 3.0 devices
162166
supporting {CL_DEVICE_ATOMIC_ORDER_SEQ_CST} in
163167
{CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES}.
164-
165-
For OpenCL environments that support and declare the *GenericPointer*
166-
capability, the _Pointer_ operand to all *Atomic Instructions* may be
167-
a pointer to the *Generic* _Storage Class_, however behavior is still
168-
undefined if the *Generic* pointer represents a pointer to the
169-
*Function* _Storage Class_.

0 commit comments

Comments
 (0)