@@ -42,7 +42,7 @@ class CIR_TypedAttr<string name, string attrMnemonic, list<Trait> traits = []>
42
42
let assemblyFormat = [{}];
43
43
}
44
44
45
- class CIRUnitAttr <string name, string attrMnemonic, list<Trait> traits = []>
45
+ class CIR_UnitAttr <string name, string attrMnemonic, list<Trait> traits = []>
46
46
: CIR_Attr<name, attrMnemonic, traits> {
47
47
let returnType = "bool";
48
48
let defaultValue = "false";
@@ -127,7 +127,7 @@ def CIR_BoolAttr : CIR_Attr<"Bool", "bool", [TypedAttrInterface]> {
127
127
// ZeroAttr
128
128
//===----------------------------------------------------------------------===//
129
129
130
- def ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
130
+ def CIR_ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
131
131
let summary = "Attribute to represent zero initialization";
132
132
let description = [{
133
133
The ZeroAttr is used to indicate zero initialization on structs.
@@ -138,7 +138,7 @@ def ZeroAttr : CIR_TypedAttr<"Zero", "zero"> {
138
138
// UndefAttr
139
139
//===----------------------------------------------------------------------===//
140
140
141
- def UndefAttr : CIR_TypedAttr<"Undef", "undef"> {
141
+ def CIR_UndefAttr : CIR_TypedAttr<"Undef", "undef"> {
142
142
let summary = "Represent an undef constant";
143
143
let description = [{
144
144
The UndefAttr represents an undef constant, corresponding to LLVM's notion
@@ -264,7 +264,9 @@ def CIR_FPAttr : CIR_Attr<"FP", "fp", [TypedAttrInterface]> {
264
264
// ConstArrayAttr
265
265
//===----------------------------------------------------------------------===//
266
266
267
- def ConstArrayAttr : CIR_Attr<"ConstArray", "const_array", [TypedAttrInterface]> {
267
+ def CIR_ConstArrayAttr : CIR_Attr<"ConstArray", "const_array", [
268
+ TypedAttrInterface
269
+ ]> {
268
270
let summary = "A constant array from ArrayAttr or StringRefAttr";
269
271
let description = [{
270
272
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]>
310
312
// ConstVectorAttr
311
313
//===----------------------------------------------------------------------===//
312
314
313
- def ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector",
314
- [TypedAttrInterface]> {
315
+ def CIR_ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector", [
316
+ TypedAttrInterface
317
+ ]> {
315
318
let summary = "A constant vector from ArrayAttr";
316
319
let description = [{
317
320
A CIR vector attribute is an array of literals of the specified attribute
@@ -342,7 +345,7 @@ def ConstVectorAttr : CIR_Attr<"ConstVector", "const_vector",
342
345
// ConstPtrAttr
343
346
//===----------------------------------------------------------------------===//
344
347
345
- def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
348
+ def CIR_ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
346
349
let summary = "Holds a constant pointer value";
347
350
let parameters = (ins
348
351
AttributeSelfTypeParameter<"", "::cir::PointerType">:$type,
@@ -371,8 +374,9 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
371
374
// ConstComplexAttr
372
375
//===----------------------------------------------------------------------===//
373
376
374
- def ConstComplexAttr : CIR_Attr<"ConstComplex", "const_complex",
375
- [TypedAttrInterface]> {
377
+ def CIR_ConstComplexAttr : CIR_Attr<"ConstComplex", "const_complex", [
378
+ TypedAttrInterface
379
+ ]> {
376
380
let summary = "An attribute that contains a constant complex value";
377
381
let description = [{
378
382
The `#cir.const_complex` attribute contains a constant value of complex
@@ -454,7 +458,7 @@ def CIR_VisibilityAttr : CIR_EnumAttr<CIR_VisibilityKind, "visibility"> {
454
458
// BitfieldInfoAttr
455
459
//===----------------------------------------------------------------------===//
456
460
457
- def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
461
+ def CIR_BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
458
462
let summary = "Represents info for a bit-field member";
459
463
let description = [{
460
464
Holds the following information about bitfields: name, storage type, size
@@ -512,5 +516,4 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> {
512
516
];
513
517
}
514
518
515
-
516
519
#endif // CLANG_CIR_DIALECT_IR_CIRATTRS_TD
0 commit comments