LLVM 24.0.0git
LibraryOptions.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/BoolOrDefault.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Option/Option.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include <optional>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  llvm::opt::LibraryOptTable
 An OptTable with a public constructor, shared by every options struct. More...
class  llvm::opt::LibraryOptionsParser
 Connects options struct T to cl::parseCommandLineOptions and cl::LibraryOptionsContext. More...
class  llvm::opt::RegisterLibraryOptions< T >
 Registers T::Global with cl::ParseCommandLineOptions. More...

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::opt

Macros

#define LLVM_REGISTER_LIBRARY_OPTIONS(T)
 Defines the file-scope registration of options struct T for a library that has no initialization function to register it from, exempting this static constructor from -Wglobal-constructors.

Functions

bool llvm::opt::parseArgValue (StringRef S, bool &V)
bool llvm::opt::parseArgValue (StringRef S, BoolOrDefault &V)
bool llvm::opt::parseArgValue (StringRef S, StringRef &V)
template<typename T>
std::enable_if_t< std::is_arithmetic_v< T > &&!std::is_same_v< T, bool >, bool > llvm::opt::parseArgValue (StringRef S, T &V)
template<typename T>
bool llvm::opt::parseArgValue (StringRef S, std::optional< T > &V)
template<typename T>
bool llvm::opt::parseArgValue (StringRef S, T &V, BumpPtrAllocator &)
template<typename T, typename F>
bool llvm::opt::parseArgValue (StringRef S, T &V, BumpPtrAllocator &, F Parse)
template<typename T, typename F>
bool llvm::opt::parseArgValue (StringRef S, ArrayRef< T > &List, BumpPtrAllocator &Alloc, F ParseElem)
template<typename T>
bool llvm::opt::parseArgValue (StringRef S, ArrayRef< T > &List, BumpPtrAllocator &Alloc)

Macro Definition Documentation

◆ LLVM_REGISTER_LIBRARY_OPTIONS

#define LLVM_REGISTER_LIBRARY_OPTIONS ( T)
Value:
Registers T::Global with cl::ParseCommandLineOptions.

Defines the file-scope registration of options struct T for a library that has no initialization function to register it from, exempting this static constructor from -Wglobal-constructors.

Definition at line 184 of file LibraryOptions.h.