llvm-project/llvm/unittests/MC
Maksim Panchenko bed9efed71 [MCDisassembler] Disambiguate Size parameter in tryAddingSymbolicOperand()
MCSymbolizer::tryAddingSymbolicOperand() overloaded the Size parameter
to specify either the instruction size or the operand size depending on
the architecture. However, for proper symbolic disassembly on X86, we
need to know both sizes, as an instruction can have two operands, and
the instruction size cannot be reliably calculated based on the operand
offset and its size. Hence, split Size into OpSize and InstSize.

For X86, the new interface allows to fix a couple of issues:
  * Correctly adjust the value of PC-relative operands.
  * Set operand size to zero when the operand is specified implicitly.

Differential Revision: https://reviews.llvm.org/D126101
2022-05-25 13:44:32 -07:00
..
AMDGPU Cleanup includes: LLVMTarget 2022-03-10 10:00:29 +01:00
SystemZ [MC] Make MCAsmInfo::isAcceptableChar reflect MCAsmInfo::doesAllowAtInName 2022-03-29 14:01:32 -07:00
X86 [MCDisassembler] Disambiguate Size parameter in tryAddingSymbolicOperand() 2022-05-25 13:44:32 -07:00
CMakeLists.txt [MC] Fix buildbots with shared lib builds 2021-09-30 14:42:15 -07:00
Disassembler.cpp
DwarfLineTableHeaders.cpp [DWARF] Add API to get data from MCDwarfLineStr 2022-04-21 14:08:20 -07:00
DwarfLineTables.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCDisassemblerTest.cpp
MCInstPrinter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
StringTableBuilderTest.cpp
TargetRegistry.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00