Skip to content

Commit 4127426

Browse files
authored
[SYCL][Driver] Fix sycl_esimd option (#3313)
The SYCL option did not set correctly and was lost during pulldown conflict here: a52d3d3 This patch replaces OptInFFlag with BoolFOption ans sets the option correctly. Signed-off-by: Soumi Manna <[email protected]>
1 parent 628bc0c commit 4127426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4296,7 +4296,10 @@ def sycl_std_EQ : Joined<["-"], "sycl-std=">, Group<sycl_Group>, Flags<[CC1Optio
42964296
HelpText<"SYCL language standard to compile for.">, Values<"2020,2017,121,1.2.1,sycl-1.2.1">,
42974297
NormalizedValues<["SYCL_2020", "SYCL_2017", "SYCL_2017", "SYCL_2017", "SYCL_2017"]>, NormalizedValuesScope<"LangOptions">,
42984298
MarshallingInfoString<LangOpts<"SYCLVersion">, "SYCL_None">, ShouldParseIf<fsycl.KeyPath>, AutoNormalizeEnum;
4299-
defm sycl_esimd: OptInFFlag<"sycl-explicit-simd", "Enable", "Disable", " SYCL explicit SIMD extension.", [CC1Option,CoreOption], LangOpts<"SYCLExplicitSIMD">>;
4299+
defm sycl_esimd: BoolFOption<"sycl-explicit-simd",
4300+
LangOpts<"SYCLExplicitSIMD">, DefaultFalse,
4301+
PosFlag<SetTrue, [CC1Option], "Enable">, NegFlag<SetFalse, [], "Disable">,
4302+
BothFlags<[NoArgumentUnused, CoreOption], " SYCL explicit SIMD extension.">>;
43004303
defm sycl_early_optimizations : OptOutFFlag<"sycl-early-optimizations", "Enable", "Disable", " standard optimization pipeline for SYCL device compiler", [CoreOption]>;
43014304
def fsycl_dead_args_optimization : Flag<["-"], "fsycl-dead-args-optimization">,
43024305
Group<sycl_Group>, Flags<[NoArgumentUnused, CoreOption]>, HelpText<"Enables "

0 commit comments

Comments
 (0)