LLVM 20.0.0git
|
Command line parser for toggling SPIR-V extensions. More...
#include "Target/SPIRV/SPIRVCommandLine.h"
Additional Inherited Members | |
Public Types inherited from llvm::cl::parser< std::set< SPIRV::Extension::Extension > > | |
using | parser_data_type = std::set< SPIRV::Extension::Extension > |
Protected Attributes inherited from llvm::cl::parser< std::set< SPIRV::Extension::Extension > > | |
SmallVector< OptionInfo, 8 > | Values |
Protected Attributes inherited from llvm::cl::generic_parser_base | |
Option & | Owner |
Command line parser for toggling SPIR-V extensions.
Definition at line 24 of file SPIRVCommandLine.h.
|
inline |
Definition at line 27 of file SPIRVCommandLine.h.
bool SPIRVExtensionsParser::parse | ( | cl::Option & | O, |
llvm::StringRef | ArgName, | ||
llvm::StringRef | ArgValue, | ||
std::set< SPIRV::Extension::Extension > & | Vals | ||
) |
Parses SPIR-V extension name from CLI arguments.
Definition at line 73 of file SPIRVCommandLine.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), SPIRVExtensionMap, llvm::StringRef::split(), llvm::StringRef::str(), and llvm::StringRef::substr().