Go to the documentation of this file.
9 #ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONARCH_H
10 #define LLVM_LIB_TARGET_HEXAGON_HEXAGONARCH_H
21 template <
class ArchCont,
typename Val>
22 bool ValidArch(ArchCont
const &ArchList, Val HexArch) {
24 [HexArch](Val V) {
return V == HexArch; });
27 template <
class ArchCont,
typename Val>
30 auto Entry = ArchList.find(CPUString);
31 if (Entry != ArchList.end())
37 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONARCH_H
This class represents lattice values for constants.
const_iterator end(StringRef path)
Get end iterator over path.
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
llvm::Optional< ArchEnum > GetCpu(ArchCont const &ArchList, Val CPUString)
bool any_of(R &&range, UnaryPredicate P)
Provide wrappers to std::any_of which take ranges instead of having to pass begin/end explicitly.
bool ValidArch(ArchCont const &ArchList, Val HexArch)