25 if (
I != Container.end() &&
I->getInstallName() == InstallName)
28 return Container.emplace(
I, InstallName);
37 if ((Iter !=
std::end(Container)) && !(Target_ < *Iter))
40 return Container.insert(Iter, Target_);
51 Client->addTarget(Target);
57 Lib->addTarget(Target);
62 [](
const std::pair<Target, std::string> &LHS,
63 Target RHS) {
return LHS.first < RHS; });
65 if ((Iter != ParentUmbrellas.end()) && !(Target_ < Iter->
first)) {
66 Iter->second = Parent;
70 ParentUmbrellas.emplace(Iter, Target_, Parent);
76 [](
const std::pair<Target, std::string> &LHS,
77 Target RHS) {
return LHS.first < RHS; });
79 if ((Iter != UUIDs.end()) && !(Target_ < Iter->
first)) {
84 UUIDs.emplace(Iter, Target_, UUID);
89 std::stringstream Stream;
90 for (
unsigned i = 0; i < 16; ++i) {
91 if (i == 4 || i == 6 || i == 8 || i == 10)
93 Stream << std::setfill(
'0') << std::setw(2) << std::uppercase << std::hex
94 <<
static_cast<int>(UUID[i]);
96 addUUID(Target, Stream.str());
105 std::function<bool(const Target &)> fn = [Archs](
const Target &Target_) {
106 return Archs.
has(Target_.Arch);
113 Name = copyString(Name);
118 for (
const auto &
Target : Targets)
119 result.first->second->addTarget(
Target);
auto lower_bound(R &&Range, T &&Value) -> decltype(adl_begin(Range))
Provide wrappers to std::lower_bound which take ranges instead of having to pass begin/end explicitly...
const_iterator end(StringRef path)
Get end iterator over path.
bool has(Architecture Arch) const
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
void addSymbol(SymbolKind Kind, StringRef Name, const TargetList &Targets, SymbolFlags Flags=SymbolFlags::None)
Add a symbol to the symbols list or extend an existing one.
void addUUID(const Target &Target, StringRef UUID)
Add an Target/UUID pair.
Reference to an interface file.
C::iterator addEntry(C &Container, StringRef InstallName)
void addParentUmbrella(const Target &Target_, StringRef Parent)
Set the parent umbrella frameworks.
void addReexportedLibrary(StringRef InstallName, const Target &Target)
Add a re-exported library.
StringRef getInstallName() const
void addAllowableClient(StringRef InstallName, const Target &Target)
Add an allowable client.
auto partition_point(R &&Range, Predicate P) -> decltype(adl_begin(Range))
Binary search for the first iterator in a range where a predicate is false.
const_target_range targets() const
std::pair< llvm::MachO::Target, std::string > UUID
void addTarget(const Target &Target)
A range adaptor for a pair of iterators.
iterator_range< filter_iterator< detail::IterOfRange< RangeT >, PredicateT > > make_filter_range(RangeT &&Range, PredicateT Pred)
Convenience function that takes a range of elements and a predicate, and return a new filter_iterator...
void addTarget(const Target &Target)
Set and add target.
StringRef - Represent a constant reference to a string, i.e.