Skip to content

Commit 67be64d

Browse files
committed
handle merge
1 parent 635a8f5 commit 67be64d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

mlir/include/mlir-c/Dialect/LLVM.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ MLIR_CAPI_EXPORTED MlirAttribute mlirLLVMDIBasicTypeAttrGet(
229229

230230
/// Creates a LLVM DICompositeType attribute.
231231
MLIR_CAPI_EXPORTED MlirAttribute mlirLLVMDICompositeTypeAttrGet(
232-
MlirContext ctx, unsigned int tag, MlirAttribute name, MlirAttribute file,
233-
uint32_t line, MlirAttribute scope, MlirAttribute baseType, int64_t flags,
234-
uint64_t sizeInBits, uint64_t alignInBits, intptr_t nElements,
235-
MlirAttribute const *elements);
232+
MlirContext ctx, unsigned int tag, MlirAttribute recId, MlirAttribute name,
233+
MlirAttribute file, uint32_t line, MlirAttribute scope,
234+
MlirAttribute baseType, int64_t flags, uint64_t sizeInBits,
235+
uint64_t alignInBits, intptr_t nElements, MlirAttribute const *elements);
236236

237237
/// Creates a LLVM DIDerivedType attribute.
238238
MLIR_CAPI_EXPORTED MlirAttribute mlirLLVMDIDerivedTypeAttrGet(

mlir/lib/CAPI/Dialect/LLVM.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@ MlirAttribute mlirLLVMDIBasicTypeAttrGet(MlirContext ctx, unsigned int tag,
152152
}
153153

154154
MlirAttribute mlirLLVMDICompositeTypeAttrGet(
155-
MlirContext ctx, unsigned int tag, MlirAttribute name, MlirAttribute file,
156-
uint32_t line, MlirAttribute scope, MlirAttribute baseType, int64_t flags,
157-
uint64_t sizeInBits, uint64_t alignInBits, intptr_t nElements,
158-
MlirAttribute const *elements) {
155+
MlirContext ctx, unsigned int tag, MlirAttribute recId, MlirAttribute name,
156+
MlirAttribute file, uint32_t line, MlirAttribute scope,
157+
MlirAttribute baseType, int64_t flags, uint64_t sizeInBits,
158+
uint64_t alignInBits, intptr_t nElements, MlirAttribute const *elements) {
159159
SmallVector<Attribute> elementsStorage;
160160
elementsStorage.reserve(nElements);
161161

162162
return wrap(DICompositeTypeAttr::get(
163-
unwrap(ctx), tag, cast<StringAttr>(unwrap(name)),
164-
cast<DIFileAttr>(unwrap(file)), line, cast<DIScopeAttr>(unwrap(scope)),
165-
cast<DITypeAttr>(unwrap(baseType)), DIFlags(flags), sizeInBits,
166-
alignInBits,
163+
unwrap(ctx), tag, cast<DistinctAttr>(unwrap(recId)),
164+
cast<StringAttr>(unwrap(name)), cast<DIFileAttr>(unwrap(file)), line,
165+
cast<DIScopeAttr>(unwrap(scope)), cast<DITypeAttr>(unwrap(baseType)),
166+
DIFlags(flags), sizeInBits, alignInBits,
167167
llvm::map_to_vector(unwrapList(nElements, elements, elementsStorage),
168168
[](Attribute a) { return a.cast<DINodeAttr>(); })));
169169
}

mlir/test/CAPI/llvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static void testDebugInfoAttributes(MlirContext ctx) {
301301

302302
// CHECK: #llvm.di_composite_type<{{.*}}>
303303
mlirAttributeDump(mlirLLVMDICompositeTypeAttrGet(
304-
ctx, 0, foo, file, 1, compile_unit, di_type, 0, 64, 8, 1, &di_type));
304+
ctx, 0, id, foo, file, 1, compile_unit, di_type, 0, 64, 8, 1, &di_type));
305305

306306
MlirAttribute subroutine_type =
307307
mlirLLVMDISubroutineTypeAttrGet(ctx, 0x0, 1, &di_type);

0 commit comments

Comments
 (0)