[llvm] [DRAFT] coros: suspend metadata preservation (PR #150077)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 11:19:29 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Coroutines/CoroSplit.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index c0d116cd8..ad8621720 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -83,10 +83,11 @@ using namespace llvm;
 /// containing function.
 namespace llvm {
 static cl::opt<bool> CoroSplitPreservesSuspendMD(
-  "coro-split-preserves-suspend-md", cl::Hidden,
-  cl::desc("llvm.coro.suspend_md metadata from all suspend point instructions "
-          "will be preserved inside llvm.coro.suspend_md_table metadata on the "
-          "containing coroutine"));
+    "coro-split-preserves-suspend-md", cl::Hidden,
+    cl::desc(
+        "llvm.coro.suspend_md metadata from all suspend point instructions "
+        "will be preserved inside llvm.coro.suspend_md_table metadata on the "
+        "containing coroutine"));
 
 static StringRef CoroSuspendMDName = "llvm.coro.suspend_md";
 static StringRef CoroSuspendMDTableName = "llvm.coro.suspend_md_table";

``````````

</details>


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


More information about the llvm-commits mailing list