[Mlir-commits] [clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

Adrian Vogelsgesang llvmlistbot at llvm.org
Tue Jul 1 13:37:49 PDT 2025


================
@@ -0,0 +1,148 @@
+; Tests that we add DILabels for the suspend points.
+;
+; We check both the generated LLVM:
+; RUN: opt < %s -passes='cgscc(coro-split)' -S | FileCheck %s
+;
+; And the debug info:
+; RUN: opt < %s -passes='cgscc(coro-split),coro-cleanup' \
+; RUN:   | llc -O0 -filetype=obj -o - \
+; RUN:   | llvm-dwarfdump - \
+; RUN:   | FileCheck %s -check-prefix=DWARF
+
+source_filename = "coro.c"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
----------------
vogelsgesang wrote:

Could I simply delete

```
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
```

from this file, and this would work? At least `llvm/test/DebugInfo/Generic/debug-label.ll` is doing so. Afaict, this should make this test case system-independent, and would be preferable?

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


More information about the Mlir-commits mailing list