================
@@ -0,0 +1,14 @@
+// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
+
+// CHECK: define void @disable_tail_calls() #[[ATTRS_TRUE:.*]] {
+llvm.func @disable_tail_calls() attributes {disable_tail_calls = true} {
+ llvm.return
+}
+
+// CHECK: define void @disable_tail_calls_false() #[[ATTRS_FALSE:.*]] {
+llvm.func @disable_tail_calls_false() attributes {disable_tail_calls = false} {
----------------
tarunprabhu wrote:
Does clang emit `"disable-tail-calls"="false"` in such cases, or does it simply
omit the attribute? If the default is for the attribute to be absent, and
`disable-tails-calls=false` is effectively the same as the default, is there
any reason to emit it?
https://github.com/llvm/llvm-project/pull/216650
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits