forked from OSchip/llvm-project
[AArch64] Add a few isTarget* API to AArch64 Subtarget.
llvm-svn: 214977
This commit is contained in:
parent
7160c4d22f
commit
b481bdfec4
|
@ -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"; }
|
||||
|
|
Loading…
Reference in New Issue