Skip to content

Commit ea345a7

Browse files
authored
Merge pull request #145 from azabazno/opencl_30_options_master
Add OpenCL 3.0 options processing
2 parents 98d8c03 + c896b61 commit ea345a7

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
@@ -127,6 +127,10 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
127127
iCLStdSet = 200;
128128
effectiveArgs.push_back((*it)->getAsString(args));
129129
break;
130+
case OPT_COMPILE_cl_std_CL3_0:
131+
iCLStdSet = 300;
132+
effectiveArgs.push_back((*it)->getAsString(args));
133+
break;
130134
case OPT_COMPILE_triple:
131135
szTriple = (*it)->getValue();
132136
break;

0 commit comments

Comments
 (0)