[all-commits] [llvm/llvm-project] abe6ec: [AsmPrinter][AMDGPU] Generate uwtable entries in ....
Juan Manuel Martinez Caamaño via All-commits
all-commits at lists.llvm.org
Wed Jun 7 01:05:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: abe6ecd7e5f5bc4e57fb6b530e3ea4811d06e4b9
https://github.com/llvm/llvm-project/commit/abe6ecd7e5f5bc4e57fb6b530e3ea4811d06e4b9
Author: Juan Manuel MARTINEZ CAAMAÑO <juamarti at amd.com>
Date: 2023-06-07 (Wed, 07 Jun 2023)
Changed paths:
M llvm/include/llvm/CodeGen/AsmPrinter.h
M llvm/include/llvm/MC/MCAsmInfo.h
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
A llvm/test/CodeGen/AMDGPU/eh_frame.ll
M llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_generated_funcs.ll.generated.expected
M llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_generated_funcs.ll.nogenerated.expected
Log Message:
-----------
[AsmPrinter][AMDGPU] Generate uwtable entries in .eh_frame
Consider only targets where `MCAsmInfo::ExceptionsType == ExceptionHandling::None`
and that support CFI (when `MCAsmInfo::UsesCFIForDebug` is set to true):
currently, only AMDGPU.
This patch enables the emission of CFI information in the .eh_frame
section when the uwtable attribute is present on a function.
Before, we could generate CFI information for debugging puproses only.
This patch prepares AMDGPU to support collecting GPU stack traces in the future.
I did a first implementation (https://reviews.llvm.org/D139024)
but at the time I had not realized that no other platform used
`UsesCFIForDebug`.
Reviewed By: scott.linder
Differential Revision: https://reviews.llvm.org/D151806
More information about the All-commits
mailing list