logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Attributes_of_Blocks_and_Control-Flow-Statements - Attributes of Blocks and Control-Flow Statements.

Authors

TheKhronosGroup

Description

       For basic blocks and control-flow-statements the attribute is placed before the structure in question,
       for example:

                  __attribute__((attr1)) {...}
                  for __attribute__((attr2)) (...) __attribute__((attr3)) {...}

       Here attr1 applies to the block in braces and attr2 and attr3 apply to the loop's control construct and
       body, respectively.

       No attribute qualifiers for blocks and control-flow-statements are currently defined.

Name

       Attributes_of_Blocks_and_Control-Flow-Statements - Attributes of Blocks and Control-Flow Statements.

       __attribute__((attr1)) {...}

Notes

        1. OpenCL Specification
           page 241, section 6.11.4 - Specifying Attributes of Blocks and Control...

The Khronos Group                                  11/18/2024                         ATTRIBUTESOFBLOCKS(3clc)

See Also

attribute(3clc), attributes-types(3clc), attributes-variables(3clc)

Specification

OpenCLSpecification[1]

See Also