Skip to content

Commit e23610c

Browse files
authored
Remove SPV_INTEL_fast_composite extension (#3183)
1 parent 96f5ade commit e23610c

File tree

11 files changed

+1
-101
lines changed

11 files changed

+1
-101
lines changed

include/LLVMSPIRVExtensions.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ EXT(SPV_INTEL_arbitrary_precision_integers)
3535
EXT(SPV_INTEL_optimization_hints)
3636
EXT(SPV_INTEL_float_controls2)
3737
EXT(SPV_INTEL_vector_compute)
38-
EXT(SPV_INTEL_fast_composite)
38+
EXT(SPV_INTEL_fast_composite) // TODO: to remove
3939
EXT(SPV_INTEL_usm_storage_classes)
4040
EXT(SPV_INTEL_fpga_buffer_location)
4141
EXT(SPV_INTEL_arbitrary_precision_fixed_point)

lib/SPIRV/PreprocessMetadata.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,6 @@ void PreprocessMetadataBase::preprocessVectorComputeMetadata(Module *M,
359359
.add(SLMSize)
360360
.done();
361361
}
362-
if (Attrs.hasFnAttr(kVCMetadata::VCFCEntry)) {
363-
EM.addOp()
364-
.add(&F)
365-
.add(spv::internal::ExecutionModeFastCompositeKernelINTEL)
366-
.done();
367-
}
368362

369363
if (Attrs.hasFnAttr(kVCMetadata::VCNamedBarrierCount)) {
370364
SPIRVWord NBarrierCnt = 0;

lib/SPIRV/SPIRVReader.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4643,12 +4643,6 @@ bool SPIRVToLLVM::transMetadata() {
46434643
if (BM->getDesiredBIsRepresentation() == BIsRepresentation::SPIRVFriendlyIR)
46444644
transFunctionDecorationsToMetadata(BF, F);
46454645

4646-
if (BF->hasDecorate(internal::DecorationCallableFunctionINTEL))
4647-
F->addFnAttr(kVCMetadata::VCCallable);
4648-
if (isKernel(BF) &&
4649-
BF->getExecutionMode(internal::ExecutionModeFastCompositeKernelINTEL))
4650-
F->addFnAttr(kVCMetadata::VCFCEntry);
4651-
46524646
if (F->getCallingConv() != CallingConv::SPIR_KERNEL)
46534647
continue;
46544648

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,11 +1020,6 @@ SPIRVFunction *LLVMToSPIRVBase::transFunctionDecl(Function *F) {
10201020
BF->addDecorate(DecorationReferencedIndirectlyINTEL);
10211021
}
10221022

1023-
if (Attrs.hasFnAttr(kVCMetadata::VCCallable) &&
1024-
BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite)) {
1025-
BF->addDecorate(internal::DecorationCallableFunctionINTEL);
1026-
}
1027-
10281023
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_vector_compute))
10291024
transVectorComputeMetadata(F);
10301025

@@ -6282,11 +6277,6 @@ bool LLVMToSPIRVBase::transExecutionMode() {
62826277
break;
62836278
AddSingleArgExecutionMode(static_cast<ExecutionMode>(EMode));
62846279
} break;
6285-
case spv::internal::ExecutionModeFastCompositeKernelINTEL: {
6286-
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite))
6287-
BF->addExecutionMode(BM->add(new SPIRVExecutionMode(
6288-
OpExecutionMode, BF, static_cast<ExecutionMode>(EMode))));
6289-
} break;
62906280
case spv::internal::ExecutionModeNamedSubgroupSizeINTEL: {
62916281
if (!BM->isAllowedToUseExtension(
62926282
ExtensionID::SPV_INTEL_subgroup_requirements))

lib/SPIRV/libSPIRV/SPIRVDecorate.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ class SPIRVDecorate : public SPIRVDecorateGeneric {
183183
return ExtensionID::SPV_INTEL_fpga_cluster_attributes;
184184
case DecorationFuseLoopsInFunctionINTEL:
185185
return ExtensionID::SPV_INTEL_loop_fuse;
186-
case internal::DecorationCallableFunctionINTEL:
187-
return ExtensionID::SPV_INTEL_fast_composite;
188186
case DecorationMathOpDSPModeINTEL:
189187
return ExtensionID::SPV_INTEL_fpga_dsp_control;
190188
case DecorationInitiationIntervalINTEL:

lib/SPIRV/libSPIRV/SPIRVEntry.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,6 @@ class SPIRVCapability : public SPIRVEntryNoId<OpCapability> {
909909
case CapabilityVectorComputeINTEL:
910910
case CapabilityVectorAnyINTEL:
911911
return ExtensionID::SPV_INTEL_vector_compute;
912-
case internal::CapabilityFastCompositeINTEL:
913-
return ExtensionID::SPV_INTEL_fast_composite;
914912
case internal::CapabilitySubgroupRequirementsINTEL:
915913
return ExtensionID::SPV_INTEL_subgroup_requirements;
916914
case CapabilityFPFastMathModeINTEL:

lib/SPIRV/libSPIRV/SPIRVEnum.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ template <> inline void SPIRVMap<SPIRVExecutionModeKind, SPIRVCapVec>::init() {
290290
{CapabilityFloatingPointModeINTEL});
291291
ADD_VEC_INIT(ExecutionModeSharedLocalMemorySizeINTEL,
292292
{CapabilityVectorComputeINTEL});
293-
ADD_VEC_INIT(internal::ExecutionModeFastCompositeKernelINTEL,
294-
{internal::CapabilityFastCompositeINTEL});
295293
ADD_VEC_INIT(ExecutionModeRegisterMapInterfaceINTEL,
296294
{CapabilityFPGAKernelAttributesv2INTEL});
297295
ADD_VEC_INIT(ExecutionModeStreamingInterfaceINTEL,
@@ -473,8 +471,6 @@ template <> inline void SPIRVMap<Decoration, SPIRVCapVec>::init() {
473471
ADD_VEC_INIT(DecorationAliasScopeINTEL,
474472
{CapabilityMemoryAccessAliasingINTEL});
475473
ADD_VEC_INIT(DecorationNoAliasINTEL, {CapabilityMemoryAccessAliasingINTEL});
476-
ADD_VEC_INIT(internal::DecorationCallableFunctionINTEL,
477-
{internal::CapabilityFastCompositeINTEL});
478474
ADD_VEC_INIT(DecorationMediaBlockIOINTEL, {CapabilityVectorComputeINTEL});
479475
ADD_VEC_INIT(DecorationStallEnableINTEL,
480476
{CapabilityFPGAClusterAttributesINTEL});

lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ template <> inline void SPIRVMap<Decoration, std::string>::init() {
212212
add(DecorationCacheControlStoreINTEL, "CacheControlStoreINTEL");
213213

214214
// From spirv_internal.hpp
215-
add(internal::DecorationCallableFunctionINTEL, "CallableFunctionINTEL");
216215
add(internal::DecorationRuntimeAlignedINTEL, "RuntimeAlignedINTEL");
217216
add(internal::DecorationHostAccessINTEL, "HostAccessINTEL");
218217
add(internal::DecorationInitModeINTEL, "InitModeINTEL");
@@ -653,7 +652,6 @@ template <> inline void SPIRVMap<Capability, std::string>::init() {
653652
"SubgroupMatrixMultiplyAccumulateINTEL");
654653
add(CapabilityTernaryBitwiseFunctionINTEL, "TernaryBitwiseFunctionINTEL");
655654
// From spirv_internal.hpp
656-
add(internal::CapabilityFastCompositeINTEL, "FastCompositeINTEL");
657655
add(internal::CapabilityTokenTypeINTEL, "TokenTypeINTEL");
658656
add(internal::CapabilityJointMatrixINTEL, "JointMatrixINTEL");
659657
add(internal::CapabilityHWThreadQueryINTEL, "HWThreadQueryINTEL");

lib/SPIRV/libSPIRV/spirv_internal.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ enum InternalDecoration {
100100
};
101101

102102
enum InternalCapability {
103-
ICapFastCompositeINTEL = 6093,
104103
ICapTokenTypeINTEL = 6112,
105104
ICapabilityJointMatrixINTEL = 6118,
106105
ICapabilityHWThreadQueryINTEL = 6134,
@@ -121,7 +120,6 @@ enum InternalCapability {
121120
};
122121

123122
enum InternalExecutionMode {
124-
IExecModeFastCompositeKernelINTEL = 6088,
125123
IExecModeNamedSubgroupSizeINTEL = 6446,
126124
};
127125

@@ -250,8 +248,6 @@ constexpr SourceLanguage SourceLanguageCPP20 =
250248
constexpr Op OpForward = static_cast<Op>(IOpForward);
251249
constexpr Op OpTypeTokenINTEL = static_cast<Op>(IOpTypeTokenINTEL);
252250

253-
constexpr Decoration DecorationCallableFunctionINTEL =
254-
static_cast<Decoration>(IDecCallableFunctionINTEL);
255251
constexpr Decoration DecorationRuntimeAlignedINTEL =
256252
static_cast<Decoration>(IDecRuntimeAlignedINTEL);
257253
constexpr Decoration DecorationHostAccessINTEL =
@@ -263,16 +259,11 @@ constexpr Decoration DecorationImplementInCSRINTEL =
263259
constexpr Decoration DecorationArgumentAttributeINTEL =
264260
static_cast<Decoration>(IDecArgumentAttributeINTEL);
265261

266-
constexpr Capability CapabilityFastCompositeINTEL =
267-
static_cast<Capability>(ICapFastCompositeINTEL);
268262
constexpr Capability CapabilityTokenTypeINTEL =
269263
static_cast<Capability>(ICapTokenTypeINTEL);
270264
constexpr Capability CapabilityGlobalVariableDecorationsINTEL =
271265
static_cast<Capability>(ICapGlobalVariableDecorationsINTEL);
272266

273-
constexpr ExecutionMode ExecutionModeFastCompositeKernelINTEL =
274-
static_cast<ExecutionMode>(IExecModeFastCompositeKernelINTEL);
275-
276267
constexpr ExecutionMode ExecutionModeNamedSubgroupSizeINTEL =
277268
static_cast<ExecutionMode>(IExecModeNamedSubgroupSizeINTEL);
278269

test/extensions/INTEL/SPV_INTEL_fast_composite/callable-attribute-decoration.ll

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/extensions/INTEL/SPV_INTEL_fast_composite/fast-composit-entry.ll

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)