LLVM: lib/Target/SPIRV/SPIRVCommandLine.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_LIB_TARGET_SPIRV_COMMANDLINE_H
15#define LLVM_LIB_TARGET_SPIRV_COMMANDLINE_H
16
19#include
20#include
21
22namespace llvm {
25
26
28 : public cl::parser<std::setSPIRV::Extension::Extension> {
29public:
32
33
34
35
37 std::setSPIRV::Extension::Extension &Vals);
38
39
40
41
42
45 std::setSPIRV::Extension::Extension &AllowedExtensions);
46
47
48
49 static std::setSPIRV::Extension::Extension
51};
52
53}
54#endif
StringRef - Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
This namespace contains all of the command line option processing machinery.
This is an optimization pass for GlobalISel generic memory operations.
Implement std::hash so that hash_code can be used in STL containers.
SPIRVExtensionsParser(cl::Option &O)
Definition SPIRVCommandLine.h:30
static std::set< SPIRV::Extension::Extension > getValidExtensions(const Triple &TT)
Returns the list of extensions that are valid for a particular target environment (i....
bool parse(cl::Option &O, StringRef ArgName, StringRef ArgValue, std::set< SPIRV::Extension::Extension > &Vals)
Parses SPIR-V extension name from CLI arguments.
static StringRef checkExtensions(const std::vector< std::string > &ExtNames, std::set< SPIRV::Extension::Extension > &AllowedExtensions)
Validates and converts extension names into internal enum values.