[all-commits] [llvm/llvm-project] eb51dd: [Coroutine] [Debug] Insert dbg.declare to entry.re...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Mar 30 19:38:20 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb51dd719f34be09d21b1ef485edc4209fcf811b
https://github.com/llvm/llvm-project/commit/eb51dd719f34be09d21b1ef485edc4209fcf811b
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
M llvm/include/llvm/Transforms/Coroutines.h
M llvm/include/llvm/Transforms/Coroutines/CoroSplit.h
M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
M llvm/lib/Transforms/Coroutines/CoroInternal.h
M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
A llvm/test/Transforms/Coroutines/coro-debug-O2.ll
Log Message:
-----------
[Coroutine] [Debug] Insert dbg.declare to entry.resume to print alloca in the coroutine frame under O2
Summary: Try to insert dbg.declare to entry.resume basic block in resume
function. In this way, we could print alloca such as __promise in
gdb/lldb under O2, which would be beneficial to debug coroutine program.
Test Plan: check-llvm
Reviewed by: aprantl
Differential Revision: https://reviews.llvm.org/D96938
More information about the All-commits
mailing list