[mlir][spirv] Remove unused `traits` from `SPV_Attr`

This addresses the warning of unused template argument.
This commit is contained in:
Lei Zhang 2022-06-13 12:20:57 -04:00
parent a4360efb2c
commit a10c09d1e3
1 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@
include "mlir/Dialect/SPIRV/IR/SPIRVBase.td"
class SPV_Attr<string attrName, string attrMnemonic, list<Trait> traits = []>
class SPV_Attr<string attrName, string attrMnemonic>
: AttrDef<SPIRV_Dialect, attrName> {
let mnemonic = attrMnemonic;
}
@ -48,14 +48,14 @@ def SPV_CapabilityArrayAttr : TypedArrayAttrBase<
def SPV_CooperativeMatrixPropertiesNVAttr :
SPV_Attr<"CooperativeMatrixPropertiesNV", "coop_matrix_props"> {
let parameters = (ins
"int":$m_size,
"int":$n_size,
"int":$k_size,
"mlir::Type":$a_type,
"mlir::Type":$b_type,
"mlir::Type":$c_type,
"mlir::Type":$result_type,
"mlir::spirv::ScopeAttr":$scope
"int":$m_size,
"int":$n_size,
"int":$k_size,
"mlir::Type":$a_type,
"mlir::Type":$b_type,
"mlir::Type":$c_type,
"mlir::Type":$result_type,
"mlir::spirv::ScopeAttr":$scope
);
let assemblyFormat = "`<` struct(params) `>`";
}
@ -93,7 +93,7 @@ def SPV_ResourceLimitsAttr : SPV_Attr<"ResourceLimits", "resource_limits"> {
// The configurations of cooperative matrix operations
// supported. Default is an empty list.
DefaultValuedParameter<
"ArrayAttr",
"ArrayAttr",
"nullptr"
>:$cooperative_matrix_properties_nv
);