Skip to content

Commit b719ab4

Browse files
authored
[mlir][spirv] Drop support for SPV_INTEL_joint_matrix (#102332)
This was a "preview" extension, never formalized, that has now been supplanted by SPV_KHR_cooperative_matrix.
1 parent 914a846 commit b719ab4

File tree

17 files changed

+19
-752
lines changed

17 files changed

+19
-752
lines changed

mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAttributes.td

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,6 @@ def SPIRV_CooperativeMatrixPropertiesNVArrayAttr :
101101
TypedArrayAttrBase<SPIRV_CooperativeMatrixPropertiesNVAttr,
102102
"CooperativeMatrixPropertiesNV array attribute">;
103103

104-
// Description of the supported joint matrix operations. See
105-
// https://github.com/intel/llvm/blob/sycl/sycl/doc/design/spirv-extensions/SPV_INTEL_joint_matrix.asciidoc
106-
def SPIRV_JointMatrixPropertiesINTELAttr :
107-
SPIRV_Attr<"JointMatrixPropertiesINTEL", "joint_matrix_props"> {
108-
let parameters = (ins
109-
"int":$m_size,
110-
"int":$n_size,
111-
"int":$k_size,
112-
"mlir::Type":$a_type,
113-
"mlir::Type":$b_type,
114-
"mlir::Type":$c_type,
115-
"mlir::Type":$result_type,
116-
"mlir::spirv::ScopeAttr":$scope
117-
);
118-
let assemblyFormat = "`<` struct(params) `>`";
119-
}
120-
121-
def SPIRV_JointMatrixPropertiesINTELArrayAttr :
122-
TypedArrayAttrBase<SPIRV_JointMatrixPropertiesINTELAttr,
123-
"JointMatrixPropertiesINTEL array attribute">;
124-
125104
// This attribute specifies the limits for various resources on the target
126105
// architecture.
127106
//

mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def SPV_INTEL_debug_module : I32EnumAttrCase<"SPV_INTEL_de
399399
def SPV_INTEL_fp_fast_math_mode : I32EnumAttrCase<"SPV_INTEL_fp_fast_math_mode", 4027>;
400400
def SPV_INTEL_memory_access_aliasing : I32EnumAttrCase<"SPV_INTEL_memory_access_aliasing", 4028>;
401401
def SPV_INTEL_split_barrier : I32EnumAttrCase<"SPV_INTEL_split_barrier", 4029>;
402-
def SPV_INTEL_joint_matrix : I32EnumAttrCase<"SPV_INTEL_joint_matrix", 4030>;
403402
def SPV_INTEL_bfloat16_conversion : I32EnumAttrCase<"SPV_INTEL_bfloat16_conversion", 4031>;
404403

405404
def SPV_NV_compute_shader_derivatives : I32EnumAttrCase<"SPV_NV_compute_shader_derivatives", 5000>;
@@ -459,7 +458,7 @@ def SPIRV_ExtensionAttr :
459458
SPV_INTEL_usm_storage_classes, SPV_INTEL_io_pipes, SPV_INTEL_blocking_pipes,
460459
SPV_INTEL_fpga_reg, SPV_INTEL_long_constant_composite, SPV_INTEL_optnone,
461460
SPV_INTEL_debug_module, SPV_INTEL_fp_fast_math_mode,
462-
SPV_INTEL_memory_access_aliasing, SPV_INTEL_split_barrier, SPV_INTEL_joint_matrix,
461+
SPV_INTEL_memory_access_aliasing, SPV_INTEL_split_barrier,
463462
SPV_INTEL_bfloat16_conversion, SPV_NV_compute_shader_derivatives, SPV_NV_cooperative_matrix,
464463
SPV_NV_fragment_shader_barycentric, SPV_NV_geometry_shader_passthrough,
465464
SPV_NV_mesh_shader, SPV_NV_ray_tracing, SPV_NV_sample_mask_override_coverage,
@@ -1410,12 +1409,6 @@ def SPIRV_C_ShaderStereoViewNV : I32EnumAttrCase<"Shade
14101409
];
14111410
}
14121411

1413-
def SPIRV_C_JointMatrixINTEL : I32EnumAttrCase<"JointMatrixINTEL", 6118> {
1414-
list<Availability> availability = [
1415-
Extension<[SPV_INTEL_joint_matrix]>
1416-
];
1417-
}
1418-
14191412
def SPIRV_C_Bfloat16ConversionINTEL : I32EnumAttrCase<"Bfloat16ConversionINTEL", 6115> {
14201413
list<Availability> availability = [
14211414
Extension<[SPV_INTEL_bfloat16_conversion]>
@@ -1514,7 +1507,7 @@ def SPIRV_CapabilityAttr :
15141507
SPIRV_C_UniformTexelBufferArrayNonUniformIndexing,
15151508
SPIRV_C_StorageTexelBufferArrayNonUniformIndexing,
15161509
SPIRV_C_ShaderViewportIndexLayerEXT, SPIRV_C_ShaderViewportMaskNV,
1517-
SPIRV_C_ShaderStereoViewNV, SPIRV_C_JointMatrixINTEL, SPIRV_C_Bfloat16ConversionINTEL
1510+
SPIRV_C_ShaderStereoViewNV, SPIRV_C_Bfloat16ConversionINTEL
15181511
]>;
15191512

15201513
def SPIRV_AM_Logical : I32EnumAttrCase<"Logical", 0>;
@@ -4131,8 +4124,6 @@ def SPIRV_IsArrayType : CPred<"::llvm::isa<::mlir::spirv::ArrayType>($_self)">;
41314124
def SPIRV_IsCooperativeMatrixType :
41324125
CPred<"::llvm::isa<::mlir::spirv::CooperativeMatrixType>($_self)">;
41334126
def SPIRV_IsImageType : CPred<"::llvm::isa<::mlir::spirv::ImageType>($_self)">;
4134-
def SPIRV_IsJointMatrixType :
4135-
CPred<"::llvm::isa<::mlir::spirv::JointMatrixINTELType>($_self)">;
41364127
def SPIRV_IsMatrixType : CPred<"::llvm::isa<::mlir::spirv::MatrixType>($_self)">;
41374128
def SPIRV_IsPtrType : CPred<"::llvm::isa<::mlir::spirv::PointerType>($_self)">;
41384129
def SPIRV_IsRTArrayType : CPred<"::llvm::isa<::mlir::spirv::RuntimeArrayType>($_self)">;
@@ -4164,8 +4155,6 @@ def SPIRV_AnyCooperativeMatrix : DialectType<SPIRV_Dialect,
41644155
"any SPIR-V cooperative matrix type">;
41654156
def SPIRV_AnyImage : DialectType<SPIRV_Dialect, SPIRV_IsImageType,
41664157
"any SPIR-V image type">;
4167-
def SPIRV_AnyJointMatrix : DialectType<SPIRV_Dialect, SPIRV_IsJointMatrixType,
4168-
"any SPIR-V joint matrix type">;
41694158
def SPIRV_AnyMatrix : DialectType<SPIRV_Dialect, SPIRV_IsMatrixType,
41704159
"any SPIR-V matrix type">;
41714160
def SPIRV_AnyRTArray : DialectType<SPIRV_Dialect, SPIRV_IsRTArrayType,
@@ -4180,12 +4169,11 @@ def SPIRV_Scalar : AnyTypeOf<[SPIRV_Numerical, SPIRV_Bool]>;
41804169
def SPIRV_Aggregate : AnyTypeOf<[SPIRV_AnyArray, SPIRV_AnyRTArray, SPIRV_AnyStruct]>;
41814170
def SPIRV_Composite :
41824171
AnyTypeOf<[SPIRV_Vector, SPIRV_AnyArray, SPIRV_AnyRTArray, SPIRV_AnyStruct,
4183-
SPIRV_AnyCooperativeMatrix, SPIRV_AnyJointMatrix, SPIRV_AnyMatrix]>;
4172+
SPIRV_AnyCooperativeMatrix, SPIRV_AnyMatrix]>;
41844173
def SPIRV_Type : AnyTypeOf<[
41854174
SPIRV_Void, SPIRV_Bool, SPIRV_Integer, SPIRV_Float, SPIRV_Vector,
41864175
SPIRV_AnyPtr, SPIRV_AnyArray, SPIRV_AnyRTArray, SPIRV_AnyStruct,
4187-
SPIRV_AnyCooperativeMatrix, SPIRV_AnyJointMatrix, SPIRV_AnyMatrix,
4188-
SPIRV_AnySampledImage
4176+
SPIRV_AnyCooperativeMatrix, SPIRV_AnyMatrix, SPIRV_AnySampledImage
41894177
]>;
41904178

41914179
def SPIRV_SignedInt : SignedIntOfWidths<[8, 16, 32, 64]>;
@@ -4196,11 +4184,6 @@ class SPIRV_CoopMatrixOfType<list<Type> allowedTypes> :
41964184
"::llvm::cast<::mlir::spirv::CooperativeMatrixType>($_self).getElementType()",
41974185
"Cooperative Matrix">;
41984186

4199-
class SPIRV_JointMatrixOfType<list<Type> allowedTypes> :
4200-
ContainerType<AnyTypeOf<allowedTypes>, SPIRV_IsJointMatrixType,
4201-
"::llvm::cast<::mlir::spirv::JointMatrixINTELType>($_self).getElementType()",
4202-
"Joint Matrix">;
4203-
42044187
class SPIRV_VectorOf<Type type> :
42054188
VectorOfLengthAndType<[2, 3, 4, 8,16], [type]>;
42064189

@@ -4482,12 +4465,6 @@ def SPIRV_OC_OpAtomicFAddEXT : I32EnumAttrCase<"OpAtomicFAddEXT", 6
44824465
def SPIRV_OC_OpGroupIMulKHR : I32EnumAttrCase<"OpGroupIMulKHR", 6401>;
44834466
def SPIRV_OC_OpGroupFMulKHR : I32EnumAttrCase<"OpGroupFMulKHR", 6402>;
44844467

4485-
def SPIRV_OC_OpTypeJointMatrixINTEL : I32EnumAttrCase<"OpTypeJointMatrixINTEL", 6119>;
4486-
def SPIRV_OC_OpJointMatrixLoadINTEL : I32EnumAttrCase<"OpJointMatrixLoadINTEL", 6120>;
4487-
def SPIRV_OC_OpJointMatrixStoreINTEL : I32EnumAttrCase<"OpJointMatrixStoreINTEL", 6121>;
4488-
def SPIRV_OC_OpJointMatrixMadINTEL : I32EnumAttrCase<"OpJointMatrixMadINTEL", 6122>;
4489-
def SPIRV_OC_OpTypejointMatrixWorkItemLengthINTEL : I32EnumAttrCase<"OpJointMatrixWorkItemLengthINTEL", 6410>;
4490-
44914468
def SPIRV_OC_OpConvertFToBF16INTEL : I32EnumAttrCase<"OpConvertFToBF16INTEL", 6116>;
44924469
def SPIRV_OC_OpConvertBF16ToFINTEL : I32EnumAttrCase<"OpConvertBF16ToFINTEL", 6117>;
44934470

@@ -4579,10 +4556,6 @@ def SPIRV_OpcodeAttr :
45794556
SPIRV_OC_OpAssumeTrueKHR, SPIRV_OC_OpAtomicFAddEXT, SPIRV_OC_OpGroupIMulKHR,
45804557
SPIRV_OC_OpGroupFMulKHR,
45814558

4582-
SPIRV_OC_OpTypeJointMatrixINTEL, SPIRV_OC_OpJointMatrixLoadINTEL,
4583-
SPIRV_OC_OpJointMatrixStoreINTEL, SPIRV_OC_OpJointMatrixMadINTEL,
4584-
SPIRV_OC_OpTypejointMatrixWorkItemLengthINTEL,
4585-
45864559
SPIRV_OC_OpConvertFToBF16INTEL, SPIRV_OC_OpConvertBF16ToFINTEL
45874560
]>;
45884561

mlir/include/mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td

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

mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ include "mlir/Dialect/SPIRV/IR/SPIRVCastOps.td"
3030
include "mlir/Dialect/SPIRV/IR/SPIRVCompositeOps.td"
3131
include "mlir/Dialect/SPIRV/IR/SPIRVControlFlowOps.td"
3232
include "mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td"
33-
include "mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td"
3433
include "mlir/Dialect/SPIRV/IR/SPIRVIntelExtOps.td"
3534
include "mlir/Dialect/SPIRV/IR/SPIRVGLOps.td"
3635
include "mlir/Dialect/SPIRV/IR/SPIRVGroupOps.td"

0 commit comments

Comments
 (0)