summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorViktoria Maximova <viktoria.maksimova@intel.com>2023-08-16 18:21:06 +0200
committerGitHub <noreply@github.com>2023-08-16 09:21:06 -0700
commitb8b9eb8640c8c0107ba580fbcb10f969022ca32c (patch)
tree201bef9f4b146160ef7eabcb40bfb2c8faaee91c /include
parent45fc02a6c67016b3e5ff6e4896a61544a40f90f8 (diff)
downloadSPIRV-Headers-b8b9eb8640c8c0107ba580fbcb10f969022ca32c.tar.gz
SPIRV-Headers-b8b9eb8640c8c0107ba580fbcb10f969022ca32c.tar.bz2
SPIRV-Headers-b8b9eb8640c8c0107ba580fbcb10f969022ca32c.zip
Headers support for two Intel extensions (#356)
* Add SPV_INTEL_global_variable_fpga_decorations Spec: https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/INTEL/SPV_INTEL_global_variable_fpga_decorations.asciidoc * Add SPV_INTEL_global_variable_host_access Spec: https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/INTEL/SPV_INTEL_global_variable_host_access.asciidoc * Update headers generator * update headers after generating script
Diffstat (limited to 'include')
-rw-r--r--include/spirv/unified1/spirv.bf19
-rw-r--r--include/spirv/unified1/spirv.core.grammar.json84
-rw-r--r--include/spirv/unified1/spirv.cs19
-rw-r--r--include/spirv/unified1/spirv.h19
-rw-r--r--include/spirv/unified1/spirv.hpp19
-rw-r--r--include/spirv/unified1/spirv.hpp1119
-rw-r--r--include/spirv/unified1/spirv.json25
-rw-r--r--include/spirv/unified1/spirv.lua17
-rw-r--r--include/spirv/unified1/spirv.py17
-rw-r--r--include/spirv/unified1/spv.d19
10 files changed, 257 insertions, 0 deletions
diff --git a/include/spirv/unified1/spirv.bf b/include/spirv/unified1/spirv.bf
index a9033ed..807a7c5 100644
--- a/include/spirv/unified1/spirv.bf
+++ b/include/spirv/unified1/spirv.bf
@@ -599,6 +599,9 @@ namespace Spv
SingleElementVectorINTEL = 6085,
VectorComputeCallableFunctionINTEL = 6087,
MediaBlockIOINTEL = 6140,
+ InitModeINTEL = 6147,
+ ImplementInRegisterMapINTEL = 6148,
+ HostAccessINTEL = 6168,
FPMaxErrorDecorationINTEL = 6170,
LatencyControlLabelINTEL = 6172,
LatencyControlConstraintINTEL = 6173,
@@ -1188,7 +1191,9 @@ namespace Spv
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
SplitBarrierINTEL = 6141,
+ GlobalVariableFPGADecorationsINTEL = 6146,
FPGAKernelAttributesv2INTEL = 6161,
+ GlobalVariableHostAccessINTEL = 6167,
FPMaxErrorINTEL = 6169,
FPGALatencyControlINTEL = 6171,
FPGAArgumentInterfacesINTEL = 6174,
@@ -1332,6 +1337,20 @@ namespace Spv
MatrixAccumulatorKHR = 2,
}
+ [AllowDuplicates, CRepr] public enum InitializationModeQualifier
+ {
+ InitOnDeviceReprogramINTEL = 0,
+ InitOnDeviceResetINTEL = 1,
+ }
+
+ [AllowDuplicates, CRepr] public enum HostAccessQualifier
+ {
+ NoneINTEL = 0,
+ ReadINTEL = 1,
+ WriteINTEL = 2,
+ ReadWriteINTEL = 3,
+ }
+
[AllowDuplicates, CRepr] public enum Op
{
OpNop = 0,
diff --git a/include/spirv/unified1/spirv.core.grammar.json b/include/spirv/unified1/spirv.core.grammar.json
index ff45621..100f91d 100644
--- a/include/spirv/unified1/spirv.core.grammar.json
+++ b/include/spirv/unified1/spirv.core.grammar.json
@@ -11983,6 +11983,32 @@
},
{
"category" : "ValueEnum",
+ "kind" : "HostAccessQualifier",
+ "enumerants" : [
+ {
+ "enumerant" : "NoneINTEL",
+ "value" : 0,
+ "capabilities" : [ "GlobalVariableHostAccessINTEL" ]
+ },
+ {
+ "enumerant" : "ReadINTEL",
+ "value" : 1,
+ "capabilities" : [ "GlobalVariableHostAccessINTEL" ]
+ },
+ {
+ "enumerant" : "WriteINTEL",
+ "value" : 2,
+ "capabilities" : [ "GlobalVariableHostAccessINTEL" ]
+ },
+ {
+ "enumerant" : "ReadWriteINTEL",
+ "value" : 3,
+ "capabilities" : [ "GlobalVariableHostAccessINTEL" ]
+ }
+ ]
+ },
+ {
+ "category" : "ValueEnum",
"kind" : "FunctionParameterAttribute",
"enumerants" : [
{
@@ -12927,6 +12953,34 @@
"version" : "None"
},
{
+ "enumerant" : "InitModeINTEL",
+ "value" : 6147,
+ "parameters": [
+ { "kind" : "InitializationModeQualifier", "name" : "'Trigger'" }
+ ],
+ "capabilities" : [ "GlobalVariableFPGADecorationsINTEL" ],
+ "version" : "None"
+ },
+ {
+ "enumerant" : "ImplementInRegisterMapINTEL",
+ "value" : 6148,
+ "parameters": [
+ { "kind" : "LiteralInteger", "name" : "Value" }
+ ],
+ "capabilities" : [ "GlobalVariableFPGADecorationsINTEL" ],
+ "version" : "None"
+ },
+ {
+ "enumerant" : "HostAccessINTEL",
+ "value" : 6168,
+ "parameters": [
+ { "kind" : "HostAccessQualifier", "name" : "'Access'" },
+ { "kind" : "LiteralString", "name" : "'Name'" }
+ ],
+ "capabilities" : [ "GlobalVariableHostAccessINTEL" ],
+ "version" : "None"
+ },
+ {
"enumerant" : "FPMaxErrorDecorationINTEL",
"value" : 6170,
"parameters" : [
@@ -15419,6 +15473,12 @@
"version" : "None"
},
{
+ "enumerant" : "GlobalVariableFPGADecorationsINTEL",
+ "value" : 6146,
+ "extensions": [ "SPV_INTEL_global_variable_fpga_decorations" ],
+ "version" : "None"
+ },
+ {
"enumerant" : "FPGAKernelAttributesv2INTEL",
"value" : 6161,
"capabilities" : [ "FPGAKernelAttributesINTEL" ],
@@ -15426,6 +15486,12 @@
"version" : "None"
},
{
+ "enumerant" : "GlobalVariableHostAccessINTEL",
+ "value" : 6167,
+ "extensions": [ "SPV_INTEL_global_variable_host_access" ],
+ "version" : "None"
+ },
+ {
"enumerant" : "FPMaxErrorINTEL",
"value" : 6169,
"extensions" : [ "SPV_INTEL_fp_max_error" ],
@@ -15602,6 +15668,24 @@
]
},
{
+ "category" : "ValueEnum",
+ "kind" : "InitializationModeQualifier",
+ "enumerants" : [
+ {
+ "enumerant" : "InitOnDeviceReprogramINTEL",
+ "value" : 0,
+ "capabilities" : [ "GlobalVariableFPGADecorationsINTEL" ],
+ "version" : "None"
+ },
+ {
+ "enumerant" : "InitOnDeviceResetINTEL",
+ "value" : 1,
+ "capabilities" : [ "GlobalVariableFPGADecorationsINTEL" ],
+ "version" : "None"
+ }
+ ]
+ },
+ {
"category" : "Id",
"kind" : "IdResultType",
"doc" : "Reference to an <id> representing the result's type of the enclosing instruction"
diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs
index 37a796b..79369a8 100644
--- a/include/spirv/unified1/spirv.cs
+++ b/include/spirv/unified1/spirv.cs
@@ -598,6 +598,9 @@ namespace Spv
SingleElementVectorINTEL = 6085,
VectorComputeCallableFunctionINTEL = 6087,
MediaBlockIOINTEL = 6140,
+ InitModeINTEL = 6147,
+ ImplementInRegisterMapINTEL = 6148,
+ HostAccessINTEL = 6168,
FPMaxErrorDecorationINTEL = 6170,
LatencyControlLabelINTEL = 6172,
LatencyControlConstraintINTEL = 6173,
@@ -1187,7 +1190,9 @@ namespace Spv
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
SplitBarrierINTEL = 6141,
+ GlobalVariableFPGADecorationsINTEL = 6146,
FPGAKernelAttributesv2INTEL = 6161,
+ GlobalVariableHostAccessINTEL = 6167,
FPMaxErrorINTEL = 6169,
FPGALatencyControlINTEL = 6171,
FPGAArgumentInterfacesINTEL = 6174,
@@ -1331,6 +1336,20 @@ namespace Spv
MatrixAccumulatorKHR = 2,
}
+ public enum InitializationModeQualifier
+ {
+ InitOnDeviceReprogramINTEL = 0,
+ InitOnDeviceResetINTEL = 1,
+ }
+
+ public enum HostAccessQualifier
+ {
+ NoneINTEL = 0,
+ ReadINTEL = 1,
+ WriteINTEL = 2,
+ ReadWriteINTEL = 3,
+ }
+
public enum Op
{
OpNop = 0,
diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h
index cc344f7..d381340 100644
--- a/include/spirv/unified1/spirv.h
+++ b/include/spirv/unified1/spirv.h
@@ -604,6 +604,9 @@ typedef enum SpvDecoration_ {
SpvDecorationSingleElementVectorINTEL = 6085,
SpvDecorationVectorComputeCallableFunctionINTEL = 6087,
SpvDecorationMediaBlockIOINTEL = 6140,
+ SpvDecorationInitModeINTEL = 6147,
+ SpvDecorationImplementInRegisterMapINTEL = 6148,
+ SpvDecorationHostAccessINTEL = 6168,
SpvDecorationFPMaxErrorDecorationINTEL = 6170,
SpvDecorationLatencyControlLabelINTEL = 6172,
SpvDecorationLatencyControlConstraintINTEL = 6173,
@@ -1187,7 +1190,9 @@ typedef enum SpvCapability_ {
SpvCapabilityDebugInfoModuleINTEL = 6114,
SpvCapabilityBFloat16ConversionINTEL = 6115,
SpvCapabilitySplitBarrierINTEL = 6141,
+ SpvCapabilityGlobalVariableFPGADecorationsINTEL = 6146,
SpvCapabilityFPGAKernelAttributesv2INTEL = 6161,
+ SpvCapabilityGlobalVariableHostAccessINTEL = 6167,
SpvCapabilityFPMaxErrorINTEL = 6169,
SpvCapabilityFPGALatencyControlINTEL = 6171,
SpvCapabilityFPGAArgumentInterfacesINTEL = 6174,
@@ -1329,6 +1334,20 @@ typedef enum SpvCooperativeMatrixUse_ {
SpvCooperativeMatrixUseMax = 0x7fffffff,
} SpvCooperativeMatrixUse;
+typedef enum SpvInitializationModeQualifier_ {
+ SpvInitializationModeQualifierInitOnDeviceReprogramINTEL = 0,
+ SpvInitializationModeQualifierInitOnDeviceResetINTEL = 1,
+ SpvInitializationModeQualifierMax = 0x7fffffff,
+} SpvInitializationModeQualifier;
+
+typedef enum SpvHostAccessQualifier_ {
+ SpvHostAccessQualifierNoneINTEL = 0,
+ SpvHostAccessQualifierReadINTEL = 1,
+ SpvHostAccessQualifierWriteINTEL = 2,
+ SpvHostAccessQualifierReadWriteINTEL = 3,
+ SpvHostAccessQualifierMax = 0x7fffffff,
+} SpvHostAccessQualifier;
+
typedef enum SpvOp_ {
SpvOpNop = 0,
SpvOpUndef = 1,
diff --git a/include/spirv/unified1/spirv.hpp b/include/spirv/unified1/spirv.hpp
index 91c7d2a..b9a881f 100644
--- a/include/spirv/unified1/spirv.hpp
+++ b/include/spirv/unified1/spirv.hpp
@@ -600,6 +600,9 @@ enum Decoration {
DecorationSingleElementVectorINTEL = 6085,
DecorationVectorComputeCallableFunctionINTEL = 6087,
DecorationMediaBlockIOINTEL = 6140,
+ DecorationInitModeINTEL = 6147,
+ DecorationImplementInRegisterMapINTEL = 6148,
+ DecorationHostAccessINTEL = 6168,
DecorationFPMaxErrorDecorationINTEL = 6170,
DecorationLatencyControlLabelINTEL = 6172,
DecorationLatencyControlConstraintINTEL = 6173,
@@ -1183,7 +1186,9 @@ enum Capability {
CapabilityDebugInfoModuleINTEL = 6114,
CapabilityBFloat16ConversionINTEL = 6115,
CapabilitySplitBarrierINTEL = 6141,
+ CapabilityGlobalVariableFPGADecorationsINTEL = 6146,
CapabilityFPGAKernelAttributesv2INTEL = 6161,
+ CapabilityGlobalVariableHostAccessINTEL = 6167,
CapabilityFPMaxErrorINTEL = 6169,
CapabilityFPGALatencyControlINTEL = 6171,
CapabilityFPGAArgumentInterfacesINTEL = 6174,
@@ -1325,6 +1330,20 @@ enum CooperativeMatrixUse {
CooperativeMatrixUseMax = 0x7fffffff,
};
+enum InitializationModeQualifier {
+ InitializationModeQualifierInitOnDeviceReprogramINTEL = 0,
+ InitializationModeQualifierInitOnDeviceResetINTEL = 1,
+ InitializationModeQualifierMax = 0x7fffffff,
+};
+
+enum HostAccessQualifier {
+ HostAccessQualifierNoneINTEL = 0,
+ HostAccessQualifierReadINTEL = 1,
+ HostAccessQualifierWriteINTEL = 2,
+ HostAccessQualifierReadWriteINTEL = 3,
+ HostAccessQualifierMax = 0x7fffffff,
+};
+
enum Op {
OpNop = 0,
OpUndef = 1,
diff --git a/include/spirv/unified1/spirv.hpp11 b/include/spirv/unified1/spirv.hpp11
index 530dc61..f7c3e23 100644
--- a/include/spirv/unified1/spirv.hpp11
+++ b/include/spirv/unified1/spirv.hpp11
@@ -600,6 +600,9 @@ enum class Decoration : unsigned {
SingleElementVectorINTEL = 6085,
VectorComputeCallableFunctionINTEL = 6087,
MediaBlockIOINTEL = 6140,
+ InitModeINTEL = 6147,
+ ImplementInRegisterMapINTEL = 6148,
+ HostAccessINTEL = 6168,
FPMaxErrorDecorationINTEL = 6170,
LatencyControlLabelINTEL = 6172,
LatencyControlConstraintINTEL = 6173,
@@ -1183,7 +1186,9 @@ enum class Capability : unsigned {
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
SplitBarrierINTEL = 6141,
+ GlobalVariableFPGADecorationsINTEL = 6146,
FPGAKernelAttributesv2INTEL = 6161,
+ GlobalVariableHostAccessINTEL = 6167,
FPMaxErrorINTEL = 6169,
FPGALatencyControlINTEL = 6171,
FPGAArgumentInterfacesINTEL = 6174,
@@ -1325,6 +1330,20 @@ enum class CooperativeMatrixUse : unsigned {
Max = 0x7fffffff,
};
+enum class InitializationModeQualifier : unsigned {
+ InitOnDeviceReprogramINTEL = 0,
+ InitOnDeviceResetINTEL = 1,
+ Max = 0x7fffffff,
+};
+
+enum class HostAccessQualifier : unsigned {
+ NoneINTEL = 0,
+ ReadINTEL = 1,
+ WriteINTEL = 2,
+ ReadWriteINTEL = 3,
+ Max = 0x7fffffff,
+};
+
enum class Op : unsigned {
OpNop = 0,
OpUndef = 1,
diff --git a/include/spirv/unified1/spirv.json b/include/spirv/unified1/spirv.json
index 6a20cf1..b1b60a4 100644
--- a/include/spirv/unified1/spirv.json
+++ b/include/spirv/unified1/spirv.json
@@ -626,6 +626,9 @@
"SingleElementVectorINTEL": 6085,
"VectorComputeCallableFunctionINTEL": 6087,
"MediaBlockIOINTEL": 6140,
+ "InitModeINTEL": 6147,
+ "ImplementInRegisterMapINTEL": 6148,
+ "HostAccessINTEL": 6168,
"FPMaxErrorDecorationINTEL": 6170,
"LatencyControlLabelINTEL": 6172,
"LatencyControlConstraintINTEL": 6173,
@@ -1163,7 +1166,9 @@
"DebugInfoModuleINTEL": 6114,
"BFloat16ConversionINTEL": 6115,
"SplitBarrierINTEL": 6141,
+ "GlobalVariableFPGADecorationsINTEL": 6146,
"FPGAKernelAttributesv2INTEL": 6161,
+ "GlobalVariableHostAccessINTEL": 6167,
"FPMaxErrorINTEL": 6169,
"FPGALatencyControlINTEL": 6171,
"FPGAArgumentInterfacesINTEL": 6174,
@@ -1312,6 +1317,26 @@
}
},
{
+ "Name": "InitializationModeQualifier",
+ "Type": "Value",
+ "Values":
+ {
+ "InitOnDeviceReprogramINTEL": 0,
+ "InitOnDeviceResetINTEL": 1
+ }
+ },
+ {
+ "Name": "HostAccessQualifier",
+ "Type": "Value",
+ "Values":
+ {
+ "NoneINTEL": 0,
+ "ReadINTEL": 1,
+ "WriteINTEL": 2,
+ "ReadWriteINTEL": 3
+ }
+ },
+ {
"Name": "Op",
"Type": "Value",
"Values":
diff --git a/include/spirv/unified1/spirv.lua b/include/spirv/unified1/spirv.lua
index 95a4f56..893b901 100644
--- a/include/spirv/unified1/spirv.lua
+++ b/include/spirv/unified1/spirv.lua
@@ -573,6 +573,9 @@ spv = {
SingleElementVectorINTEL = 6085,
VectorComputeCallableFunctionINTEL = 6087,
MediaBlockIOINTEL = 6140,
+ InitModeINTEL = 6147,
+ ImplementInRegisterMapINTEL = 6148,
+ HostAccessINTEL = 6168,
FPMaxErrorDecorationINTEL = 6170,
LatencyControlLabelINTEL = 6172,
LatencyControlConstraintINTEL = 6173,
@@ -1145,7 +1148,9 @@ spv = {
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
SplitBarrierINTEL = 6141,
+ GlobalVariableFPGADecorationsINTEL = 6146,
FPGAKernelAttributesv2INTEL = 6161,
+ GlobalVariableHostAccessINTEL = 6167,
FPMaxErrorINTEL = 6169,
FPGALatencyControlINTEL = 6171,
FPGAArgumentInterfacesINTEL = 6174,
@@ -1273,6 +1278,18 @@ spv = {
MatrixAccumulatorKHR = 2,
},
+ InitializationModeQualifier = {
+ InitOnDeviceReprogramINTEL = 0,
+ InitOnDeviceResetINTEL = 1,
+ },
+
+ HostAccessQualifier = {
+ NoneINTEL = 0,
+ ReadINTEL = 1,
+ WriteINTEL = 2,
+ ReadWriteINTEL = 3,
+ },
+
Op = {
OpNop = 0,
OpUndef = 1,
diff --git a/include/spirv/unified1/spirv.py b/include/spirv/unified1/spirv.py
index 48bb422..83bba7b 100644
--- a/include/spirv/unified1/spirv.py
+++ b/include/spirv/unified1/spirv.py
@@ -573,6 +573,9 @@ spv = {
'SingleElementVectorINTEL' : 6085,
'VectorComputeCallableFunctionINTEL' : 6087,
'MediaBlockIOINTEL' : 6140,
+ 'InitModeINTEL' : 6147,
+ 'ImplementInRegisterMapINTEL' : 6148,
+ 'HostAccessINTEL' : 6168,
'FPMaxErrorDecorationINTEL' : 6170,
'LatencyControlLabelINTEL' : 6172,
'LatencyControlConstraintINTEL' : 6173,
@@ -1145,7 +1148,9 @@ spv = {
'DebugInfoModuleINTEL' : 6114,
'BFloat16ConversionINTEL' : 6115,
'SplitBarrierINTEL' : 6141,
+ 'GlobalVariableFPGADecorationsINTEL' : 6146,
'FPGAKernelAttributesv2INTEL' : 6161,
+ 'GlobalVariableHostAccessINTEL' : 6167,
'FPMaxErrorINTEL' : 6169,
'FPGALatencyControlINTEL' : 6171,
'FPGAArgumentInterfacesINTEL' : 6174,
@@ -1273,6 +1278,18 @@ spv = {
'MatrixAccumulatorKHR' : 2,
},
+ 'InitializationModeQualifier' : {
+ 'InitOnDeviceReprogramINTEL' : 0,
+ 'InitOnDeviceResetINTEL' : 1,
+ },
+
+ 'HostAccessQualifier' : {
+ 'NoneINTEL' : 0,
+ 'ReadINTEL' : 1,
+ 'WriteINTEL' : 2,
+ 'ReadWriteINTEL' : 3,
+ },
+
'Op' : {
'OpNop' : 0,
'OpUndef' : 1,
diff --git a/include/spirv/unified1/spv.d b/include/spirv/unified1/spv.d
index 6f6c048..dc3bbfb 100644
--- a/include/spirv/unified1/spv.d
+++ b/include/spirv/unified1/spv.d
@@ -601,6 +601,9 @@ enum Decoration : uint
SingleElementVectorINTEL = 6085,
VectorComputeCallableFunctionINTEL = 6087,
MediaBlockIOINTEL = 6140,
+ InitModeINTEL = 6147,
+ ImplementInRegisterMapINTEL = 6148,
+ HostAccessINTEL = 6168,
FPMaxErrorDecorationINTEL = 6170,
LatencyControlLabelINTEL = 6172,
LatencyControlConstraintINTEL = 6173,
@@ -1190,7 +1193,9 @@ enum Capability : uint
DebugInfoModuleINTEL = 6114,
BFloat16ConversionINTEL = 6115,
SplitBarrierINTEL = 6141,
+ GlobalVariableFPGADecorationsINTEL = 6146,
FPGAKernelAttributesv2INTEL = 6161,
+ GlobalVariableHostAccessINTEL = 6167,
FPMaxErrorINTEL = 6169,
FPGALatencyControlINTEL = 6171,
FPGAArgumentInterfacesINTEL = 6174,
@@ -1334,6 +1339,20 @@ enum CooperativeMatrixUse : uint
MatrixAccumulatorKHR = 2,
}
+enum InitializationModeQualifier : uint
+{
+ InitOnDeviceReprogramINTEL = 0,
+ InitOnDeviceResetINTEL = 1,
+}
+
+enum HostAccessQualifier : uint
+{
+ NoneINTEL = 0,
+ ReadINTEL = 1,
+ WriteINTEL = 2,
+ ReadWriteINTEL = 3,
+}
+
enum Op : uint
{
OpNop = 0,