[AArch64] Add a few isTarget* API to AArch64 Subtarget.

llvm-svn: 214977
This commit is contained in:
Chad Rosier 2014-08-06 16:56:58 +00:00
parent 7160c4d22f
commit b481bdfec4
1 changed files with 4 additions and 1 deletions

View File

@ -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"; }