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

Sam Elliott via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 16 14:14:33 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:.*:]]
----------------
lenary wrote:

I agree with the fragility aspect, is there a better way to automatically test these or should I just write the checks by hand?

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


More information about the llvm-branch-commits mailing list