Skip to content

Commit e10bf19

Browse files
committed
Make enum values lower case per review comments.
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 5381ae8 commit e10bf19

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sycl/include/CL/sycl/INTEL/online_compiler.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace INTEL {
2222
using byte = unsigned char;
2323

2424
enum class compiled_code_format {
25-
SPIRV // the only format supported for now
25+
spir_v // the only format supported for now
2626
};
2727

2828
class device_arch {
@@ -63,7 +63,7 @@ class online_compile_error : public sycl::exception {
6363
};
6464

6565
/// Designates a source language for the online compiler.
66-
enum class source_language { OpenCL_C, CM };
66+
enum class source_language { opencl_c, cm };
6767

6868
/// Represents an online compiler for the language given as template
6969
/// parameter.
@@ -73,7 +73,7 @@ template <source_language Lang> class online_compiler {
7373
/// given compiled code format. Produces device code is 64-bit.
7474
/// The created compiler is "optimistic" - it assumes all applicable SYCL
7575
/// device capabilities are supported by the target device(s).
76-
online_compiler(compiled_code_format fmt = compiled_code_format::SPIRV)
76+
online_compiler(compiled_code_format fmt = compiled_code_format::spir_v)
7777
: OutputFormat(fmt), OutputFormatVersion({0, 0}),
7878
DeviceArch(device_arch::any), Is64Bit(true), DeviceStepping("") {}
7979

@@ -83,7 +83,7 @@ template <source_language Lang> class online_compiler {
8383
/// contradictory or not supported - e.g. if the source language is not
8484
/// supported for given device type.
8585
online_compiler(sycl::info::device_type dev_type, device_arch arch,
86-
compiled_code_format fmt = compiled_code_format::SPIRV)
86+
compiled_code_format fmt = compiled_code_format::spir_v)
8787
: OutputFormat(fmt), OutputFormatVersion({0, 0}), DeviceArch(arch),
8888
Is64Bit(true), DeviceStepping("") {}
8989

@@ -153,7 +153,7 @@ template <source_language Lang> class online_compiler {
153153
template <>
154154
template <>
155155
std::vector<byte>
156-
online_compiler<source_language::OpenCL_C>::compile(const std::string &src) {
156+
online_compiler<source_language::opencl_c>::compile(const std::string &src) {
157157
// real implementation will call some non-templated impl function here
158158
return std::vector<byte>{};
159159
}
@@ -164,7 +164,7 @@ online_compiler<source_language::OpenCL_C>::compile(const std::string &src) {
164164
/// OpenCL JIT compiler options must be supported
165165
template <>
166166
template <>
167-
std::vector<byte> online_compiler<source_language::OpenCL_C>::compile(
167+
std::vector<byte> online_compiler<source_language::opencl_c>::compile(
168168
const std::string &src, const std::vector<std::string> &options) {
169169
// real implementation will call some non-templated impl function here
170170
return std::vector<byte>{};
@@ -174,7 +174,7 @@ std::vector<byte> online_compiler<source_language::OpenCL_C>::compile(
174174
template <>
175175
template <>
176176
std::vector<byte>
177-
online_compiler<source_language::CM>::compile(const std::string &src) {
177+
online_compiler<source_language::cm>::compile(const std::string &src) {
178178
// real implementation will call some non-templated impl function here
179179
return std::vector<byte>{};
180180
}
@@ -183,7 +183,7 @@ online_compiler<source_language::CM>::compile(const std::string &src) {
183183
/// @param options - compilation options (implementation defined)
184184
template <>
185185
template <>
186-
std::vector<byte> online_compiler<source_language::CM>::compile(
186+
std::vector<byte> online_compiler<source_language::cm>::compile(
187187
const std::string &src, const std::vector<std::string> &options) {
188188
// real implementation will call some non-templated impl function here
189189
return std::vector<byte>{};

0 commit comments

Comments
 (0)