|
LLVM 24.0.0git
|
Parser for toggling SPIR-V extensions. More...
#include "Target/SPIRV/SPIRVCommandLine.h"
Static Public Member Functions | |
| static Error | parse (StringRef ArgValue, ExtensionSet &Enabled, ExtensionSet &Disabled) |
Parses the value of -spirv-ext into Enabled and Disabled. | |
| static StringRef | checkExtensions (ArrayRef< std::string > ExtNames, ExtensionSet &AllowedExtensions) |
| Validates and converts extension names into internal enum values. | |
| static ExtensionSet | getValidExtensions (const Triple &TT, const ExtensionSet &Disabled) |
Returns the list of extensions that are valid for a particular target environment (i.e., OpenCL or Vulkan), excluding Disabled. | |
Parser for toggling SPIR-V extensions.
Definition at line 27 of file SPIRVCommandLine.h.
|
static |
Validates and converts extension names into internal enum values.
Definition at line 248 of file SPIRVCommandLine.cpp.
References llvm::detail::DenseSetImpl< ValueT, MapTy >::insert(), and SPIRVExtensionMap.
Referenced by llvm::SPIRVTranslate().
|
static |
Returns the list of extensions that are valid for a particular target environment (i.e., OpenCL or Vulkan), excluding Disabled.
Definition at line 265 of file SPIRVCommandLine.cpp.
References llvm::Disabled, llvm::getSymbolicOperandAllowedEnvironments(), llvm::is_contained(), SPIRVExtensionMap, and llvm::Triple::Vulkan.
Referenced by llvm::SPIRVSubtarget::initAvailableExtensions(), and llvm::SPIRVSubtarget::SPIRVSubtarget().
|
static |
Parses the value of -spirv-ext into Enabled and Disabled.
Definition at line 193 of file SPIRVCommandLine.cpp.
References llvm::detail::DenseSetImpl< ValueT, MapTy >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::detail::DenseSetImpl< ValueT, MapTy >::count(), llvm::createStringError(), llvm::Disabled, llvm::Enabled, llvm::detail::DenseSetImpl< ValueT, MapTy >::end(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::equal_to(), llvm::detail::DenseSetImpl< ValueT, MapTy >::insert(), llvm::make_range(), llvm::make_second_range(), llvm::partition(), SPIRVExtensionMap, llvm::StringRef::split(), starts_with(), llvm::StringRef::substr(), llvm::Error::success(), and T.
Referenced by llvm::SPIRVSubtarget::SPIRVSubtarget().