1 <!--===- docs/Directives.md
3 Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 See https://llvm.org/LICENSE.txt for license information.
5 SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # Compiler directives supported by Flang
11 A list of non-standard directives supported by Flang
13 * `!dir$ fixed` and `!dir$ free` select Fortran source forms. Their effect
14 persists to the end of the current source file.
15 * `!dir$ ignore_tkr [[(TKRDMAC)] dummy-arg-name]...` in an interface definition
16 disables some semantic checks at call sites for the actual arguments that
17 correspond to some named dummy arguments (or all of them, by default).
18 The directive allow actual arguments that would otherwise be diagnosed
19 as incompatible in type (T), kind (K), rank (R), CUDA device (D), or
20 managed (M) status. The letter (A) is a shorthand for all of these,
21 and is the default when no letters appear. The letter (C) is a legacy
22 no-op. For example, if one wanted to call a "set all bytes to zero"
23 utility that could be applied to arrays of any type or rank:
26 subroutine clear(arr,bytes)
28 integer(1), intent(out) :: arr(bytes)