[flang-commits] [flang] [Flang] Add `INLINEALWAYS` Compiler Directive (PR #192674)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Tue Apr 21 01:49:36 PDT 2026


================
@@ -99,6 +99,16 @@ A list of non-standard directives supported by Flang
   assignment statement.
 * `!dir$ forceinline` works in the same way as the `inline` directive, but it forces
    inlining by the compiler on a function call statement.
+* `!dir$ inlinealways <name>`. An alternative spelling to `forceinline`, providing compatibility
+  with older Fortran compilers, such as classic-flang. It can be defined at the callsite, or
+  in the function you want to inline. `name` is optional and should only be used when
----------------
Stylie777 wrote:

I've changed this to refer to functions or subroutines, but yes we should refer to both 😄 

https://github.com/llvm/llvm-project/pull/192674


More information about the flang-commits mailing list