@@ -313,25 +313,25 @@ def LLVM_DIRecursiveTypeAttr : LLVM_Attr<"DIRecursiveType", "di_recursive_type",
313
313
314
314
1. If `baseType` is present:
315
315
- This type is considered a recursive declaration (rec-decl).
316
- - The `baseType` is a self-recursive type identified by the `id ` field.
316
+ - The `baseType` is a self-recursive type identified by the `recId ` field.
317
317
318
318
2. If `baseType` is not present:
319
319
- This type is considered a recursive self reference (rec-self).
320
320
- This DIRecursiveType itself is a placeholder type that should be
321
321
conceptually replaced with the closet parent DIRecursiveType with the
322
- same `id ` field.
322
+ same `recId ` field.
323
323
324
324
e.g. To represent a linked list struct:
325
325
326
- #rec_self = di_recursive_type<self_id = 0>
326
+ #rec_self = di_recursive_type<recId = 0>
327
327
#ptr = di_derived_type<baseType: #rec_self, ...>
328
328
#field = di_derived_type<name = "next", baseType: #ptr, ...>
329
329
#struct = di_composite_type<name = "Node", elements: #field, ...>
330
- #rec = di_recursive_type<self_id = 0, baseType: #struct>
330
+ #rec = di_recursive_type<recId = 0, baseType: #struct>
331
331
332
332
#var = di_local_variable<type = #struct_type, ...>
333
333
334
- Note that a rec-self without an outer rec-decl with the same id is
334
+ Note that a rec-self without an outer rec-decl with the same recId is
335
335
conceptually the same as an "unbound" variable. The context needs to provide
336
336
meaning to the rec-self.
337
337
@@ -343,13 +343,13 @@ def LLVM_DIRecursiveTypeAttr : LLVM_Attr<"DIRecursiveType", "di_recursive_type",
343
343
}];
344
344
345
345
let parameters = (ins
346
- "DistinctAttr":$id ,
346
+ "DistinctAttr":$recId ,
347
347
OptionalParameter<"DITypeAttr">:$baseType
348
348
);
349
349
350
350
let builders = [
351
- AttrBuilderWithInferredContext<(ins "DistinctAttr":$id ), [{
352
- return $_get(id .getContext(), id , nullptr);
351
+ AttrBuilderWithInferredContext<(ins "DistinctAttr":$recId ), [{
352
+ return $_get(recId .getContext(), recId , nullptr);
353
353
}]>
354
354
];
355
355
0 commit comments