Skip to content

Commit 8f91d45

Browse files
authored
Merge pull request #142 from azabazno/opencl_30_options_80
Add OpenCL 3.0 options processing
2 parents 9e093b5 + 3a950d8 commit 8f91d45

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

opencl_clang_options.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def cl_kernel_arg_info: Flag<["-"], "cl-kernel-arg-info">;
3232
def cl_std_CL1_1: Flag<["-"], "cl-std=CL1.1">;
3333
def cl_std_CL1_2: Flag<["-"], "cl-std=CL1.2">;
3434
def cl_std_CL2_0: Flag<["-"], "cl-std=CL2.0">;
35+
def cl_std_CL3_0: Flag<["-"], "cl-std=CL3.0">;
3536
def cl_uniform_work_group_size: Flag<["-"], "cl-uniform-work-group-size">;
3637
def cl_no_subgroup_ifp: Flag<["-"], "cl-no-subgroup-ifp">;
3738
def triple : Separate<["-"], "triple">, HelpText<"Specify target triple (e.g. i686-apple-darwin9)">;

options_compile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
125125
iCLStdSet = 200;
126126
effectiveArgs.push_back((*it)->getAsString(args));
127127
break;
128+
case OPT_COMPILE_cl_std_CL3_0:
129+
iCLStdSet = 300;
130+
effectiveArgs.push_back((*it)->getAsString(args));
131+
break;
128132
case OPT_COMPILE_triple:
129133
szTriple = (*it)->getValue();
130134
break;

0 commit comments

Comments
 (0)