[flang-commits] [flang] [flang] Implement !DIR$ [NO]INLINE and FORCEINLINE directives (PR #134350)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Mon Apr 14 07:10:46 PDT 2025
https://github.com/kiranchandramohan commented:
> !dir$ inline tells to the compiler to not perform inlining on specific function calls by adding the inlinehint metadata on the call.
Assuming the `not` here is a typo.
> !dir$ forceinline tells to the compiler to not perform inlining on specific function calls by adding the alwaysinline metadata on the call.
Assuming the `not` here is a typo.
Does LLVM support `inline`, `forceinline` attributes on the `call` instruction? Is there a similar clang pragma?
When I did a quick look (not in detail) I only saw references of these attributes on the function definition/declaration.
https://github.com/llvm/llvm-project/pull/134350
More information about the flang-commits
mailing list