[all-commits] [llvm/llvm-project] 7137eb: [Debug] [Coroutine] Adjust the scope and name for ...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed Jul 6 19:37:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7137ebc4cef21336dff5a97e94da93b96a8b50a5
      https://github.com/llvm/llvm-project/commit/7137ebc4cef21336dff5a97e94da93b96a8b50a5
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/test/Transforms/Coroutines/coro-debug-coro-frame.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list