# MASKED TASKLOOP

OpenMP* Fortran Compiler Directive: Creates a MASKED construct containing a TASKLOOP construct, with no Fortran statements in the MASKED construct that are not also in the TASKLOOP construct. This feature is only available for ifx.

## Syntax

!$OMP MASKED TASKLOOP [clause[[,] clause]... ]

loop-nest

[!$OMP END MASKED TASKLOOP]

clause | Can be any of the clauses accepted by the MASKED or TASKLOOP directives with identical meanings and restrictions.
loop-nest | Is a nest of DO loops in canonical form.

This combined directive provides a shortcut for specifying a MASKED construct with a TASKLOOP construct nested inside of it. The semantics are identical to a TASKLOOP construct specified immediately after a MASKED construct.

All restrictions for MASKED and TASKLOOP constructs apply to this combined construct.

Parent topic: M to N

## See Also

OpenMP Fortran Compiler Directives
Syntax Rules for Compiler Directives
MASKED directive
TASKLOOP directive

To learn more about canonical form loops, see the OpenMP* specification.