Skip to content

Commit

Permalink
keep intel names as well
Browse files Browse the repository at this point in the history
Signed-off-by: Sidorov, Dmitry <[email protected]>
  • Loading branch information
MrSidims committed Sep 25, 2024
1 parent a47fe5e commit 0e8a3af
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.bf
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ namespace Spv
Pure = 2,
Const = 3,
OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}

Expand All @@ -883,6 +884,7 @@ namespace Spv
Pure = 0x00000004,
Const = 0x00000008,
OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}

[AllowDuplicates, CRepr] public enum MemorySemanticsShift
Expand Down Expand Up @@ -1257,6 +1259,7 @@ namespace Spv
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
Expand Down
12 changes: 12 additions & 0 deletions include/spirv/unified1/spirv.core.grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -10522,6 +10522,12 @@
"value" : "0x10000",
"capabilities" : [ "OptNoneEXT" ],
"version" : "None"
},
{
"enumerant" : "OptNoneINTEL",
"value" : "0x10000",
"capabilities" : [ "OptNoneINTEL" ],
"version" : "None"
}
]
},
Expand Down Expand Up @@ -16717,6 +16723,12 @@
"extensions" : [ "SPV_EXT_optnone" ],
"version" : "None"
},
{
"enumerant" : "OptNoneINTEL",
"value" : 6094,
"extensions" : [ "SPV_INTEL_optnone" ],
"version" : "None"
},
{
"enumerant" : "AtomicFloat16AddEXT",
"value" : 6095,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ public enum FunctionControlShift
Pure = 2,
Const = 3,
OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}

Expand All @@ -882,6 +883,7 @@ public enum FunctionControlMask
Pure = 0x00000004,
Const = 0x00000008,
OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}

public enum MemorySemanticsShift
Expand Down Expand Up @@ -1256,6 +1258,7 @@ public enum Capability
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ typedef enum SpvFunctionControlShift_ {
SpvFunctionControlPureShift = 2,
SpvFunctionControlConstShift = 3,
SpvFunctionControlOptNoneEXTShift = 16,
SpvFunctionControlOptNoneINTELShift = 16,
SpvFunctionControlMax = 0x7fffffff,
} SpvFunctionControlShift;

Expand All @@ -863,6 +864,7 @@ typedef enum SpvFunctionControlMask_ {
SpvFunctionControlPureMask = 0x00000004,
SpvFunctionControlConstMask = 0x00000008,
SpvFunctionControlOptNoneEXTMask = 0x00010000,
SpvFunctionControlOptNoneINTELMask = 0x00010000,
} SpvFunctionControlMask;

typedef enum SpvMemorySemanticsShift_ {
Expand Down Expand Up @@ -1227,6 +1229,7 @@ typedef enum SpvCapability_ {
SpvCapabilityAtomicFloat64AddEXT = 6034,
SpvCapabilityLongCompositesINTEL = 6089,
SpvCapabilityOptNoneEXT = 6094,
SpvCapabilityOptNoneINTEL = 6094,
SpvCapabilityAtomicFloat16AddEXT = 6095,
SpvCapabilityDebugInfoModuleINTEL = 6114,
SpvCapabilityBFloat16ConversionINTEL = 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ enum FunctionControlShift {
FunctionControlPureShift = 2,
FunctionControlConstShift = 3,
FunctionControlOptNoneEXTShift = 16,
FunctionControlOptNoneINTELShift = 16,
FunctionControlMax = 0x7fffffff,
};

Expand All @@ -859,6 +860,7 @@ enum FunctionControlMask {
FunctionControlPureMask = 0x00000004,
FunctionControlConstMask = 0x00000008,
FunctionControlOptNoneEXTMask = 0x00010000,
FunctionControlOptNoneINTELMask = 0x00010000,
};

enum MemorySemanticsShift {
Expand Down Expand Up @@ -1223,6 +1225,7 @@ enum Capability {
CapabilityAtomicFloat64AddEXT = 6034,
CapabilityLongCompositesINTEL = 6089,
CapabilityOptNoneEXT = 6094,
CapabilityOptNoneINTEL = 6094,
CapabilityAtomicFloat16AddEXT = 6095,
CapabilityDebugInfoModuleINTEL = 6114,
CapabilityBFloat16ConversionINTEL = 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.hpp11
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ enum class FunctionControlShift : unsigned {
Pure = 2,
Const = 3,
OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
};

Expand All @@ -859,6 +860,7 @@ enum class FunctionControlMask : unsigned {
Pure = 0x00000004,
Const = 0x00000008,
OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
};

enum class MemorySemanticsShift : unsigned {
Expand Down Expand Up @@ -1223,6 +1225,7 @@ enum class Capability : unsigned {
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
Expand Down
4 changes: 3 additions & 1 deletion include/spirv/unified1/spirv.json
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,8 @@
"DontInline": 1,
"Pure": 2,
"Const": 3,
"OptNoneEXT": 16
"OptNoneEXT": 16,
"OptNoneINTEL": 16
}
},
{
Expand Down Expand Up @@ -1200,6 +1201,7 @@
"AtomicFloat64AddEXT": 6034,
"LongCompositesINTEL": 6089,
"OptNoneEXT": 6094,
"OptNoneINTEL": 6094,
"AtomicFloat16AddEXT": 6095,
"DebugInfoModuleINTEL": 6114,
"BFloat16ConversionINTEL": 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ spv = {
Pure = 2,
Const = 3,
OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
},

Expand All @@ -850,6 +851,7 @@ spv = {
Pure = 0x00000004,
Const = 0x00000008,
OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
},

MemorySemanticsShift = {
Expand Down Expand Up @@ -1214,6 +1216,7 @@ spv = {
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spirv.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@
'Pure' : 2,
'Const' : 3,
'OptNoneEXT' : 16,
'OptNoneINTEL' : 16,
},

'FunctionControlMask' : {
Expand All @@ -827,6 +828,7 @@
'Pure' : 0x00000004,
'Const' : 0x00000008,
'OptNoneEXT' : 0x00010000,
'OptNoneINTEL' : 0x00010000,
},

'MemorySemanticsShift' : {
Expand Down Expand Up @@ -1185,6 +1187,7 @@
'AtomicFloat64AddEXT' : 6034,
'LongCompositesINTEL' : 6089,
'OptNoneEXT' : 6094,
'OptNoneINTEL' : 6094,
'AtomicFloat16AddEXT' : 6095,
'DebugInfoModuleINTEL' : 6114,
'BFloat16ConversionINTEL' : 6115,
Expand Down
3 changes: 3 additions & 0 deletions include/spirv/unified1/spv.d
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ enum FunctionControlShift : uint
Pure = 2,
Const = 3,
OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}

Expand All @@ -885,6 +886,7 @@ enum FunctionControlMask : uint
Pure = 0x00000004,
Const = 0x00000008,
OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}

enum MemorySemanticsShift : uint
Expand Down Expand Up @@ -1259,6 +1261,7 @@ enum Capability : uint
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
Expand Down

0 comments on commit 0e8a3af

Please sign in to comment.