clang 20.0.0git
|
See also MultilibSetBuilder for combining multilibs into a set. More...
#include "clang/Driver/Multilib.h"
Classes | |
struct | FlagMatcher |
Uses regular expressions to simplify flags used for multilib selection. More... | |
Public Types | |
using | multilib_list = std::vector< Multilib > |
using | const_iterator = multilib_list::const_iterator |
using | IncludeDirsFunc = std::function< std::vector< std::string >(const Multilib &M)> |
using | FilterCallback = llvm::function_ref< bool(const Multilib &)> |
Public Member Functions | |
MultilibSet ()=default | |
MultilibSet (multilib_list &&Multilibs, std::vector< FlagMatcher > &&FlagMatchers={}) | |
const multilib_list & | getMultilibs () |
MultilibSet & | FilterOut (FilterCallback F) |
Filter out some subset of the Multilibs using a user defined callback. | |
void | push_back (const Multilib &M) |
Add a completed Multilib to the set. | |
const_iterator | begin () const |
const_iterator | end () const |
bool | select (const Multilib::flags_list &Flags, llvm::SmallVectorImpl< Multilib > &) const |
Select compatible variants,. | |
unsigned | size () const |
llvm::StringSet | expandFlags (const Multilib::flags_list &) const |
Get the given flags plus flags found by matching them against the FlagMatchers and choosing the Flags of each accordingly. | |
LLVM_DUMP_METHOD void | dump () const |
void | print (raw_ostream &OS) const |
MultilibSet & | setIncludeDirsCallback (IncludeDirsFunc F) |
const IncludeDirsFunc & | includeDirsCallback () const |
MultilibSet & | setFilePathsCallback (IncludeDirsFunc F) |
const IncludeDirsFunc & | filePathsCallback () const |
Static Public Member Functions | |
static llvm::ErrorOr< MultilibSet > | parseYaml (llvm::MemoryBufferRef, llvm::SourceMgr::DiagHandlerTy=nullptr, void *DiagHandlerCtxt=nullptr) |
See also MultilibSetBuilder for combining multilibs into a set.
Definition at line 92 of file Multilib.h.
using clang::driver::MultilibSet::const_iterator = multilib_list::const_iterator |
Definition at line 95 of file Multilib.h.
using clang::driver::MultilibSet::FilterCallback = llvm::function_ref<bool(const Multilib &)> |
Definition at line 98 of file Multilib.h.
using clang::driver::MultilibSet::IncludeDirsFunc = std::function<std::vector<std::string>(const Multilib &M)> |
Definition at line 96 of file Multilib.h.
using clang::driver::MultilibSet::multilib_list = std::vector<Multilib> |
Definition at line 94 of file Multilib.h.
|
default |
Referenced by parseYaml().
|
inline |
Definition at line 116 of file Multilib.h.
|
inline |
Definition at line 128 of file Multilib.h.
LLVM_DUMP_METHOD void MultilibSet::dump | ( | ) | const |
Definition at line 311 of file Multilib.cpp.
References print().
|
inline |
Definition at line 129 of file Multilib.h.
llvm::StringSet MultilibSet::expandFlags | ( | const Multilib::flags_list & | InFlags | ) | const |
Get the given flags plus flags found by matching them against the FlagMatchers and choosing the Flags of each accordingly.
The select method calls this method so in most cases it's not necessary to call it directly.
Definition at line 136 of file Multilib.cpp.
References clang::Result.
Referenced by clang::driver::Driver::HandleImmediateArgs(), and select().
|
inline |
Definition at line 157 of file Multilib.h.
Referenced by clang::driver::toolchains::Generic_GCC::AddMultilibPaths(), addMultilibsFilePaths(), and clang::driver::toolchains::Fuchsia::Fuchsia().
MultilibSet & MultilibSet::FilterOut | ( | FilterCallback | F | ) |
Filter out some subset of the Multilibs using a user defined callback.
Definition at line 90 of file Multilib.cpp.
Referenced by findAndroidArmMultilibs(), findCSKYMultilibs(), findMipsAndroidMultilibs(), findMipsCsMultilibs(), findMipsImgMultilibs(), findMipsMtiMultilibs(), findRISCVBareMetalMultilibs(), and clang::driver::toolchains::Fuchsia::Fuchsia().
|
inline |
Definition at line 120 of file Multilib.h.
|
inline |
Definition at line 150 of file Multilib.h.
Referenced by clang::driver::toolchains::MipsLLVMToolChain::AddClangSystemIncludeArgs(), clang::driver::toolchains::Solaris::AddClangSystemIncludeArgs(), clang::driver::toolchains::MipsLLVMToolChain::addLibCxxIncludePaths(), and clang::driver::toolchains::Generic_GCC::AddMultilibIncludeArgs().
|
static |
Definition at line 286 of file Multilib.cpp.
References MultilibSet().
Referenced by findMultilibsFromYAML().
void MultilibSet::print | ( | raw_ostream & | OS | ) | const |
Definition at line 315 of file Multilib.cpp.
Referenced by dump(), and clang::driver::operator<<().
void MultilibSet::push_back | ( | const Multilib & | M | ) |
Add a completed Multilib to the set.
Definition at line 95 of file Multilib.cpp.
Referenced by findOHOSMuslMultilibs(), and clang::driver::toolchains::Fuchsia::Fuchsia().
bool MultilibSet::select | ( | const Multilib::flags_list & | Flags, |
llvm::SmallVectorImpl< Multilib > & | Selected | ||
) | const |
Select compatible variants,.
Definition at line 97 of file Multilib.cpp.
References expandFlags().
Referenced by findAndroidArmMultilibs(), findCSKYMultilibs(), findMipsAndroidMultilibs(), findMipsMuslMultilibs(), findOHOSMuslMultilibs(), findRISCVMultilibs(), clang::driver::toolchains::Fuchsia::Fuchsia(), and selectRISCVMultilib().
|
inline |
Definition at line 152 of file Multilib.h.
Referenced by findRISCVBareMetalMultilibs(), and clang::driver::toolchains::Fuchsia::Fuchsia().
|
inline |
Definition at line 145 of file Multilib.h.
Referenced by findMipsCsMultilibs(), findMipsImgMultilibs(), findMipsMtiMultilibs(), and findMipsMuslMultilibs().
|
inline |
Definition at line 135 of file Multilib.h.
Referenced by findMipsCsMultilibs().