[all-commits] [llvm/llvm-project] 277b8f: [clang] Add clang::nooutline Attribute

Sam Elliott via All-commits all-commits at lists.llvm.org
Tue Feb 10 20:23:07 PST 2026


  Branch: refs/heads/users/lenary/clang-add-nooutline-attr
  Home:   https://github.com/llvm/llvm-project
  Commit: 277b8fd148808a631ad724f46de1047f58a41321
      https://github.com/llvm/llvm-project/commit/277b8fd148808a631ad724f46de1047f58a41321
  Author: Sam Elliott <aelliott at qti.qualcomm.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/CodeGen/attr-nooutline.c
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Sema/attr-nooutline.c
    A clang/test/Sema/attr-nooutline.cpp

  Log Message:
  -----------
  [clang] Add clang::nooutline Attribute

This change:
- Adds a `[[clang::nooutline]]` function attribute for C and C++. There
  is no equivalent GNU syntax for this attribute, so no `__attribute__`
  syntax.
- Uses the presence of `[[clang::nooutline]]` to add the `nooutline`
  attribute to IR function definitions.
- Adds test for the above.

The `nooutline` attribute disables both the Machine Outliner (enabled at
Oz for some targets), and the IR Outliner (disabled by default).


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

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/test/CodeGen/attr-nooutline.c

  Log Message:
  -----------
  Address reviewer feedback: Tests, Docs, TableGen


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

  Changed paths:
    M clang/docs/ReleaseNotes.rst

  Log Message:
  -----------
  Release Notes


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

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/test/Sema/attr-nooutline.c
    M clang/test/Sema/attr-nooutline.cpp

  Log Message:
  -----------
  Address Review Feedback: Flags, Release Notes


  Commit: 01ace7b73891190bb7c02bf5a9ae444d11388205
      https://github.com/llvm/llvm-project/commit/01ace7b73891190bb7c02bf5a9ae444d11388205
  Author: Sam Elliott <aelliott at qti.qualcomm.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    A clang/test/CodeGen/attr-no-outline.c
    R clang/test/CodeGen/attr-nooutline.c
    A clang/test/CodeGenObjC/attr-no-outline.m
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Sema/attr-no-outline.c
    A clang/test/Sema/attr-no-outline.cpp
    R clang/test/Sema/attr-nooutline.c
    R clang/test/Sema/attr-nooutline.cpp

  Log Message:
  -----------
  Change spelling to clang::no_outline, more tests


Compare: https://github.com/llvm/llvm-project/compare/004a25f7fa9d...01ace7b73891

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