[clang] [Clang][HTO] Add clang attribute for propagating llvm-level information (PR #83059)
William Moses via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 26 16:57:19 PST 2024
================
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
+
+void t1() __attribute__((llvm_fn_attr("custom_attr", "custom_value"), llvm_fn_attr("second_attr", "second_value")));
+
+void t1()
+{
+}
+
+void t2();
+
+void t3() {
+ t2() ____attribute__((llvm_fn_attr("custom_attr", "custom_value"), llvm_fn_attr("second_attr", "second_value")));
+}
+
----------------
wsmoses wrote:
@jdoerfert okay tests added and appear working, ready for review
https://github.com/llvm/llvm-project/pull/83059
More information about the cfe-commits
mailing list