Skip to content

Commit 0166a0f

Browse files
vmaksimobwlodarcz
andauthored
Update LongConstantCompositeINTEL to LongCompositesINTEL capability after Headers change (#2258)
* Bump SPIRV-Headers to 1c6bb2743599e6eb6f37b2969acc0aef812e32e3 * replace internal SPV_INTEL_long_composites ext with the published SPV_INTEL_long_composites * don't rename extension for now This closes: #2261 Co-authored-by: Wlodarczyk, Bertrand <bertrand.wlodarczyk@intel.com>
1 parent 1e3ec59 commit 0166a0f

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

include/LLVMSPIRVExtensions.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ EXT(SPV_INTEL_variable_length_array)
4343
EXT(SPV_INTEL_fp_fast_math_mode)
4444
EXT(SPV_INTEL_fpga_cluster_attributes)
4545
EXT(SPV_INTEL_loop_fuse)
46-
EXT(SPV_INTEL_long_constant_composite)
46+
EXT(SPV_INTEL_long_constant_composite) // TODO: rename to
47+
// SPV_INTEL_long_composites later
4748
EXT(SPV_INTEL_optnone)
4849
EXT(SPV_INTEL_fpga_dsp_control)
4950
EXT(SPV_INTEL_memory_access_aliasing)

lib/SPIRV/libSPIRV/SPIRVEntry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ class SPIRVContinuedInstINTELBase : public SPIRVEntryNoId<OC> {
908908
}
909909

910910
SPIRVCapVec getRequiredCapability() const override {
911-
return getVec(CapabilityLongConstantCompositeINTEL);
911+
return getVec(CapabilityLongCompositesINTEL);
912912
}
913913

914914
std::optional<ExtensionID> getRequiredExtension() const override {

lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ template <> inline void SPIRVMap<Capability, std::string>::init() {
618618
add(CapabilityGroupNonUniformRotateKHR, "GroupNonUniformRotateKHR");
619619
add(CapabilityAtomicFloat32AddEXT, "AtomicFloat32AddEXT");
620620
add(CapabilityAtomicFloat64AddEXT, "AtomicFloat64AddEXT");
621-
add(CapabilityLongConstantCompositeINTEL, "LongConstantCompositeINTEL");
621+
add(CapabilityLongCompositesINTEL, "LongCompositesINTEL");
622622
add(CapabilityOptNoneINTEL, "OptNoneINTEL");
623623
add(CapabilityAtomicFloat16AddEXT, "AtomicFloat16AddEXT");
624624
add(CapabilityDebugInfoModuleINTEL, "DebugInfoModuleINTEL");

spirv-headers-tag.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cca08c63cefa129d082abca0302adcb81610b465
1+
1c6bb2743599e6eb6f37b2969acc0aef812e32e3

test/SpecConstants/long-spec-const-composite.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
1212
target triple = "spir64-unknown-unknown"
1313

14-
; CHECK-SPIRV: Capability LongConstantCompositeINTEL
14+
; CHECK-SPIRV: Capability LongCompositesINTEL
1515
; CHECK-SPIRV: Extension "SPV_INTEL_long_constant_composite"
1616
; CHECK-SPIRV-DAG: Decorate [[First:[0-9]+]] SpecId 0
1717
; CHECK-SPIRV-DAG: Decorate [[Last:[0-9]+]] SpecId 65548

test/long-constant-array.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; TODO: run validator once it supports the extension
1010
; RUNx: spirv-val %t.spv
1111

12-
; CHECK-SPIRV: Capability LongConstantCompositeINTEL
12+
; CHECK-SPIRV: Capability LongCompositesINTEL
1313
; CHECK-SPIRV: Extension "SPV_INTEL_long_constant_composite"
1414
; CHECK-SPIRV: TypeInt [[TInt:[0-9]+]] 8
1515
; CHECK-SPIRV: Constant {{[0-9]+}} [[ArrSize:[0-9]+]] 78000

test/long-type-struct.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
; RUN: not llvm-spirv %t.bc -o %t.spv 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
1212

13-
; CHECK-SPIRV: Capability LongConstantCompositeINTEL
13+
; CHECK-SPIRV: Capability LongCompositesINTEL
1414
; CHECK-SPIRV: Extension "SPV_INTEL_long_constant_composite"
1515
; CHECK-SPIRV: TypeInt [[TInt:[0-9]+]] 8
1616
; CHECK-SPIRV: TypePointer [[TIntPtr:[0-9]+]] 8 [[TInt]]

0 commit comments

Comments
 (0)