[ARM GlobalISel] Select load/store for Thumb2
authorDiana Picus <diana.picus@linaro.org>
Wed, 12 Dec 2018 10:32:15 +0000 (10:32 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 12 Dec 2018 10:32:15 +0000 (10:32 +0000)
commit59720b422abfc090aadf246eb3c7fc583aeb2693
treeedb0b66ce77db5f35fce3ce5563a7927f8304936
parent87a7e436c0b9b248aa99741815b23c58a648e1a6
[ARM GlobalISel] Select load/store for Thumb2

Unfortunately we can't use TableGen for this because it doesn't yet
support predicates on the source pattern root. Therefore, add a bit of
handwritten code to the instruction selector to handle the most basic
cases.

Also mark them as legal and extract their legalizer test cases to a new
test file.

llvm-svn: 348920
llvm/lib/Target/ARM/ARMInstructionSelector.cpp
llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
llvm/test/CodeGen/ARM/GlobalISel/arm-legalize-load-store.mir [new file with mode: 0644]
llvm/test/CodeGen/ARM/GlobalISel/arm-legalizer.mir
llvm/test/CodeGen/ARM/GlobalISel/thumb-select-load-store.mir [new file with mode: 0644]