@@ -40,13 +40,13 @@ struct StructTypeStorage;
4040// / There are three possible formats for this type:
4141// /
4242// / - Identified and complete structs: unique name and a known body.
43- // / - Identified and incomplete structs: unique name and unkonwn body.
43+ // / - Identified and incomplete structs: unique name and unknown body.
4444// / - Anonymous structs: no name and a known body.
4545// /
4646// / Identified structs are uniqued by their name, and anonymous structs are
4747// / uniqued by their body. This means that two anonymous structs with the same
4848// / body will be the same type, and two identified structs with the same name
49- // / will be the same type. Attempting to build a struct with a existing name,
49+ // / will be the same type. Attempting to build a struct with an existing name,
5050// / but a different body will result in an error.
5151// /
5252// / A few examples:
@@ -57,7 +57,7 @@ struct StructTypeStorage;
5757// / !anonymous = !cir.struct<struct {!cir.int<u, 8>}>
5858// / ```
5959// /
60- // / Incomplete structs are mutable, meaning the can be later completed with a
60+ // / Incomplete structs are mutable, meaning they can be later completed with a
6161// / body automatically updating in place every type in the code that uses the
6262// / incomplete struct. Mutability allows for recursive types to be represented,
6363// / meaning the struct can have members that refer to itself. This is useful for
@@ -83,7 +83,7 @@ class StructType
8383
8484 enum RecordKind : uint32_t { Class, Union, Struct };
8585
86- // / Create a identified and complete struct type.
86+ // / Create an identified and complete struct type.
8787 static StructType get (mlir::MLIRContext *context,
8888 llvm::ArrayRef<mlir::Type> members,
8989 mlir::StringAttr name, bool packed, bool padded,
@@ -94,15 +94,15 @@ class StructType
9494 mlir::StringAttr name, bool packed, bool padded, RecordKind kind,
9595 ASTRecordDeclInterface ast = {});
9696
97- // / Create a identified and incomplete struct type.
97+ // / Create an identified and incomplete struct type.
9898 static StructType get (mlir::MLIRContext *context, mlir::StringAttr name,
9999 RecordKind kind);
100100 static StructType
101101 getChecked (llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
102102 mlir::MLIRContext *context, mlir::StringAttr name,
103103 RecordKind kind);
104104
105- // / Create a anonymous struct type (always complete).
105+ // / Create an anonymous struct type (always complete).
106106 static StructType get (mlir::MLIRContext *context,
107107 llvm::ArrayRef<mlir::Type> members, bool packed,
108108 bool padded, RecordKind kind,
0 commit comments