Skip to content

Commit a41546a

Browse files
committed
Remove SPV_INTEL_fast_composite extension (#3183)
1 parent 985ec1a commit a41546a

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
@@ -34,7 +34,7 @@ EXT(SPV_INTEL_arbitrary_precision_integers)
3434
EXT(SPV_INTEL_optimization_hints)
3535
EXT(SPV_INTEL_float_controls2)
3636
EXT(SPV_INTEL_vector_compute)
37-
EXT(SPV_INTEL_fast_composite)
37+
EXT(SPV_INTEL_fast_composite) // TODO: to remove
3838
EXT(SPV_INTEL_usm_storage_classes)
3939
EXT(SPV_INTEL_fpga_buffer_location)
4040
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
@@ -380,12 +380,6 @@ void PreprocessMetadataBase::preprocessVectorComputeMetadata(Module *M,
380380
.add(SLMSize)
381381
.done();
382382
}
383-
if (Attrs.hasFnAttr(kVCMetadata::VCFCEntry)) {
384-
EM.addOp()
385-
.add(&F)
386-
.add(spv::internal::ExecutionModeFastCompositeKernelINTEL)
387-
.done();
388-
}
389383

390384
if (Attrs.hasFnAttr(kVCMetadata::VCNamedBarrierCount)) {
391385
SPIRVWord NBarrierCnt = 0;

lib/SPIRV/SPIRVReader.cpp

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

4468-
if (BF->hasDecorate(internal::DecorationCallableFunctionINTEL))
4469-
F->addFnAttr(kVCMetadata::VCCallable);
4470-
if (isKernel(BF) &&
4471-
BF->getExecutionMode(internal::ExecutionModeFastCompositeKernelINTEL))
4472-
F->addFnAttr(kVCMetadata::VCFCEntry);
4473-
44744468
if (F->getCallingConv() != CallingConv::SPIR_KERNEL)
44754469
continue;
44764470

lib/SPIRV/SPIRVWriter.cpp

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

996-
if (Attrs.hasFnAttr(kVCMetadata::VCCallable) &&
997-
BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite)) {
998-
BF->addDecorate(internal::DecorationCallableFunctionINTEL);
999-
}
1000-
1001996
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_vector_compute))
1002997
transVectorComputeMetadata(F);
1003998

@@ -6083,11 +6078,6 @@ bool LLVMToSPIRVBase::transExecutionMode() {
60836078
break;
60846079
AddSingleArgExecutionMode(static_cast<ExecutionMode>(EMode));
60856080
} break;
6086-
case spv::internal::ExecutionModeFastCompositeKernelINTEL: {
6087-
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite))
6088-
BF->addExecutionMode(BM->add(new SPIRVExecutionMode(
6089-
OpExecutionMode, BF, static_cast<ExecutionMode>(EMode))));
6090-
} break;
60916081
case spv::internal::ExecutionModeNamedSubgroupSizeINTEL: {
60926082
if (!BM->isAllowedToUseExtension(
60936083
ExtensionID::SPV_INTEL_subgroup_requirements))

lib/SPIRV/libSPIRV/SPIRVDecorate.h

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

lib/SPIRV/libSPIRV/SPIRVEntry.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,6 @@ class SPIRVCapability : public SPIRVEntryNoId<OpCapability> {
907907
case CapabilityVectorComputeINTEL:
908908
case CapabilityVectorAnyINTEL:
909909
return ExtensionID::SPV_INTEL_vector_compute;
910-
case internal::CapabilityFastCompositeINTEL:
911-
return ExtensionID::SPV_INTEL_fast_composite;
912910
case internal::CapabilitySubgroupRequirementsINTEL:
913911
return ExtensionID::SPV_INTEL_subgroup_requirements;
914912
case CapabilityFPFastMathModeINTEL:

lib/SPIRV/libSPIRV/SPIRVEnum.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ template <> inline void SPIRVMap<SPIRVExecutionModeKind, SPIRVCapVec>::init() {
286286
{CapabilityFloatingPointModeINTEL});
287287
ADD_VEC_INIT(ExecutionModeSharedLocalMemorySizeINTEL,
288288
{CapabilityVectorComputeINTEL});
289-
ADD_VEC_INIT(internal::ExecutionModeFastCompositeKernelINTEL,
290-
{internal::CapabilityFastCompositeINTEL});
291289
ADD_VEC_INIT(ExecutionModeRegisterMapInterfaceINTEL,
292290
{CapabilityFPGAKernelAttributesv2INTEL});
293291
ADD_VEC_INIT(ExecutionModeStreamingInterfaceINTEL,
@@ -469,8 +467,6 @@ template <> inline void SPIRVMap<Decoration, SPIRVCapVec>::init() {
469467
ADD_VEC_INIT(DecorationAliasScopeINTEL,
470468
{CapabilityMemoryAccessAliasingINTEL});
471469
ADD_VEC_INIT(DecorationNoAliasINTEL, {CapabilityMemoryAccessAliasingINTEL});
472-
ADD_VEC_INIT(internal::DecorationCallableFunctionINTEL,
473-
{internal::CapabilityFastCompositeINTEL});
474470
ADD_VEC_INIT(DecorationMediaBlockIOINTEL, {CapabilityVectorComputeINTEL});
475471
ADD_VEC_INIT(DecorationStallEnableINTEL,
476472
{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");
@@ -651,7 +650,6 @@ template <> inline void SPIRVMap<Capability, std::string>::init() {
651650
"SubgroupMatrixMultiplyAccumulateINTEL");
652651
add(CapabilityTernaryBitwiseFunctionINTEL, "TernaryBitwiseFunctionINTEL");
653652
// From spirv_internal.hpp
654-
add(internal::CapabilityFastCompositeINTEL, "FastCompositeINTEL");
655653
add(internal::CapabilityTokenTypeINTEL, "TokenTypeINTEL");
656654
add(internal::CapabilityBfloat16ConversionINTEL, "Bfloat16ConversionINTEL");
657655
add(internal::CapabilityJointMatrixINTEL, "JointMatrixINTEL");

lib/SPIRV/libSPIRV/spirv_internal.hpp

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

105105
enum InternalCapability {
106-
ICapFastCompositeINTEL = 6093,
107106
ICapTokenTypeINTEL = 6112,
108107
ICapBfloat16ConversionINTEL = 6115,
109108
ICapabilityJointMatrixINTEL = 6118,
@@ -126,7 +125,6 @@ enum InternalCapability {
126125
};
127126

128127
enum InternalExecutionMode {
129-
IExecModeFastCompositeKernelINTEL = 6088,
130128
IExecModeNamedSubgroupSizeINTEL = 6446,
131129
};
132130

@@ -260,8 +258,6 @@ constexpr Op OpTypeTokenINTEL = static_cast<Op>(IOpTypeTokenINTEL);
260258
constexpr Op OpConvertFToBF16INTEL = static_cast<Op>(IOpConvertFToBF16INTEL);
261259
constexpr Op OpConvertBF16ToFINTEL = static_cast<Op>(IOpConvertBF16ToFINTEL);
262260

263-
constexpr Decoration DecorationCallableFunctionINTEL =
264-
static_cast<Decoration>(IDecCallableFunctionINTEL);
265261
constexpr Decoration DecorationRuntimeAlignedINTEL =
266262
static_cast<Decoration>(IDecRuntimeAlignedINTEL);
267263
constexpr Decoration DecorationHostAccessINTEL =
@@ -273,18 +269,13 @@ constexpr Decoration DecorationImplementInCSRINTEL =
273269
constexpr Decoration DecorationArgumentAttributeINTEL =
274270
static_cast<Decoration>(IDecArgumentAttributeINTEL);
275271

276-
constexpr Capability CapabilityFastCompositeINTEL =
277-
static_cast<Capability>(ICapFastCompositeINTEL);
278272
constexpr Capability CapabilityTokenTypeINTEL =
279273
static_cast<Capability>(ICapTokenTypeINTEL);
280274
constexpr Capability CapabilityBfloat16ConversionINTEL =
281275
static_cast<Capability>(ICapBfloat16ConversionINTEL);
282276
constexpr Capability CapabilityGlobalVariableDecorationsINTEL =
283277
static_cast<Capability>(ICapGlobalVariableDecorationsINTEL);
284278

285-
constexpr ExecutionMode ExecutionModeFastCompositeKernelINTEL =
286-
static_cast<ExecutionMode>(IExecModeFastCompositeKernelINTEL);
287-
288279
constexpr ExecutionMode ExecutionModeNamedSubgroupSizeINTEL =
289280
static_cast<ExecutionMode>(IExecModeNamedSubgroupSizeINTEL);
290281

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)