Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a step
authorEvan Cheng <evan.cheng@apple.com>
Thu, 13 Jan 2011 07:58:56 +0000 (07:58 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 13 Jan 2011 07:58:56 +0000 (07:58 +0000)
commit7597212abced110723f2fee985a7d60557c092ec
tree5e01be3847a6ec23112b8feb910ac5a2bb6b2fcb
parent04f5079ca1fd6c46a2b2efc369e293fb6feab793
Model :upper16: and :lower16: as ARM specific MCTargetExpr. This is a step
in the right direction. It eliminated some hacks and will unblock codegen
work. But it's far from being done. It doesn't reject illegal expressions,
e.g. (FOO - :lower16:BAR). It also doesn't work in Thumb2 mode at all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123369 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/MC/MCExpr.h
lib/MC/MCExpr.cpp
lib/MC/MCObjectStreamer.cpp
lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/ARMMCCodeEmitter.cpp
lib/Target/ARM/ARMMCExpr.cpp [new file with mode: 0644]
lib/Target/ARM/ARMMCExpr.h [new file with mode: 0644]
lib/Target/ARM/ARMMCInstLower.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/CMakeLists.txt
test/MC/ARM/elf-movt.s
test/MC/ARM/hilo-16bit-relocations.s [new file with mode: 0644]
utils/TableGen/EDEmitter.cpp