@@ -40,13 +40,13 @@ struct StructTypeStorage;
40
40
// / There are three possible formats for this type:
41
41
// /
42
42
// / - 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.
44
44
// / - Anonymous structs: no name and a known body.
45
45
// /
46
46
// / Identified structs are uniqued by their name, and anonymous structs are
47
47
// / uniqued by their body. This means that two anonymous structs with the same
48
48
// / 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,
50
50
// / but a different body will result in an error.
51
51
// /
52
52
// / A few examples:
@@ -57,7 +57,7 @@ struct StructTypeStorage;
57
57
// / !anonymous = !cir.struct<struct {!cir.int<u, 8>}>
58
58
// / ```
59
59
// /
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
61
61
// / body automatically updating in place every type in the code that uses the
62
62
// / incomplete struct. Mutability allows for recursive types to be represented,
63
63
// / meaning the struct can have members that refer to itself. This is useful for
@@ -83,7 +83,7 @@ class StructType
83
83
84
84
enum RecordKind : uint32_t { Class, Union, Struct };
85
85
86
- // / Create a identified and complete struct type.
86
+ // / Create an identified and complete struct type.
87
87
static StructType get (mlir::MLIRContext *context,
88
88
llvm::ArrayRef<mlir::Type> members,
89
89
mlir::StringAttr name, bool packed, bool padded,
@@ -94,15 +94,15 @@ class StructType
94
94
mlir::StringAttr name, bool packed, bool padded, RecordKind kind,
95
95
ASTRecordDeclInterface ast = {});
96
96
97
- // / Create a identified and incomplete struct type.
97
+ // / Create an identified and incomplete struct type.
98
98
static StructType get (mlir::MLIRContext *context, mlir::StringAttr name,
99
99
RecordKind kind);
100
100
static StructType
101
101
getChecked (llvm::function_ref<mlir::InFlightDiagnostic()> emitError,
102
102
mlir::MLIRContext *context, mlir::StringAttr name,
103
103
RecordKind kind);
104
104
105
- // / Create a anonymous struct type (always complete).
105
+ // / Create an anonymous struct type (always complete).
106
106
static StructType get (mlir::MLIRContext *context,
107
107
llvm::ArrayRef<mlir::Type> members, bool packed,
108
108
bool padded, RecordKind kind,
0 commit comments