================
@@ -0,0 +1,15 @@
+// RUN: fir-opt --function-attr="disable-tail-calls=true" %s | FileCheck %s 
--check-prefix=ENABLED
+// RUN: fir-opt --function-attr="disable-tail-calls=false" %s | FileCheck %s 
--check-prefix=DISABLED
+
+func.func @_QPf() {
+  return
+}
+
+// ENABLED: func.func @_QPf() attributes {llvm.disable_tail_calls = true} {
+// ENABLED-NEXT:   return
+// ENABLED-NEXT: }
+
+// DISABLED: func.func @_QPf() {
+// DISABLED-NOT: llvm.disable_tail_calls
+// DISABLED-NEXT:   return
+// DISABLED-NEXT: }
----------------
tarunprabhu wrote:

These are probably not necessary since you mainly want to ensure that the 
attribute is not present.

https://github.com/llvm/llvm-project/pull/216650
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to