[all-commits] [llvm/llvm-project] d2be26: [clang] Add clang::no_outline Attribute (#163666)
Sam Elliott via All-commits
all-commits at lists.llvm.org
Fri Feb 13 18:29:43 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2be26a9f2b75e87969c5943d48ea66c5f336d6d
https://github.com/llvm/llvm-project/commit/d2be26a9f2b75e87969c5943d48ea66c5f336d6d
Author: Sam Elliott <aelliott at qti.qualcomm.com>
Date: 2026-02-13 (Fri, 13 Feb 2026)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGen/attr-no-outline.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
Log Message:
-----------
[clang] Add clang::no_outline Attribute (#163666)
This change:
- Adds a `[[clang::no_outline]]` function attribute for C and C++. There
is no equivalent GNU syntax for this attribute, so no `__attribute__`
syntax.
- Uses the presence of `[[clang::no_outline]]` 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).
Fixes #144135
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