Skip to content

Commit 78ab5f3

Browse files
authored
Revert "Support SPV_INTEL_complex_float_mul_div extension (#1442)" (#3034)
This reverts commit bc94b7c. SPV_INTEL_complex_float_mul_div extension support is being removed from SPIR-V This PR cleans up the existing support in the translator. Thanks --------- Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent 07a3da9 commit 78ab5f3

File tree

5 files changed

+0
-118
lines changed

5 files changed

+0
-118
lines changed

lib/SPIRV/libSPIRV/SPIRVInstruction.h

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,50 +3831,6 @@ _SPIRV_OP(GroupLogicalOr, true, 6, false, 1)
38313831
_SPIRV_OP(GroupLogicalXor, true, 6, false, 1)
38323832
#undef _SPIRV_OP
38333833

3834-
class SPIRVComplexFloat : public SPIRVInstTemplateBase {
3835-
protected:
3836-
void validate() const override {
3837-
SPIRVId Op1 = Ops[0];
3838-
SPIRVId Op2 = Ops[1];
3839-
SPIRVType *Op1Ty, *Op2Ty;
3840-
SPIRVInstruction::validate();
3841-
if (getValue(Op1)->isForward() || getValue(Op2)->isForward())
3842-
return;
3843-
if (getValueType(Op1)->isTypeVector()) {
3844-
Op1Ty = getValueType(Op1)->getVectorComponentType();
3845-
Op2Ty = getValueType(Op2)->getVectorComponentType();
3846-
assert(getValueType(Op1)->getVectorComponentCount() ==
3847-
getValueType(Op2)->getVectorComponentCount() &&
3848-
"Inconsistent Vector component width");
3849-
} else {
3850-
Op1Ty = getValueType(Op1);
3851-
Op2Ty = getValueType(Op2);
3852-
}
3853-
(void)Op1Ty;
3854-
(void)Op2Ty;
3855-
assert(Op1Ty->isTypeFloat() && "Invalid type for complex instruction");
3856-
assert(Op1Ty == Op2Ty && "Invalid type for complex instruction");
3857-
}
3858-
3859-
public:
3860-
SPIRVCapVec getRequiredCapability() const override {
3861-
return getVec(internal::CapabilityComplexFloatMulDivINTEL);
3862-
}
3863-
3864-
std::optional<ExtensionID> getRequiredExtension() const override {
3865-
return ExtensionID::SPV_INTEL_complex_float_mul_div;
3866-
}
3867-
};
3868-
3869-
template <Op OC>
3870-
class SPIRVComplexFloatInst
3871-
: public SPIRVInstTemplate<SPIRVComplexFloat, OC, true, 5, false> {};
3872-
3873-
#define _SPIRV_OP(x) typedef SPIRVComplexFloatInst<internal::Op##x> SPIRV##x;
3874-
_SPIRV_OP(ComplexFMulINTEL)
3875-
_SPIRV_OP(ComplexFDivINTEL)
3876-
#undef _SPIRV_OP
3877-
38783834
class SPIRVMaskedGatherScatterINTELInstBase : public SPIRVInstTemplateBase {
38793835
protected:
38803836
SPIRVCapVec getRequiredCapability() const override {

lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ template <> inline void SPIRVMap<Capability, std::string>::init() {
654654
add(internal::CapabilityHWThreadQueryINTEL, "HWThreadQueryINTEL");
655655
add(internal::CapabilityGlobalVariableDecorationsINTEL,
656656
"GlobalVariableDecorationsINTEL");
657-
add(internal::CapabilityComplexFloatMulDivINTEL, "ComplexFloatMulDivINTEL");
658657
add(internal::CapabilityMaskedGatherScatterINTEL, "MaskedGatherScatterINTEL");
659658
add(internal::CapabilityTensorFloat32RoundingINTEL,
660659
"TensorFloat32RoundingINTEL");

lib/SPIRV/libSPIRV/SPIRVOpCodeEnumInternal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ _SPIRV_OP_INTERNAL(CooperativeMatrixStoreOffsetINTEL,
2727
internal::OpCooperativeMatrixStoreOffsetINTEL)
2828
_SPIRV_OP_INTERNAL(CooperativeMatrixApplyFunctionINTEL,
2929
internal::OpCooperativeMatrixApplyFunctionINTEL)
30-
_SPIRV_OP_INTERNAL(ComplexFMulINTEL, internal::ComplexFMulINTEL)
31-
_SPIRV_OP_INTERNAL(ComplexFDivINTEL, internal::ComplexFDivINTEL)
3230
_SPIRV_OP_INTERNAL(MaskedGatherINTEL, internal::OpMaskedGatherINTEL)
3331
_SPIRV_OP_INTERNAL(MaskedScatterINTEL, internal::OpMaskedScatterINTEL)
3432
_SPIRV_OP_INTERNAL(RoundFToTF32INTEL, internal::RoundFToTF32INTEL)

lib/SPIRV/libSPIRV/spirv_internal.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ enum InternalOp {
7878
IOpCooperativeMatrixStoreOffsetINTEL = 6240,
7979
IOpJointMatrixWorkItemLengthINTEL = 6410,
8080
IOpTypeTaskSequenceINTEL = 6199,
81-
IOpComplexFMulINTEL = 6415,
82-
IOpComplexFDivINTEL = 6416,
8381
IOpRoundFToTF32INTEL = 6426,
8482
IOpMaskedGatherINTEL = 6428,
8583
IOpMaskedScatterINTEL = 6429,
@@ -112,7 +110,6 @@ enum InternalCapability {
112110
ICapabilityCooperativeMatrixCheckedInstructionsINTEL = 6192,
113111
ICapabilityCooperativeMatrixOffsetInstructionsINTEL = 6238,
114112
ICapabilityCooperativeMatrixPrefetchINTEL = 6411,
115-
ICapabilityComplexFloatMulDivINTEL = 6414,
116113
ICapabilityTensorFloat32RoundingINTEL = 6425,
117114
ICapabilityMaskedGatherScatterINTEL = 6427,
118115
ICapabilityJointMatrixWIInstructionsINTEL = 6435,
@@ -193,10 +190,6 @@ _SPIRV_OP(Capability, HWThreadQueryINTEL)
193190
_SPIRV_OP(BuiltIn, SubDeviceIDINTEL)
194191
_SPIRV_OP(BuiltIn, GlobalHWThreadIDINTEL)
195192

196-
_SPIRV_OP(Capability, ComplexFloatMulDivINTEL)
197-
_SPIRV_OP(Op, ComplexFMulINTEL)
198-
_SPIRV_OP(Op, ComplexFDivINTEL)
199-
200193
_SPIRV_OP(Capability, MaskedGatherScatterINTEL)
201194
_SPIRV_OP(Op, MaskedGatherINTEL)
202195
_SPIRV_OP(Op, MaskedScatterINTEL)

test/extensions/INTEL/SPV_INTEL_complex_float_mul_div/complex-operations.ll

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

0 commit comments

Comments
 (0)