[llvm] r214977 - [AArch64] Add a few isTarget* API to AArch64 Subtarget.
Chad Rosier
mcrosier at codeaurora.org
Wed Aug 6 09:56:58 PDT 2014
Author: mcrosier
Date: Wed Aug 6 11:56:58 2014
New Revision: 214977
URL: http://llvm.org/viewvc/llvm-project?rev=214977&view=rev
Log:
[AArch64] Add a few isTarget* API to AArch64 Subtarget.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h
Modified: llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h?rev=214977&r1=214976&r2=214977&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64Subtarget.h Wed Aug 6 11:56:58 2014
@@ -99,9 +99,12 @@ public:
bool isLittleEndian() const { return DL.isLittleEndian(); }
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
+ bool isTargetIOS() const { return TargetTriple.isiOS(); }
+ bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
+ bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
+ bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
-
bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
bool isCyclone() const { return CPUString == "cyclone"; }
More information about the llvm-commits
mailing list