summaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Platform.cpp
AgeCommit message (Collapse)Author
2025-06-10[clang][Darwin] Align all OS Versions for 26 (#143548)Cyndy Ishida
* Translate the following versions to 26. * watchOS 12 -> 26 * visionOS 3 -> 26 * macos 16 -> 26 * iOS 19 -> 26 * tvOS 19 -> 26 * Emit diagnostics, but allow conversion when clients attempt to use invalid gaps in OS versioning in availability. * For target-triples, only allow "valid" versions for implicit conversions.
2024-03-05[TextAPI] add missing platforms for translating triples to tapi targetsCyndy Ishida
2024-01-16[llvm] Introduce XROS platform (#77707)Cyndy Ishida
Accepts but otherwise ignores visionOS/XROS target triples as Darwin based platform. https://developer.apple.com/documentation/visionos
2023-10-25[llvm] Followup fix for "Use XMACROS for MachO platforms" (#70140)Juergen Ributzka
Fix the use of tapi_target in getPlatformFromName.
2023-10-20[llvm] Use XMACROS for MachO platforms. (#69262)Juergen Ributzka
This change adds the PLATFORM XMACRO to simplify the addition of new MachO platforms and reduce the number of required changes. Many of the changes needed for adding a new platform are mechanical, such as adding new cases to a switch statement. This will help streamline the process by consolidating much of the necessary information into the MachO.def file.
2023-06-14[TextAPI] add osx to possible string to platform inputCyndy Ishida
2023-03-23[llvm][TextAPI] Handle implicitly upgraded deployment versionsCyndy Ishida
Sometimes the clang driver will receive a target triple where the deployment version is too low to support the platform + arch. In those cases, the compiler upgrades the final minOS which is what gets recorded ultimately by the linker in LC_BUILD_VERSION. TextAPI should also reuse this logic for capturing minOS in recorded TBDv5 files. Reviewed By: ributzka Differential Revision: https://reviews.llvm.org/D145690
2023-02-07[NFC][TargetParser] Remove llvm/ADT/Triple.hArchibald Elliott
I also ran `git clang-format` to get the headers in the right order for the new location, which has changed the order of other headers in two files.
2022-01-13Fix MSVC "not all control paths return a value" warnings. NFC.Simon Pilgrim
2022-01-13Replace PlatformKind with PlatformType.Juergen Ributzka
The PlatformKind/PlatformType enums contain the same information, which requires them to be kept in-sync. This commit changes over to PlatformType as the sole source of truth, which allows the removal of the redundant PlatformKind. The majority of the changes were in LLD and TextAPI. Reviewed By: cishida Differential Revision: https://reviews.llvm.org/D117163
2021-06-09Reland "[llvm] llvm-tapi-diff"Sam Powell
This is relanding commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096 . This patch additionally addresses failures found in buildbots due to unstable build ordering & post review comments. This patch introduces a new tool, llvm-tapi-diff, that compares and returns the diff of two TBD files. Reviewed By: ributzka, JDevlieghere Differential Revision: https://reviews.llvm.org/D101835
2021-06-09Revert "Reland "[llvm] llvm-tapi-diff""Cyndy Ishida
This reverts commit 20126c9fd4afe2fe11510becccaa769332da302f. The sorting fixes failed to have stable output on different platforms.
2021-06-09Reland "[llvm] llvm-tapi-diff"Sam Powell
This is relanding commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096 . This patch additionally addresses failures found in buildbots & post review comments. This patch introduces a new tool, llvm-tapi-diff, that compares and returns the diff of two TBD files. Reviewed By: ributzka, JDevlieghere Differential Revision: https://reviews.llvm.org/D101835
2021-06-03Revert "[llvm] llvm-tapi-diff"Cyndy Ishida
This reverts commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096. Reverting this patch to investigate linux bot failures + fix with author offline
2021-06-03[llvm] llvm-tapi-diffSam Powell
This patch introduces a new tool, llvm-tapi-diff, that compares and returns the diff of two TBD files. Reviewed By: ributzka, JDevlieghere Differential Revision: https://reviews.llvm.org/D101835
2021-05-11[TextAPI] Reformat llvm_unreachable messageSam Powell
Change llvm_unreachable message from "Unknown llvm.MachO.PlatformKind enum" to "Unknown llvm::MachO::PlatformKind enum". Differential revision: https://reviews.llvm.org/D102250
2021-05-06[llvm][TextAPI] add mapping from OS string to PlatformCyndy Ishida
* add utility for matching target triple OS value strings to PlatformKind This was reviewed offline by ributzka, steven_wu
2021-04-05[TextAPI] move source code files out of subdirectory, NFCCyndy Ishida
TextAPI/ELF has moved out into InterfaceStubs, so theres no longer a need to seperate out TextAPI between formats. Reviewed By: ributzka, int3, #lld-macho Differential Revision: https://reviews.llvm.org/D99811