Lines Matching defs:Target
1 //===- Target.cpp -----------------------------------------------*- C++ -*-===//
9 #include "llvm/TextAPI/Target.h"
17 Expected<Target> Target::create(StringRef TargetValue) {
39 return Target{Architecture, Platform};
42 Target::operator std::string() const {
50 raw_ostream &operator<<(raw_ostream &OS, const Target &Target) {
51 OS << std::string(Target);
55 PlatformVersionSet mapToPlatformVersionSet(ArrayRef<Target> Targets) {
57 for (const auto &Target : Targets)
58 Result.insert({Target.Platform, Target.MinDeployment});
62 PlatformSet mapToPlatformSet(ArrayRef<Target> Targets) {
64 for (const auto &Target : Targets)
65 Result.insert(Target.Platform);
69 ArchitectureSet mapToArchitectureSet(ArrayRef<Target> Targets) {
71 for (const auto &Target : Targets)
72 Result.set(Target.Arch);
76 std::string getTargetTripleName(const Target &Targ) {