From: Nikita Popov Date: Tue, 17 Jan 2023 09:35:31 +0000 (+0100) Subject: [MLIR] Convert test to opaque pointers (NFC) X-Git-Tag: upstream/17.0.6~20739 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=546b710c10fa6cd7eee4bafb80c9cd191f1bd75d;p=platform%2Fupstream%2Fllvm.git [MLIR] Convert test to opaque pointers (NFC) --- diff --git a/mlir/test/Target/LLVMIR/Import/global-variables.ll b/mlir/test/Target/LLVMIR/Import/global-variables.ll index 3e6e810..5e68de9 100644 --- a/mlir/test/Target/LLVMIR/Import/global-variables.ll +++ b/mlir/test/Target/LLVMIR/Import/global-variables.ll @@ -13,16 +13,16 @@ @global_float = external global double, align 8 ; CHECK: llvm.mlir.global internal constant @address_before -; CHECK: = llvm.mlir.addressof @global_int : !llvm.ptr -@address_before = internal constant i32* @global_int +; CHECK: = llvm.mlir.addressof @global_int : !llvm.ptr +@address_before = internal constant ptr @global_int ; CHECK: llvm.mlir.global external @global_int ; CHECK-SAME: {addr_space = 0 : i32, alignment = 8 : i64} : i32 @global_int = external global i32, align 8 ; CHECK: llvm.mlir.global internal constant @address_after -; CHECK: = llvm.mlir.addressof @global_int : !llvm.ptr -@address_after = internal constant i32* @global_int +; CHECK: = llvm.mlir.addressof @global_int : !llvm.ptr +@address_after = internal constant ptr @global_int ; CHECK: llvm.mlir.global internal @global_string("hello world") @global_string = internal global [11 x i8] c"hello world" @@ -32,13 +32,13 @@ @global_vector = external global <8 x i32> ; CHECK: llvm.mlir.global internal constant @global_gep_const_expr -; CHECK-SAME: {addr_space = 0 : i32, dso_local} : !llvm.ptr { -; CHECK: %[[ADDR:[0-9]+]] = llvm.mlir.addressof @global_int : !llvm.ptr +; CHECK-SAME: {addr_space = 0 : i32, dso_local} : !llvm.ptr { +; CHECK: %[[ADDR:[0-9]+]] = llvm.mlir.addressof @global_int : !llvm.ptr ; CHECK: %[[IDX:[0-9]+]] = llvm.mlir.constant(2 : i32) : i32 -; CHECK: %[[GEP:[0-9]+]] = llvm.getelementptr %[[ADDR]][%[[IDX]]] : (!llvm.ptr, i32) -> !llvm.ptr -; CHECK: llvm.return %[[GEP]] : !llvm.ptr +; CHECK: %[[GEP:[0-9]+]] = llvm.getelementptr %[[ADDR]][%[[IDX]]] : (!llvm.ptr, i32) -> !llvm.ptr +; CHECK: llvm.return %[[GEP]] : !llvm.ptr ; CHECK: } -@global_gep_const_expr = internal constant i32* getelementptr (i32, i32* @global_int, i32 2) +@global_gep_const_expr = internal constant ptr getelementptr (i32, ptr @global_int, i32 2) ; // -----