[all-commits] [llvm/llvm-project] abdec1: [clang] Ensure -mno-outline adds attributes

Sam Elliott via All-commits all-commits at lists.llvm.org
Tue Feb 10 18:22:21 PST 2026


  Branch: refs/heads/users/lenary/clangensure-mno-outlineaddsattributes
  Home:   https://github.com/llvm/llvm-project
  Commit: abdec1b2ed657b06bf28f6aee1118a82f3bb4825
      https://github.com/llvm/llvm-project/commit/abdec1b2ed657b06bf28f6aee1118a82f3bb4825
  Author: Sam Elliott <aelliott at qti.qualcomm.com>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Options/Options.td
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/CodeGen/attr-no-outline.c
    M clang/test/Driver/aarch64-outliner.c
    M clang/test/Driver/arm-machine-outliner.c
    M clang/test/Driver/riscv-outliner.c
    M clang/test/Driver/x86-outliner.c

  Log Message:
  -----------
  [clang] Ensure -mno-outline adds attributes

Before this change, `-mno-outline` and `-moutline` only controlled the
pass pipelines for the invoked compiler/linker.

The drawback of this implementation is that, when using LTO, only the
flag provided to the linker invocation is honoured (and any files which
individually use `-mno-outline` will have that flag ignored).

This change serialises the `-mno-outline` flag into each function's
IR/Bitcode, so that we can correctly disable outlining from functions in
files which disabled outlining, without affecting outlining choices for
functions from other files. This matches how other optimisation flags
are handled so the IR/Bitcode can be correctly merged during LTO.


  Commit: ae35e879a0317fef8317c3361eecb9883bef5aa8
      https://github.com/llvm/llvm-project/commit/ae35e879a0317fef8317c3361eecb9883bef5aa8
  Author: Sam Elliott <aelliott at qti.qualcomm.com>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst

  Log Message:
  -----------
  Release Note


Compare: https://github.com/llvm/llvm-project/compare/e6eaeda36dcc...ae35e879a031

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list