[all-commits] [llvm/llvm-project] 6ef783: [DebugInfo] Refactor code for emitting DWARF expre...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Mon Nov 23 00:59:52 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6ef7835afca246e623e9990dcd8c71204f5691e5
https://github.com/llvm/llvm-project/commit/6ef7835afca246e623e9990dcd8c71204f5691e5
Author: Pavel Labath <pavel at labath.sk>
Date: 2020-11-23 (Mon, 23 Nov 2020)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
A llvm/test/DebugInfo/ARM/implicit_value-_Float16.ll
Log Message:
-----------
[DebugInfo] Refactor code for emitting DWARF expressions for FP constants
This patch moves the selection of the style used to emit the numbers
(DW_OP_implicit_value vs. DW_OP_const+DW_OP_stack_value) into
DwarfExpression::addUnsignedConstant. This logic is not FP-specific, and
it will be needed for large integers too.
The refactor also makes DW_OP_implicit_value (DW_OP_stack_value worked
already) be used for floating point constants other than float and
double, so I've added a _Float16 test for it.
Split off from D90916.
Differential Revision: https://reviews.llvm.org/D91058
More information about the All-commits
mailing list