Skip to content

[MLIR][LLVM] Fix import split marker in alias test #127540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mlir/test/Target/LLVMIR/Import/alias.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ entry:
ret ptr null
}

; -----
; // -----

@zed = global i32 42
@foo = alias i32, ptr @zed
Expand All @@ -27,7 +27,7 @@ entry:
; CHECK: llvm.return %[[ADDR]] : !llvm.ptr
; CHECK: }

; -----
; // -----

@v1 = global i32 0
@a3 = alias i32, addrspacecast (ptr @v1 to ptr addrspace(2))
Expand All @@ -37,7 +37,7 @@ entry:
; CHECK: llvm.return %[[CASTED_ADDR]] : !llvm.ptr<2>
; CHECK: }

; -----
; // -----

@some_name = constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr null, ptr null] }
@vtable = alias { [3 x ptr] }, ptr @some_name
Expand All @@ -47,7 +47,7 @@ entry:
; CHECK: llvm.return %[[ADDR]] : !llvm.ptr
; CHECK: }

; -----
; // -----

@glob.private = private constant [32 x i32] zeroinitializer
@glob = linkonce_odr hidden alias [32 x i32], inttoptr (i64 add (i64 ptrtoint (ptr @glob.private to i64), i64 1234) to ptr)
Expand All @@ -60,7 +60,7 @@ entry:
; CHECK: %[[RET:.*]] = llvm.inttoptr %[[INTTOPTR]] : i64 to !llvm.ptr
; CHECK: llvm.return %[[RET]] : !llvm.ptr

; -----
; // -----

@g1 = private global i32 0
@g2 = internal constant ptr @a1
Expand Down