[flang-commits] [flang] [flang] Implement !DIR$ [NO]INLINE directives (PR #134350)
Kiran Kumar T P via flang-commits
flang-commits at lists.llvm.org
Fri Apr 4 01:21:17 PDT 2025
kiranktp wrote:
Thanks for the patch @JDPailleux
In my opinion, having 3 options under inline family of directive will be more useful.
!dir$ inline
This will be a hint to the optimizer
By adding the "inlinehint" metadata on the call
!dir$ forceinline
This should be used with caution.
By adding the "alwaysinline" metadata on the call
!dir$ noinline
By adding the "noinline" metadata on the call
This matches the pragma's supported by intel compiler as well [Below snippet from
#pragma inline [recursive]
#pragma forceinline [recursive]
#pragma noinline
https://github.com/llvm/llvm-project/pull/134350
More information about the flang-commits
mailing list