Skip to content

Commit 9c3fd01

Browse files
authored
Merge pull request KhronosGroup#270 from kpet/sycl
Add a SourceLanguage for SYCL
2 parents 5bb42a8 + 064395f commit 9c3fd01

File tree

9 files changed

+13
-1
lines changed

9 files changed

+13
-1
lines changed

include/spirv/unified1/spirv.core.grammar.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9434,6 +9434,10 @@
94349434
{
94359435
"enumerant" : "CPP_for_OpenCL",
94369436
"value" : 6
9437+
},
9438+
{
9439+
"enumerant" : "SYCL",
9440+
"value" : 7
94379441
}
94389442
]
94399443
},

include/spirv/unified1/spirv.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public enum SourceLanguage
6262
OpenCL_CPP = 4,
6363
HLSL = 5,
6464
CPP_for_OpenCL = 6,
65+
SYCL = 7,
6566
}
6667

6768
public enum ExecutionModel

include/spirv/unified1/spirv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ typedef enum SpvSourceLanguage_ {
7070
SpvSourceLanguageOpenCL_CPP = 4,
7171
SpvSourceLanguageHLSL = 5,
7272
SpvSourceLanguageCPP_for_OpenCL = 6,
73+
SpvSourceLanguageSYCL = 7,
7374
SpvSourceLanguageMax = 0x7fffffff,
7475
} SpvSourceLanguage;
7576

include/spirv/unified1/spirv.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ enum SourceLanguage {
6666
SourceLanguageOpenCL_CPP = 4,
6767
SourceLanguageHLSL = 5,
6868
SourceLanguageCPP_for_OpenCL = 6,
69+
SourceLanguageSYCL = 7,
6970
SourceLanguageMax = 0x7fffffff,
7071
};
7172

include/spirv/unified1/spirv.hpp11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ enum class SourceLanguage : unsigned {
6666
OpenCL_CPP = 4,
6767
HLSL = 5,
6868
CPP_for_OpenCL = 6,
69+
SYCL = 7,
6970
Max = 0x7fffffff,
7071
};
7172

include/spirv/unified1/spirv.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"OpenCL_C": 3,
7373
"OpenCL_CPP": 4,
7474
"HLSL": 5,
75-
"CPP_for_OpenCL": 6
75+
"CPP_for_OpenCL": 6,
76+
"SYCL": 7
7677
}
7778
},
7879
{

include/spirv/unified1/spirv.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ spv = {
5757
OpenCL_CPP = 4,
5858
HLSL = 5,
5959
CPP_for_OpenCL = 6,
60+
SYCL = 7,
6061
},
6162

6263
ExecutionModel = {

include/spirv/unified1/spirv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
'OpenCL_CPP' : 4,
5858
'HLSL' : 5,
5959
'CPP_for_OpenCL' : 6,
60+
'SYCL' : 7,
6061
},
6162

6263
'ExecutionModel' : {

include/spirv/unified1/spv.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ enum SourceLanguage : uint
6565
OpenCL_CPP = 4,
6666
HLSL = 5,
6767
CPP_for_OpenCL = 6,
68+
SYCL = 7,
6869
}
6970

7071
enum ExecutionModel : uint

0 commit comments

Comments
 (0)