[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)
Adrian Vogelsgesang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 13:34:13 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:
Is there any way to mark only the second "RUN" command as `x86_64`, but keep the first "RUN" working for all systems? I guess not?
https://github.com/llvm/llvm-project/pull/141937
More information about the cfe-commits
mailing list