@@ -35,8 +35,9 @@ Copyright (c) Intel Corporation (2009-2017).
35
35
static constexpr llvm::StringLiteral NAME##_init[] = VALUE; \
36
36
static constexpr llvm::ArrayRef<llvm::StringLiteral> NAME ( \
37
37
NAME##_init, std::size(NAME##_init) - 1);
38
- #define OPTION (PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
39
- PARAM, HELPTEXT, METAVAR, VALUES)
38
+ #define OPTION (PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
39
+ VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
40
+ VALUES)
40
41
#include " opencl_clang_options.inc"
41
42
#undef OPTION
42
43
#undef PREFIX
@@ -47,14 +48,23 @@ extern llvm::ManagedStatic<llvm::sys::SmartMutex<true>> compileMutex;
47
48
48
49
static constexpr OptTable::Info ClangOptionsInfoTable[] = {
49
50
#define PREFIX (NAME, VALUE )
50
- #define OPTION (PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, \
51
- PARAM, HELPTEXT, METAVAR, VALUES) \
52
- { \
53
- PREFIX, NAME, HELPTEXT, METAVAR, OPT_COMPILE_##ID, \
54
- llvm::opt::Option::KIND##Class, PARAM, FLAGS, VISIBILITY, \
55
- OPT_COMPILE_##GROUP, OPT_COMPILE_##ALIAS, ALIASARGS, VALUES \
56
- } \
57
- ,
51
+ #define OPTION (PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
52
+ VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, \
53
+ VALUES) \
54
+ {PREFIX, \
55
+ NAME, \
56
+ HELPTEXT, \
57
+ HELPTEXTSFORVARIANTS, \
58
+ METAVAR, \
59
+ OPT_COMPILE_##ID, \
60
+ llvm::opt::Option::KIND##Class, \
61
+ PARAM, \
62
+ FLAGS, \
63
+ VISIBILITY, \
64
+ OPT_COMPILE_##GROUP, \
65
+ OPT_COMPILE_##ALIAS, \
66
+ ALIASARGS, \
67
+ VALUES},
58
68
#include " opencl_clang_options.inc"
59
69
};
60
70
0 commit comments