Skip to content

Commit d22b24d

Browse files
committed
Address more comments.
1 parent 988d78e commit d22b24d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void printExpressionArg(AsmPrinter &printer, uint64_t opcode,
203203
DIRecursiveTypeAttrInterface
204204
DICompositeTypeAttr::withRecId(DistinctAttr recId) {
205205
return DICompositeTypeAttr::get(
206-
getContext(), recId, /*isRecSelf=*/false, getTag(), getName(), getFile(),
206+
getContext(), recId, getIsRecSelf(), getTag(), getName(), getFile(),
207207
getLine(), getScope(), getBaseType(), getFlags(), getSizeInBits(),
208208
getAlignInBits(), getElements(), getDataLocation(), getRank(),
209209
getAllocated(), getAssociated());
@@ -222,7 +222,7 @@ DICompositeTypeAttr::getRecSelf(DistinctAttr recId) {
222222

223223
DIRecursiveTypeAttrInterface DISubprogramAttr::withRecId(DistinctAttr recId) {
224224
return DISubprogramAttr::get(
225-
getContext(), recId, /*isRecSelf=*/false, getId(), getCompileUnit(),
225+
getContext(), recId, getIsRecSelf(), getId(), getCompileUnit(),
226226
getScope(), getName(), getLinkageName(), getFile(), getLine(),
227227
getScopeLine(), getSubprogramFlags(), getType(), getRetainedNodes());
228228
}

mlir/test/Target/LLVMIR/llvmir-debug.mlir

+3-3
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ llvm.func @func_debug_directives() {
448448
#di_compile_unit = #llvm.di_compile_unit<id = distinct[1]<>, sourceLanguage = DW_LANG_C, file = #di_file, isOptimized = false, emissionKind = None>
449449

450450
// Recursive type itself.
451-
#di_struct_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = false>
451+
#di_struct_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = true>
452452
#di_ptr_inner = #llvm.di_derived_type<tag = DW_TAG_pointer_type, baseType = #di_struct_self, sizeInBits = 64>
453453
#di_subroutine_inner = #llvm.di_subroutine_type<types = #di_null_type, #di_ptr_inner>
454454
#di_subprogram_inner = #llvm.di_subprogram<
@@ -502,7 +502,7 @@ llvm.func @class_method() {
502502

503503
// Ensures composite types with a recursive scope work.
504504

505-
#di_composite_type_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = false>
505+
#di_composite_type_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = true>
506506
#di_file = #llvm.di_file<"test.mlir" in "/">
507507
#di_subroutine_type = #llvm.di_subroutine_type<types = #di_composite_type_self>
508508
#di_subprogram = #llvm.di_subprogram<scope = #di_file, file = #di_file, subprogramFlags = Optimized, type = #di_subroutine_type>
@@ -525,7 +525,7 @@ llvm.mlir.global @global_variable() {dbg_expr = #di_global_variable_expression}
525525
// replaced with the recursive self reference.
526526

527527
#di_file = #llvm.di_file<"test.mlir" in "/">
528-
#di_composite_type_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = false>
528+
#di_composite_type_self = #llvm.di_composite_type<recId = distinct[0]<>, isRecSelf = true>
529529

530530
#di_subroutine_type_inner = #llvm.di_subroutine_type<types = #di_composite_type_self>
531531
#di_subprogram_inner = #llvm.di_subprogram<scope = #di_file, file = #di_file, subprogramFlags = Optimized, type = #di_subroutine_type_inner>

0 commit comments

Comments
 (0)