ARM refactoring assembly parsing of memory address operands.
authorJim Grosbach <grosbach@apple.com>
Wed, 3 Aug 2011 23:50:40 +0000 (23:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 3 Aug 2011 23:50:40 +0000 (23:50 +0000)
commit7ce057983ea7b8ad42d5cca1bb5d3f6941662269
tree54a731f5142d082ed12dd47c2c4625ed0eb68619
parent762797d1af1b9308c79982aedd9bd2f585f46171
ARM refactoring assembly parsing of memory address operands.

Memory operand parsing is a bit haphazzard at the moment, in no small part
due to the even more haphazzard representations of memory operands in the .td
files. Start cleaning that all up, at least a bit.

The addressing modes in the .td files will be being simplified to not be
so monolithic, especially with regards to immediate vs. register offsets
and post-indexed addressing. addrmode3 is on its way with this patch, for
example.

This patch is foundational to enable going back to smaller incremental patches
for the individual memory referencing instructions themselves. It does just
enough to get the basics in place and handle the "make check" regression tests
we already have.

Follow-up work will be fleshing out the details and adding more robust test
cases for the individual instructions, starting with ARM mode and moving from
there into Thumb and Thumb2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136845 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMInstrFormats.td
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.h
lib/Target/ARM/MCTargetDesc/ARMAddressingModes.h
lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
test/MC/ARM/arm_addrmode3.s
test/MC/ARM/thumb2_instructions.s
test/MC/Disassembler/ARM/arm-tests.txt
utils/TableGen/EDEmitter.cpp