[all-commits] [llvm/llvm-project] 9ef538: [CoroSplit][DebugInfo][nfc] Use more specialize Ma...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Wed May 3 15:38:36 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ef5381caf57f362760c2b0ef441238992b62633
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/lib/Transforms/Coroutines/CoroInternal.h
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp

  Log Message:
  [CoroSplit][DebugInfo][nfc] Use more specialize Map arguments

We use a map of Argument->AllocaInst when mapping Arguments to the
AllocaInst created for them.

Said map is declared from "Value" and called a "DbgPtrCache". This
* replaces Value to the more specialized Argument class, to reflect the
intent better (i.e. we are _always_ mapping Arguments).
* replaces the name "DbgPtrCache" with the more explicit "ArgToAllocaMap",
as it is not clear reading the code what a "DbgPtr" is.

Differential Revision: https://reviews.llvm.org/D149748

More information about the All-commits mailing list