LLVM 20.0.0git
|
Command line parser for toggling SPIR-V extensions. More...
#include "Target/SPIRV/SPIRVCommandLine.h"
Static Public Member Functions | |
static llvm::StringRef | checkExtensions (const std::vector< std::string > &ExtNames, std::set< SPIRV::Extension::Extension > &AllowedExtensions) |
Validates and converts extension names into internal enum values. | |
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 26 of file SPIRVCommandLine.h.
|
inline |
Definition at line 29 of file SPIRVCommandLine.h.
References SPIRV.
|
static |
Validates and converts extension names into internal enum values.
Definition at line 132 of file SPIRVCommandLine.cpp.
References SPIRVExtensionMap.
Referenced by llvm::SPIRVTranslateModule().
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 89 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().