LOOPID
Purpose
The LOOPID directive allows you to assign a unique identifier to loop within a scoping unit. You can use the identifier to direct loop transformations. The –qreport compiler option can use the identifier you create to provide reports on loop transformations.
Syntax
- name
- is an identifier that must be unique within the scoping unit.
Rules
The LOOPID directive must immediately precede a BLOCK_LOOP directive or DO construct.
You must not specify a LOOPID directive more than once for a given loop.
You must not specify a LOOPID directive
for DO constructs without control statements, DO WHILE constructs,
DO CONCURRENT constructs
, or
an infinite DO.
Related information
- For additional methods of optimizing loops, see the BLOCK_LOOP, STREAM UNROLL, UNROLL and the UNROLL_AND_FUSE directives.



