[IRTranslator] Implement translation of entry_value dbg.value intrinsics
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Tue, 23 May 2023 15:48:11 +0000 (11:48 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Fri, 26 May 2023 10:45:01 +0000 (06:45 -0400)
commite8aee45be7a2b5976431de7020014b7523652a32
tree0d33c88ef96ae02aab018b67fac5b94bda571656
parent9e8ed3403c191ab9c4903e8eeb8f732ff8a43cb4
[IRTranslator] Implement translation of entry_value dbg.value intrinsics

For dbg.value intrinsics targeting an llvm::Argument address whose expression
starts with an entry value, we lower this to a DEBUG_VALUE targeting the livein
physical register corresponding to that Argument.

Depends on D151328

Differential Revision: https://reviews.llvm.org/D151329
llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/dbg-value-swift-async.ll [new file with mode: 0644]