[flang-commits] [clang] [flang] [llvm] [CodeGen] Add a FunctionSplittingMode target option (PR #226575)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 7 19:58:46 PDT 2026


================
@@ -50,6 +50,19 @@ enum class BasicBlockSection {
   None    // Do not use Basic Block Sections.
 };
 
+/// Late function splitting mode. Decides which functions are eligible to have
+/// their cold blocks moved into a separate section.
+enum class FunctionSplittingMode {
+  None,           // Hard off. Never create a cold section, even for functions
----------------
MattPD wrote:

Confirmed. The staged behavior is now clear.

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


More information about the flang-commits mailing list