Files
clang-p2996/mlir/test/Target/LLVMIR/Import/global-struct.ll
Alexis Engelke 18439cfc14 [mlir][LLVMIR] Fix identified structs with same name
Different identified struct types may have the same name ("").
Previously, these were deduplicated based on their name, which caused
an assertion failure when nesting identified structs:

    %0 = type { %1 }
    %1 = type { i8 }
    declare void @fn(%0)

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D156531
2023-07-28 18:14:48 +02:00

9 lines
240 B
LLVM

; RUN: mlir-translate --import-llvm %s | FileCheck %s
; Ensure both structs have different names.
; CHECK: llvm.func @fn(!llvm.struct<"[[NAME:[^"]*]]",
; CHECK-NOT: struct<"[[NAME]]",
%0 = type { %1 }
%1 = type { i8 }
declare void @fn(%0)