llvm-project/llvm/unittests/DebugInfo/DWARF
Peter Smith e63455d5e0 [MC] Use local MCSubtargetInfo in writeNops
On some architectures such as Arm and X86 the encoding for a nop may
change depending on the subtarget in operation at the time of
encoding. This change replaces the per module MCSubtargetInfo retained
by the targets AsmBackend in favour of passing through the local
MCSubtargetInfo in operation at the time.

On Arm using the architectural NOP instruction can have a performance
benefit on some implementations.

For Arm I've deleted the copy of the AsmBackend's MCSubtargetInfo to
limit the chances of this causing problems in the future. I've not
done this for other targets such as X86 as there is more frequent use
of the MCSubtargetInfo and it looks to be for stable properties that
we would not expect to vary per function.

This change required threading STI through MCNopsFragment and
MCBoundaryAlignFragment.

I've attempted to take into account the in tree experimental backends.

Differential Revision: https://reviews.llvm.org/D45962
2021-09-07 15:46:19 +01:00
..
CMakeLists.txt [DWARF] Expose raw bytes in DWARFExpression 2021-08-18 14:41:20 -07:00
DWARFAcceleratorTableTest.cpp [Support] Make DataExtractor error messages more clear 2020-06-02 12:57:51 +02:00
DWARFDataExtractorTest.cpp [Support] Make DataExtractor error messages more clear 2020-06-02 12:57:51 +02:00
DWARFDebugArangeSetTest.cpp [test][NFC] Do ptrdiff_t comparison with signed instead of unsigned constants 2020-10-18 12:38:41 -04:00
DWARFDebugFrameTest.cpp Implement DW_CFA_LLVM_* for Heterogeneous Debugging 2021-06-14 08:51:50 +05:30
DWARFDebugInfoTest.cpp [DWARF] Find offset of attribute. 2021-09-01 11:49:55 -07:00
DWARFDebugLineTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
DWARFDieManualExtractTest.cpp PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DWARFDieTest.cpp Fix DWARFDie::getDeclFile(...) to work with DW_AT_specification. 2021-08-23 15:43:18 -07:00
DWARFExpressionCompactPrinterTest.cpp [llvm-objdump] Add entry_value and stack_value opcodes 2020-07-14 10:24:59 +01:00
DWARFExpressionCopyBytesTest.cpp [MC] Use local MCSubtargetInfo in writeNops 2021-09-07 15:46:19 +01:00
DWARFFormValueTest.cpp Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
DWARFListTableTest.cpp [llvm] [dwarf] Fix DWARFListTableHeader::getOffsetEntry off-by-one 2021-03-14 21:42:44 +01:00
DWARFLocationExpressionTest.cpp
DwarfGenerator.cpp [MC] Refactor MCObjectFileInfo initialization and allow targets to create MCObjectFileInfo 2021-05-23 14:15:23 -07:00
DwarfGenerator.h [DebugInfo] Clean up DIEUnit. NFC. 2020-08-07 15:55:44 +07:00
DwarfUtils.cpp [Test][DebugInfo] Check for backend object emission support. 2021-03-18 09:51:00 +00:00
DwarfUtils.h [Test][DebugInfo] Check for backend object emission support. 2021-03-18 09:51:00 +00:00