forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request llvm#64 from cyndyishida/tapi-add-targets
[TextAPI][TBDGen] Tapi add targets
- Loading branch information
Showing
18 changed files
with
610 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
//===- llvm/TextAPI/MachO/Platform.h - Platform -----------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Defines the Platforms supported by Tapi and helpers. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
#ifndef LLVM_TEXTAPI_MACHO_PLATFORM_H | ||
#define LLVM_TEXTAPI_MACHO_PLATFORM_H | ||
|
||
#include "llvm/ADT/SmallSet.h" | ||
#include "llvm/BinaryFormat/MachO.h" | ||
|
||
namespace llvm { | ||
namespace MachO { | ||
|
||
/// Defines the list of MachO platforms. | ||
enum class PlatformKind : unsigned { | ||
unknown, | ||
macOS = MachO::PLATFORM_MACOS, | ||
iOS = MachO::PLATFORM_IOS, | ||
tvOS = MachO::PLATFORM_TVOS, | ||
watchOS = MachO::PLATFORM_WATCHOS, | ||
bridgeOS = MachO::PLATFORM_BRIDGEOS | ||
}; | ||
|
||
using PlatformSet = SmallSet<PlatformKind, 3>; | ||
|
||
PlatformKind mapToPlatformKind(const Triple &Target); | ||
PlatformSet mapToPlatformSet(ArrayRef<Triple> Targets); | ||
StringRef getPlatformName(PlatformKind Platform); | ||
|
||
} // end namespace MachO. | ||
} // end namespace llvm. | ||
|
||
#endif // LLVM_TEXTAPI_MACHO_PLATFORM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.