@@ -159,14 +159,9 @@ MlirAttribute mlirLLVMDIBasicTypeAttrGet(MlirContext ctx, unsigned int tag,
159
159
unwrap (ctx), tag, cast<StringAttr>(unwrap (name)), sizeInBits, encoding));
160
160
}
161
161
162
- MlirAttribute mlirLLVMDICompositeTypeAttrGetRecSelf (MlirAttribute recId) {
163
- return wrap (
164
- DICompositeTypeAttr::getRecSelf (cast<DistinctAttr>(unwrap (recId))));
165
- }
166
-
167
162
MlirAttribute mlirLLVMDICompositeTypeAttrGet (
168
- MlirContext ctx, MlirAttribute recId, bool isRecSelf, unsigned int tag ,
169
- MlirAttribute name, MlirAttribute file, uint32_t line, MlirAttribute scope,
163
+ MlirContext ctx, unsigned int tag, MlirAttribute recId, MlirAttribute name ,
164
+ MlirAttribute file, uint32_t line, MlirAttribute scope,
170
165
MlirAttribute baseType, int64_t flags, uint64_t sizeInBits,
171
166
uint64_t alignInBits, intptr_t nElements, MlirAttribute const *elements,
172
167
MlirAttribute dataLocation, MlirAttribute rank, MlirAttribute allocated,
@@ -175,7 +170,7 @@ MlirAttribute mlirLLVMDICompositeTypeAttrGet(
175
170
elementsStorage.reserve (nElements);
176
171
177
172
return wrap (DICompositeTypeAttr::get (
178
- unwrap (ctx), cast<DistinctAttr>(unwrap (recId)), isRecSelf, tag ,
173
+ unwrap (ctx), tag, cast<DistinctAttr>(unwrap (recId)),
179
174
cast<StringAttr>(unwrap (name)), cast<DIFileAttr>(unwrap (file)), line,
180
175
cast<DIScopeAttr>(unwrap (scope)), cast<DITypeAttr>(unwrap (baseType)),
181
176
DIFlags (flags), sizeInBits, alignInBits,
@@ -294,21 +289,16 @@ MlirAttribute mlirLLVMDISubroutineTypeAttrGet(MlirContext ctx,
294
289
[](Attribute a) { return cast<DITypeAttr>(a); })));
295
290
}
296
291
297
- MlirAttribute mlirLLVMDISubprogramAttrGetRecSelf (MlirAttribute recId) {
298
- return wrap (DISubprogramAttr::getRecSelf (cast<DistinctAttr>(unwrap (recId))));
299
- }
300
-
301
292
MlirAttribute mlirLLVMDISubprogramAttrGet (
302
- MlirContext ctx, MlirAttribute recId, bool isRecSelf, MlirAttribute id ,
303
- MlirAttribute compileUnit , MlirAttribute scope , MlirAttribute name ,
304
- MlirAttribute linkageName, MlirAttribute file , unsigned int line ,
305
- unsigned int scopeLine, uint64_t subprogramFlags, MlirAttribute type,
306
- intptr_t nRetainedNodes, MlirAttribute const *retainedNodes) {
293
+ MlirContext ctx, MlirAttribute id, MlirAttribute compileUnit ,
294
+ MlirAttribute scope , MlirAttribute name , MlirAttribute linkageName ,
295
+ MlirAttribute file, unsigned int line , unsigned int scopeLine ,
296
+ uint64_t subprogramFlags, MlirAttribute type, intptr_t nRetainedNodes ,
297
+ MlirAttribute const *retainedNodes) {
307
298
SmallVector<Attribute> nodesStorage;
308
299
nodesStorage.reserve (nRetainedNodes);
309
300
return wrap (DISubprogramAttr::get (
310
- unwrap (ctx), cast<DistinctAttr>(unwrap (recId)), isRecSelf,
311
- cast<DistinctAttr>(unwrap (id)),
301
+ unwrap (ctx), cast<DistinctAttr>(unwrap (id)),
312
302
cast<DICompileUnitAttr>(unwrap (compileUnit)),
313
303
cast<DIScopeAttr>(unwrap (scope)), cast<StringAttr>(unwrap (name)),
314
304
cast<StringAttr>(unwrap (linkageName)), cast<DIFileAttr>(unwrap (file)),
@@ -363,15 +353,14 @@ MlirAttribute mlirLLVMDIModuleAttrGetScope(MlirAttribute diModule) {
363
353
}
364
354
365
355
MlirAttribute mlirLLVMDIImportedEntityAttrGet (
366
- MlirContext ctx, unsigned int tag, MlirAttribute scope ,
367
- MlirAttribute entity , MlirAttribute file, unsigned int line ,
368
- MlirAttribute name, intptr_t nElements, MlirAttribute const *elements) {
356
+ MlirContext ctx, unsigned int tag, MlirAttribute entity, MlirAttribute file ,
357
+ unsigned int line , MlirAttribute name, intptr_t nElements ,
358
+ MlirAttribute const *elements) {
369
359
SmallVector<Attribute> elementsStorage;
370
360
elementsStorage.reserve (nElements);
371
361
return wrap (DIImportedEntityAttr::get (
372
- unwrap (ctx), tag, cast<DIScopeAttr>(unwrap (scope)),
373
- cast<DINodeAttr>(unwrap (entity)), cast<DIFileAttr>(unwrap (file)), line,
374
- cast<StringAttr>(unwrap (name)),
362
+ unwrap (ctx), tag, cast<DINodeAttr>(unwrap (entity)),
363
+ cast<DIFileAttr>(unwrap (file)), line, cast<StringAttr>(unwrap (name)),
375
364
llvm::map_to_vector (unwrapList (nElements, elements, elementsStorage),
376
365
[](Attribute a) { return cast<DINodeAttr>(a); })));
377
366
}
0 commit comments