summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RecordLayoutBuilder.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2013-05-29 15:45:47 +0000
committerJF Bastien <jfb@google.com>2013-05-29 15:45:47 +0000
commit13969d0ab6a2016416c4429993403f373440e93f (patch)
treed678145b3c525d271187be6610d1c22bf0eb11cc /clang/lib/AST/RecordLayoutBuilder.cpp
parent6a0c722c235b5e3a9d8d3317409269a15966729a (diff)
downloadbcm5719-llvm-13969d0ab6a2016416c4429993403f373440e93f.tar.gz
bcm5719-llvm-13969d0ab6a2016416c4429993403f373440e93f.zip
Tidy some register classes for ARM and Thumb
Tidy up three places where the register class for ARM and Thumb wasn't restrictive enough: - No PC dest for reg-reg add/orr/sub. - No PC dest for shifts. - No PC or SP for Thumb2 reg-imm add. I encountered this while combining FastISel with -verify-machineinstrs. These instructions defined registers whose classes weren't restrictive enough, and the uses failed verification. They're also undefined in the ISA, or would produce code that FastISel wouldn't want. This doesn't fix the register class narrowing issue (where uses should restrict definitions), and isn't thorough, but it's a small step in the right direction. llvm-svn: 182863
Diffstat (limited to 'clang/lib/AST/RecordLayoutBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud