@@ -20,18 +20,13 @@ include "mlir/Interfaces/DataLayoutInterfaces.td"
2020include "mlir/IR/AttrTypeBase.td"
2121include "mlir/IR/EnumAttr.td"
2222
23- // Specify the TBAA name of CIR_type
24- class TBAALoweringInfo {
25- string tbaaName = "";
26- }
27-
2823//===----------------------------------------------------------------------===//
2924// CIR Types
3025//===----------------------------------------------------------------------===//
3126
3227class CIR_Type<string name, string typeMnemonic, list<Trait> traits = [],
3328 string baseCppClass = "::mlir::Type">
34- : TypeDef<CIR_Dialect, name, traits, baseCppClass>, TBAALoweringInfo {
29+ : TypeDef<CIR_Dialect, name, traits, baseCppClass> {
3530 let mnemonic = typeMnemonic;
3631}
3732
@@ -167,7 +162,6 @@ class CIR_FloatType<string name, string mnemonic>
167162 ]> {}
168163
169164def CIR_Single : CIR_FloatType<"Single", "float"> {
170- let tbaaName = "float";
171165 let summary = "CIR single-precision float type";
172166 let description = [{
173167 Floating-point type that represents the `float` type in C/C++. Its
@@ -176,7 +170,6 @@ def CIR_Single : CIR_FloatType<"Single", "float"> {
176170}
177171
178172def CIR_Double : CIR_FloatType<"Double", "double"> {
179- let tbaaName = "double";
180173 let summary = "CIR double-precision float type";
181174 let description = [{
182175 Floating-point type that represents the `double` type in C/C++. Its
@@ -213,7 +206,6 @@ def CIR_FP128 : CIR_FloatType<"FP128", "f128"> {
213206}
214207
215208def CIR_LongDouble : CIR_FloatType<"LongDouble", "long_double"> {
216- let tbaaName = "long double";
217209 let summary = "CIR extended-precision float type";
218210 let description = [{
219211 Floating-point type that represents the `long double` type in C/C++.
@@ -271,7 +263,7 @@ def CIR_ComplexType : CIR_Type<"Complex", "complex",
271263
272264def CIR_PointerType : CIR_Type<"Pointer", "ptr",
273265 [DeclareTypeInterfaceMethods<DataLayoutTypeInterface>]> {
274- let tbaaName = "any pointer";
266+
275267 let summary = "CIR pointer type";
276268 let description = [{
277269 `CIR.ptr` is a type returned by any op generating a pointer in C++.
@@ -347,7 +339,7 @@ def CIR_DataMemberType : CIR_Type<"DataMember", "data_member",
347339def CIR_BoolType :
348340 CIR_Type<"Bool", "bool",
349341 [DeclareTypeInterfaceMethods<DataLayoutTypeInterface>]> {
350- let tbaaName = "bool";
342+
351343 let summary = "CIR bool type";
352344 let description = [{
353345 `cir.bool` represent's C++ bool type.
0 commit comments