Skip to content

Commit a5cafa3

Browse files
authored
[Encoding][NFC] Fix boundary comments for the dialect name. (#20501)
The dialect name is `iree_encoding`, but not `encoding`. Signed-off-by: hanhanW <[email protected]>
1 parent a2dbc53 commit a5cafa3

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

compiler/src/iree/compiler/Dialect/Encoding/IR/EncodingAttrs.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
namespace mlir::iree_compiler::IREE::Encoding {
2929

3030
//===---------------------------------------------------------------------===//
31-
// encoding.encoding
31+
// iree_encoding.encoding
3232
//===---------------------------------------------------------------------===//
3333

3434
/// Returns a composed affine map from the provided attribute. `attr` can be
@@ -506,7 +506,7 @@ Value EncodingAttr::calculateStorageSizeInBytes(Location loc,
506506
}
507507

508508
//===---------------------------------------------------------------------===//
509-
// encoding.pad_encoding_layout
509+
// iree_encoding.pad_encoding_layout
510510
//===---------------------------------------------------------------------===//
511511

512512
PadEncodingLayoutAttr PadEncodingLayoutAttr::get(MLIRContext *ctx,
@@ -564,7 +564,7 @@ Value PadEncodingLayoutAttr::calculateStorageSizeInBytes(
564564
}
565565

566566
//===---------------------------------------------------------------------===//
567-
// encoding.identity_encoding
567+
// iree_encoding.identity_encoding
568568
//===---------------------------------------------------------------------===//
569569

570570
Attribute
@@ -580,7 +580,7 @@ Attribute IdentityEncodingAttr::getLayout(RankedTensorType type) const {
580580
}
581581

582582
//===---------------------------------------------------------------------===//
583-
// encoding.unsupported_encoding
583+
// iree_encoding.unsupported_encoding
584584
//===---------------------------------------------------------------------===//
585585

586586
Attribute

compiler/src/iree/compiler/Dialect/Encoding/IR/EncodingAttrs.td

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def EncodingOpType : IREEEncoding_I32EnumAttr<"EncodingOpType",
4141
def EncodingOpTypeAttr:
4242
IREEEncoding_EnumAttr<EncodingOpType, "optype">;
4343

44+
//===---------------------------------------------------------------------===//
45+
// iree_encoding.packed_storage
46+
//===---------------------------------------------------------------------===//
4447

4548
def PackedStorageAttr : IREEEncoding_Attr<"PackedStorage"> {
4649
let mnemonic = "packed_storage";
@@ -52,6 +55,10 @@ def PackedStorageAttr : IREEEncoding_Attr<"PackedStorage"> {
5255
let genVerifyDecl = 0;
5356
}
5457

58+
//===---------------------------------------------------------------------===//
59+
// iree_encoding.encoding
60+
//===---------------------------------------------------------------------===//
61+
5562
def EncodingAttr :
5663
IREEEncoding_Attr<"Encoding", [
5764
DeclareAttrInterfaceMethods<IREEEncoding_SerializableEncodingAttrInterface, [
@@ -139,7 +146,7 @@ def EncodingAttr :
139146
}
140147

141148
//===---------------------------------------------------------------------===//
142-
// encoding.matmul_k
149+
// iree_encoding.matmul_k
143150
//===---------------------------------------------------------------------===//
144151

145152
def MatmulKAttr : IREEEncoding_Attr<"MatmulK"> {
@@ -188,7 +195,7 @@ def MatmulKAttr : IREEEncoding_Attr<"MatmulK"> {
188195
}
189196

190197
//===---------------------------------------------------------------------===//
191-
// encoding.pad_encoding_layout
198+
// iree_encoding.pad_encoding_layout
192199
//===---------------------------------------------------------------------===//
193200

194201
def PadEncodingLayoutAttr : IREEEncoding_Attr<"PadEncodingLayout", [
@@ -228,7 +235,7 @@ def PadEncodingLayoutAttr : IREEEncoding_Attr<"PadEncodingLayout", [
228235
}
229236

230237
//===---------------------------------------------------------------------===//
231-
// encoding.identity_encoding
238+
// iree_encoding.identity_encoding
232239
//===---------------------------------------------------------------------===//
233240

234241
def IdentityEncodingAttr :
@@ -249,7 +256,7 @@ def IdentityEncodingAttr :
249256
}
250257

251258
//===---------------------------------------------------------------------===//
252-
// encoding.unsupported_encoding
259+
// iree_encoding.unsupported_encoding
253260
//===---------------------------------------------------------------------===//
254261

255262
def UnsupportedEncodingAttr :

0 commit comments

Comments
 (0)