[llvm-branch-commits] [clang] [clang] Add clang::nooutline Attribute (PR #163666)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 16 14:08:09 PDT 2025


================
@@ -0,0 +1,25 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-attributes --version 6
+// RUN: %clang_cc1 -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s --check-prefix=C
+// RUN: %clang_cc1 -emit-llvm -x c++ %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s --check-prefix=CXX
+
+// C: Function Attrs: noinline nooutline nounwind optnone
+// C-LABEL: define dso_local i32 @t1(
+// C-SAME: i32 noundef [[X:%.*]]) #[[ATTR0:[0-9]+]] {
+// C-NEXT:  [[ENTRY:.*:]]
----------------
erichkeane wrote:

The body in these tests are probably not worth it since all we care about are the FunctionAttrs line and the one with the declaration.  The rest seems fragile for no value.

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


More information about the llvm-branch-commits mailing list