Home | History | Annotate | Download | only in Support

Lines Matching defs:Targets

21 iterator_range<TargetRegistry::iterator> TargetRegistry::targets() {
34 std::find_if(targets().begin(), targets().end(),
37 if (I == targets().end()) {
66 // Provide special warning when no targets are initialized.
67 if (targets().begin() == targets().end()) {
68 Error = "Unable to find target for this triple (no targets are registered)";
73 auto I = std::find_if(targets().begin(), targets().end(), ArchMatch);
75 if (I == targets().end()) {
76 Error = "No available targets are compatible with this triple.";
80 auto J = std::find_if(std::next(I), targets().end(), ArchMatch);
81 if (J != targets().end()) {
82 Error = std::string("Cannot choose between targets \"") + I->Name +
103 // Add to the list of targets.
119 std::vector<std::pair<StringRef, const Target*> > Targets;
121 for (const auto &T : TargetRegistry::targets()) {
122 Targets.push_back(std::make_pair(T.getName(), &T));
123 Width = std::max(Width, Targets.back().first.size());
125 array_pod_sort(Targets.begin(), Targets.end(), TargetArraySortFn);
128 OS << " Registered Targets:\n";
129 for (unsigned i = 0, e = Targets.size(); i != e; ++i) {
130 OS << " " << Targets[i].first;
131 OS.indent(Width - Targets[i].first.size()) << " - "
132 << Targets[i].second->getShortDescription() << '\n';
134 if (Targets.empty())