Skip to content

Commit 62269ac

Browse files
committed
Update SPV_INTEL_fpga_loop_controls to rev I
It also fixes a bug for NoFusionINTEL, which shouldn't have a parameter Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent 85a1ed2 commit 62269ac

File tree

10 files changed

+52
-1
lines changed

10 files changed

+52
-1
lines changed

include/spirv/unified1/spirv.bf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ namespace Spv
736736
MaxInterleavingINTEL = 21,
737737
SpeculatedIterationsINTEL = 22,
738738
NoFusionINTEL = 23,
739+
LoopCountINTEL = 24,
740+
MaxReinvocationDelayINTEL = 25,
739741
}
740742

741743
[AllowDuplicates, CRepr] public enum LoopControlMask
@@ -758,6 +760,8 @@ namespace Spv
758760
MaxInterleavingINTEL = 0x00200000,
759761
SpeculatedIterationsINTEL = 0x00400000,
760762
NoFusionINTEL = 0x00800000,
763+
LoopCountINTEL = 0x01000000,
764+
MaxReinvocationDelayINTEL = 0x02000000,
761765
}
762766

763767
[AllowDuplicates, CRepr] public enum FunctionControlShift

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9086,6 +9086,23 @@
90869086
{
90879087
"enumerant" : "NoFusionINTEL",
90889088
"value" : "0x800000",
9089+
"capabilities" : [ "FPGALoopControlsINTEL" ],
9090+
"extensions" : [ "SPV_INTEL_fpga_loop_controls" ],
9091+
"version" : "None"
9092+
},
9093+
{
9094+
"enumerant" : "LoopCountINTEL",
9095+
"value" : "0x1000000",
9096+
"parameters" : [
9097+
{ "kind" : "LiteralInteger" }
9098+
],
9099+
"capabilities" : [ "FPGALoopControlsINTEL" ],
9100+
"extensions" : [ "SPV_INTEL_fpga_loop_controls" ],
9101+
"version" : "None"
9102+
},
9103+
{
9104+
"enumerant" : "MaxReinvocationDelayINTEL",
9105+
"value" : "0x2000000",
90899106
"parameters" : [
90909107
{ "kind" : "LiteralInteger" }
90919108
],

include/spirv/unified1/spirv.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ public enum LoopControlShift
735735
MaxInterleavingINTEL = 21,
736736
SpeculatedIterationsINTEL = 22,
737737
NoFusionINTEL = 23,
738+
LoopCountINTEL = 24,
739+
MaxReinvocationDelayINTEL = 25,
738740
}
739741

740742
public enum LoopControlMask
@@ -757,6 +759,8 @@ public enum LoopControlMask
757759
MaxInterleavingINTEL = 0x00200000,
758760
SpeculatedIterationsINTEL = 0x00400000,
759761
NoFusionINTEL = 0x00800000,
762+
LoopCountINTEL = 0x01000000,
763+
MaxReinvocationDelayINTEL = 0x02000000,
760764
}
761765

762766
public enum FunctionControlShift

include/spirv/unified1/spirv.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,8 @@ typedef enum SpvLoopControlShift_ {
740740
SpvLoopControlMaxInterleavingINTELShift = 21,
741741
SpvLoopControlSpeculatedIterationsINTELShift = 22,
742742
SpvLoopControlNoFusionINTELShift = 23,
743+
SpvLoopControlLoopCountINTELShift = 24,
744+
SpvLoopControlMaxReinvocationDelayINTELShift = 25,
743745
SpvLoopControlMax = 0x7fffffff,
744746
} SpvLoopControlShift;
745747

@@ -762,6 +764,8 @@ typedef enum SpvLoopControlMask_ {
762764
SpvLoopControlMaxInterleavingINTELMask = 0x00200000,
763765
SpvLoopControlSpeculatedIterationsINTELMask = 0x00400000,
764766
SpvLoopControlNoFusionINTELMask = 0x00800000,
767+
SpvLoopControlLoopCountINTELMask = 0x01000000,
768+
SpvLoopControlMaxReinvocationDelayINTELMask = 0x02000000,
765769
} SpvLoopControlMask;
766770

767771
typedef enum SpvFunctionControlShift_ {

include/spirv/unified1/spirv.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ enum LoopControlShift {
736736
LoopControlMaxInterleavingINTELShift = 21,
737737
LoopControlSpeculatedIterationsINTELShift = 22,
738738
LoopControlNoFusionINTELShift = 23,
739+
LoopControlLoopCountINTELShift = 24,
740+
LoopControlMaxReinvocationDelayINTELShift = 25,
739741
LoopControlMax = 0x7fffffff,
740742
};
741743

@@ -758,6 +760,8 @@ enum LoopControlMask {
758760
LoopControlMaxInterleavingINTELMask = 0x00200000,
759761
LoopControlSpeculatedIterationsINTELMask = 0x00400000,
760762
LoopControlNoFusionINTELMask = 0x00800000,
763+
LoopControlLoopCountINTELMask = 0x01000000,
764+
LoopControlMaxReinvocationDelayINTELMask = 0x02000000,
761765
};
762766

763767
enum FunctionControlShift {

include/spirv/unified1/spirv.hpp11

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ enum class LoopControlShift : unsigned {
736736
MaxInterleavingINTEL = 21,
737737
SpeculatedIterationsINTEL = 22,
738738
NoFusionINTEL = 23,
739+
LoopCountINTEL = 24,
740+
MaxReinvocationDelayINTEL = 25,
739741
Max = 0x7fffffff,
740742
};
741743

@@ -758,6 +760,8 @@ enum class LoopControlMask : unsigned {
758760
MaxInterleavingINTEL = 0x00200000,
759761
SpeculatedIterationsINTEL = 0x00400000,
760762
NoFusionINTEL = 0x00800000,
763+
LoopCountINTEL = 0x01000000,
764+
MaxReinvocationDelayINTEL = 0x02000000,
761765
};
762766

763767
enum class FunctionControlShift : unsigned {

include/spirv/unified1/spirv.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,9 @@
764764
"LoopCoalesceINTEL": 20,
765765
"MaxInterleavingINTEL": 21,
766766
"SpeculatedIterationsINTEL": 22,
767-
"NoFusionINTEL": 23
767+
"NoFusionINTEL": 23,
768+
"LoopCountINTEL": 24,
769+
"MaxReinvocationDelayINTEL": 25
768770
}
769771
},
770772
{

include/spirv/unified1/spirv.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ spv = {
706706
MaxInterleavingINTEL = 21,
707707
SpeculatedIterationsINTEL = 22,
708708
NoFusionINTEL = 23,
709+
LoopCountINTEL = 24,
710+
MaxReinvocationDelayINTEL = 25,
709711
},
710712

711713
LoopControlMask = {
@@ -727,6 +729,8 @@ spv = {
727729
MaxInterleavingINTEL = 0x00200000,
728730
SpeculatedIterationsINTEL = 0x00400000,
729731
NoFusionINTEL = 0x00800000,
732+
LoopCountINTEL = 0x01000000,
733+
MaxReinvocationDelayINTEL = 0x02000000,
730734
},
731735

732736
FunctionControlShift = {

include/spirv/unified1/spirv.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@
706706
'MaxInterleavingINTEL' : 21,
707707
'SpeculatedIterationsINTEL' : 22,
708708
'NoFusionINTEL' : 23,
709+
'LoopCountINTEL' : 24,
710+
'MaxReinvocationDelayINTEL' : 25,
709711
},
710712

711713
'LoopControlMask' : {
@@ -727,6 +729,8 @@
727729
'MaxInterleavingINTEL' : 0x00200000,
728730
'SpeculatedIterationsINTEL' : 0x00400000,
729731
'NoFusionINTEL' : 0x00800000,
732+
'LoopCountINTEL' : 0x01000000,
733+
'MaxReinvocationDelayINTEL' : 0x02000000,
730734
},
731735

732736
'FunctionControlShift' : {

include/spirv/unified1/spv.d

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ enum LoopControlShift : uint
738738
MaxInterleavingINTEL = 21,
739739
SpeculatedIterationsINTEL = 22,
740740
NoFusionINTEL = 23,
741+
LoopCountINTEL = 24,
742+
MaxReinvocationDelayINTEL = 25,
741743
}
742744

743745
enum LoopControlMask : uint
@@ -760,6 +762,8 @@ enum LoopControlMask : uint
760762
MaxInterleavingINTEL = 0x00200000,
761763
SpeculatedIterationsINTEL = 0x00400000,
762764
NoFusionINTEL = 0x00800000,
765+
LoopCountINTEL = 0x01000000,
766+
MaxReinvocationDelayINTEL = 0x02000000,
763767
}
764768

765769
enum FunctionControlShift : uint

0 commit comments

Comments
 (0)