Skip to content

Commit 8e2ad27

Browse files
authored
Merge pull request KhronosGroup#338 from heroseh/main
Add Hero C Compiler to the vendor list & add C source language
2 parents 69155b2 + f48f8ee commit 8e2ad27

File tree

11 files changed

+16
-2
lines changed

11 files changed

+16
-2
lines changed

include/spirv/spir-v.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
<id value="34" vendor="Rayan Hatout" tool="SPIRVSmith" comment="Contact Rayan Hatout [email protected], Repo https://github.com/rayanht/SPIRVSmith"/>
8888
<id value="35" vendor="Saarland University" tool="Shady" comment="Contact Hugo Devillers [email protected], Repo https://github.com/Hugobros3/shady"/>
8989
<id value="36" vendor="Taichi Graphics" tool="Taichi" comment="Contact Rendong Liang [email protected], Repo https://github.com/taichi-dev/taichi"/>
90-
<unused start="37" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
90+
<id value="37" vendor="heroseh" tool="Hero C Compiler" comment="https://github.com/heroseh/hcc"/>
91+
<unused start="38" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
9192
</ids>
9293

9394
<!-- SECTION: SPIR-V Opcodes and Enumerants -->

include/spirv/unified1/spirv.bf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ namespace Spv
6666
HLSL = 5,
6767
CPP_for_OpenCL = 6,
6868
SYCL = 7,
69+
HERO_C = 8,
6970
}
7071

7172
[AllowDuplicates, CRepr] public enum ExecutionModel

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10084,6 +10084,10 @@
1008410084
{
1008510085
"enumerant" : "SYCL",
1008610086
"value" : 7
10087+
},
10088+
{
10089+
"enumerant" : "HERO_C",
10090+
"value" : 8
1008710091
}
1008810092
]
1008910093
},

include/spirv/unified1/spirv.cs

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

7071
public enum ExecutionModel

include/spirv/unified1/spirv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ typedef enum SpvSourceLanguage_ {
7373
SpvSourceLanguageHLSL = 5,
7474
SpvSourceLanguageCPP_for_OpenCL = 6,
7575
SpvSourceLanguageSYCL = 7,
76+
SpvSourceLanguageHERO_C = 8,
7677
SpvSourceLanguageMax = 0x7fffffff,
7778
} SpvSourceLanguage;
7879

include/spirv/unified1/spirv.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ enum SourceLanguage {
6969
SourceLanguageHLSL = 5,
7070
SourceLanguageCPP_for_OpenCL = 6,
7171
SourceLanguageSYCL = 7,
72+
SourceLanguageHERO_C = 8,
7273
SourceLanguageMax = 0x7fffffff,
7374
};
7475

include/spirv/unified1/spirv.hpp11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ enum class SourceLanguage : unsigned {
6969
HLSL = 5,
7070
CPP_for_OpenCL = 6,
7171
SYCL = 7,
72+
HERO_C = 8,
7273
Max = 0x7fffffff,
7374
};
7475

include/spirv/unified1/spirv.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"OpenCL_CPP": 4,
7676
"HLSL": 5,
7777
"CPP_for_OpenCL": 6,
78-
"SYCL": 7
78+
"SYCL": 7,
79+
"HERO_C": 8
7980
}
8081
},
8182
{

include/spirv/unified1/spirv.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ spv = {
6060
HLSL = 5,
6161
CPP_for_OpenCL = 6,
6262
SYCL = 7,
63+
HERO_C = 8,
6364
},
6465

6566
ExecutionModel = {

include/spirv/unified1/spirv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
'HLSL' : 5,
6161
'CPP_for_OpenCL' : 6,
6262
'SYCL' : 7,
63+
'HERO_C' : 8,
6364
},
6465

6566
'ExecutionModel' : {

0 commit comments

Comments
 (0)