projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72db888
)
ADT: add a helper to check if the Triple is ARM64
author
Saleem Abdulrasool
<compnerd@compnerd.org>
Sat, 28 Oct 2017 19:15:05 +0000
(19:15 +0000)
committer
Saleem Abdulrasool
<compnerd@compnerd.org>
Sat, 28 Oct 2017 19:15:05 +0000
(19:15 +0000)
Add a trivial helper for checking if the architecture is AArch64 Little
Endian or Big Endian.
llvm-svn: 316837
llvm/include/llvm/ADT/Triple.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/Triple.h
b/llvm/include/llvm/ADT/Triple.h
index
cb73dca
..
c2dd5f6
100644
(file)
--- a/
llvm/include/llvm/ADT/Triple.h
+++ b/
llvm/include/llvm/ADT/Triple.h
@@
-655,6
+655,11
@@
public:
return getArch() == Triple::arm || getArch() == Triple::armeb;
}
+ /// Tests whether the target is AArch64 (little and big endian).
+ bool isAArch64() const {
+ return getArch() == Triple::aarch64 || getArch() == Triple::aarch64_be;
+ }
+
/// Tests wether the target supports comdat
bool supportsCOMDAT() const { return !isOSBinFormatMachO(); }