]> granicus.if.org Git - llvm/commit
[Triple] Add isThumb and isARM functions.
authorFlorian Hahn <florian.hahn@arm.com>
Sat, 12 Aug 2017 17:40:18 +0000 (17:40 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Sat, 12 Aug 2017 17:40:18 +0000 (17:40 +0000)
commitace970e5d2e806f380756353f29693c5bbeeef85
treef1c6d64568d0b200f52ac2efd96a84b667e2bc2a
parentc05af7aa8cbfafb74219fb9829c5e7937b1d1cd5
[Triple] Add isThumb and isARM functions.

Summary:
isThumb returns true for Thumb triples (little and big endian), isARM
returns true for ARM triples (little and big endian).
There are a few more checks using arm/thumb that are not covered by
those functions, e.g. that the architecture is either ARM or Thumb
(little endian) or ARM/Thumb little endian only.

Reviewers: javed.absar, rengolin, kristof.beyls, t.p.northover

Reviewed By: rengolin

Subscribers: llvm-commits, aemerson

Differential Revision: https://reviews.llvm.org/D34682

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310781 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/MC/MCSectionELF.cpp
lib/Object/ELFObjectFile.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMAsmPrinter.h
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp