[flang-commits] [clang] [flang] [flang][Driver] Add support for -f[no]keep-inline-functions option (PR #230007)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 19 22:52:06 PDT 2026


================
@@ -1,16 +1,23 @@
 ! Check the appropriate flags are added to inline functions when inlinealways is used, or ignored when the name is incorrect.
 
 ! RUN: %flang_fc1 -emit-hlfir %s -o - | FileCheck %s
+! -fkeep-inline-functions additionally attaches a self-referencing symbol
+! attribute to a named INLINEALWAYS procedure, so it still has a use once the
+! MLIR inliner runs even with no callers left; see markCurrentFuncAsAlwaysInline()
+! in Bridge.cpp and KeepInlineFunctions.f90 for the end-to-end behavior.
----------------
shivaramaarao wrote:

corrected now. thanks.

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


More information about the flang-commits mailing list