Skip to content

Commit 10131c8

Browse files
committed
Remove Fast Composite extension
1 parent 6efaf77 commit 10131c8

File tree

11 files changed

+0
-101
lines changed

11 files changed

+0
-101
lines changed

include/LLVMSPIRVExtensions.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ 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)
3938
EXT(SPV_INTEL_usm_storage_classes)
4039
EXT(SPV_INTEL_fpga_buffer_location)
4140
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
@@ -4642,12 +4642,6 @@ bool SPIRVToLLVM::transMetadata() {
46424642
if (BM->getDesiredBIsRepresentation() == BIsRepresentation::SPIRVFriendlyIR)
46434643
transFunctionDecorationsToMetadata(BF, F);
46444644

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

lib/SPIRV/SPIRVWriter.cpp

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

1021-
if (Attrs.hasFnAttr(kVCMetadata::VCCallable) &&
1022-
BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite)) {
1023-
BF->addDecorate(internal::DecorationCallableFunctionINTEL);
1024-
}
1025-
10261021
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_vector_compute))
10271022
transVectorComputeMetadata(F);
10281023

@@ -6280,11 +6275,6 @@ bool LLVMToSPIRVBase::transExecutionMode() {
62806275
break;
62816276
AddSingleArgExecutionMode(static_cast<ExecutionMode>(EMode));
62826277
} break;
6283-
case spv::internal::ExecutionModeFastCompositeKernelINTEL: {
6284-
if (BM->isAllowedToUseExtension(ExtensionID::SPV_INTEL_fast_composite))
6285-
BF->addExecutionMode(BM->add(new SPIRVExecutionMode(
6286-
OpExecutionMode, BF, static_cast<ExecutionMode>(EMode))));
6287-
} break;
62886278
case spv::internal::ExecutionModeNamedSubgroupSizeINTEL: {
62896279
if (!BM->isAllowedToUseExtension(
62906280
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");
@@ -652,7 +651,6 @@ template <> inline void SPIRVMap<Capability, std::string>::init() {
652651
"SubgroupMatrixMultiplyAccumulateINTEL");
653652
add(CapabilityTernaryBitwiseFunctionINTEL, "TernaryBitwiseFunctionINTEL");
654653
// From spirv_internal.hpp
655-
add(internal::CapabilityFastCompositeINTEL, "FastCompositeINTEL");
656654
add(internal::CapabilityTokenTypeINTEL, "TokenTypeINTEL");
657655
add(internal::CapabilityJointMatrixINTEL, "JointMatrixINTEL");
658656
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,
@@ -122,7 +121,6 @@ enum InternalCapability {
122121
};
123122

124123
enum InternalExecutionMode {
125-
IExecModeFastCompositeKernelINTEL = 6088,
126124
IExecModeNamedSubgroupSizeINTEL = 6446,
127125
};
128126

@@ -253,8 +251,6 @@ constexpr SourceLanguage SourceLanguageCPP20 =
253251
constexpr Op OpForward = static_cast<Op>(IOpForward);
254252
constexpr Op OpTypeTokenINTEL = static_cast<Op>(IOpTypeTokenINTEL);
255253

256-
constexpr Decoration DecorationCallableFunctionINTEL =
257-
static_cast<Decoration>(IDecCallableFunctionINTEL);
258254
constexpr Decoration DecorationRuntimeAlignedINTEL =
259255
static_cast<Decoration>(IDecRuntimeAlignedINTEL);
260256
constexpr Decoration DecorationHostAccessINTEL =
@@ -266,16 +262,11 @@ constexpr Decoration DecorationImplementInCSRINTEL =
266262
constexpr Decoration DecorationArgumentAttributeINTEL =
267263
static_cast<Decoration>(IDecArgumentAttributeINTEL);
268264

269-
constexpr Capability CapabilityFastCompositeINTEL =
270-
static_cast<Capability>(ICapFastCompositeINTEL);
271265
constexpr Capability CapabilityTokenTypeINTEL =
272266
static_cast<Capability>(ICapTokenTypeINTEL);
273267
constexpr Capability CapabilityGlobalVariableDecorationsINTEL =
274268
static_cast<Capability>(ICapGlobalVariableDecorationsINTEL);
275269

276-
constexpr ExecutionMode ExecutionModeFastCompositeKernelINTEL =
277-
static_cast<ExecutionMode>(IExecModeFastCompositeKernelINTEL);
278-
279270
constexpr ExecutionMode ExecutionModeNamedSubgroupSizeINTEL =
280271
static_cast<ExecutionMode>(IExecModeNamedSubgroupSizeINTEL);
281272

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

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

0 commit comments

Comments
 (0)