[Debug] [Coroutine] Adjust the scope and name for coroutine frame
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 20 May 2022 07:30:16 +0000 (15:30 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 7 Jul 2022 02:35:32 +0000 (10:35 +0800)
commit7137ebc4cef21336dff5a97e94da93b96a8b50a5
tree97400d2b1bc5fcd8c8f442dd7588ce0400087070
parentc45ec53e7b852c1d874b6ffac11ce71ca21415dd
[Debug] [Coroutine] Adjust the scope and name for coroutine frame

Previously the scope of debug type of __coro_frame is limited in the
current function. It looked good at the first sight. But it prevent us
to print the type in splitted functions and other functions. Also the
debug type is different for different coroutine functions. So it makes
sense to rename the debug type to make it related to the function name.

After this patch, we could access the coroutine frame type in a function
by `function_name.coro_frame_ty`.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D127623
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/test/Transforms/Coroutines/coro-debug-coro-frame.ll