@@ -42,7 +42,7 @@ class CIR_TypedAttr<string name, string attrMnemonic, list<Trait> traits = []>
4242 let assemblyFormat = [{}];
4343}
4444
45- class CIRUnitAttr <string name, string attrMnemonic, list<Trait> traits = []>
45+ class CIR_UnitAttr <string name, string attrMnemonic, list<Trait> traits = []>
4646 : CIR_Attr<name, attrMnemonic, traits> {
4747 let returnType = "bool";
4848 let defaultValue = "false";
@@ -127,7 +127,7 @@ def CIR_BoolAttr : CIR_Attr<"Bool", "bool", [TypedAttrInterface]> {
127127// ZeroAttr
128128//===----------------------------------------------------------------------===//
129129
130- def ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
130+ def CIR_ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
131131 let summary = "Attribute to represent zero initialization";
132132 let description = [{
133133 The ZeroAttr is used to indicate zero initialization on structs.
@@ -138,7 +138,7 @@ def ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
138138// UndefAttr
139139//===----------------------------------------------------------------------===//
140140
141- def UndefAttr : CIR_TypedAttr<"Undef", "undef"> {
141+ def CIR_UndefAttr : CIR_TypedAttr<"Undef", "undef"> {
142142 let summary = "Represent an undef constant";
143143 let description = [{
144144 The UndefAttr represents an undef constant, corresponding to LLVM's notion
@@ -264,7 +264,9 @@ def CIR_FPAttr : CIR_Attr<"FP", "fp", [TypedAttrInterface]> {
264264// ConstArrayAttr
265265//===----------------------------------------------------------------------===//
266266
267- def ConstArrayAttr : CIR_Attr<"ConstArray", "const_array", [TypedAttrInterface]> {
267+ def CIR_ConstArrayAttr : CIR_Attr<"ConstArray", "const_array", [
268+ TypedAttrInterface
269+ ]> {
268270 let summary = "A constant array from ArrayAttr or StringRefAttr";
269271 let description = [{
270272 An CIR array attribute is an array of literals of the specified attr types.
@@ -310,8 +312,9 @@ def ConstArrayAttr : CIR_Attr<"ConstArray", "const_array", [TypedAttrInterface]>
310312// ConstVectorAttr
311313//===----------------------------------------------------------------------===//
312314
313- def ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector",
314- [TypedAttrInterface]> {
315+ def CIR_ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector", [
316+ TypedAttrInterface
317+ ]> {
315318 let summary = "A constant vector from ArrayAttr";
316319 let description = [{
317320 A CIR vector attribute is an array of literals of the specified attribute
@@ -342,7 +345,7 @@ def ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector",
342345// ConstPtrAttr
343346//===----------------------------------------------------------------------===//
344347
345- def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
348+ def CIR_ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
346349 let summary = "Holds a constant pointer value";
347350 let parameters = (ins
348351 AttributeSelfTypeParameter<"", "::cir::PointerType">:$type,
@@ -371,8 +374,9 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
371374// ConstComplexAttr
372375//===----------------------------------------------------------------------===//
373376
374- def ConstComplexAttr : CIR_Attr<"ConstComplex", "const_complex",
375- [TypedAttrInterface]> {
377+ def CIR_ConstComplexAttr : CIR_Attr<"ConstComplex", "const_complex", [
378+ TypedAttrInterface
379+ ]> {
376380 let summary = "An attribute that contains a constant complex value";
377381 let description = [{
378382 The `#cir.const_complex` attribute contains a constant value of complex
@@ -454,7 +458,7 @@ def CIR_VisibilityAttr : CIR_EnumAttr<CIR_VisibilityKind, "visibility"> {
454458// BitfieldInfoAttr
455459//===----------------------------------------------------------------------===//
456460
457- def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
461+ def CIR_BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
458462 let summary = "Represents info for a bit-field member";
459463 let description = [{
460464 Holds the following information about bitfields: name, storage type, size
@@ -512,5 +516,4 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
512516 ];
513517}
514518
515-
516519#endif // CLANG_CIR_DIALECT_IR_CIRATTRS_TD
0 commit comments