From: Nikita Popov Date: Tue, 13 Dec 2022 13:12:34 +0000 (+0100) Subject: [Assembler] Convert tests to opaque pointers (NFC) X-Git-Tag: upstream/17.0.6~24045 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75a479221b72c8b4827470485949cebf67d1c967;p=platform%2Fupstream%2Fllvm.git [Assembler] Convert tests to opaque pointers (NFC) Some tests are removed because the error conditions can no longer occur with opaque pointers. --- diff --git a/llvm/test/Assembler/2002-03-08-NameCollision.ll b/llvm/test/Assembler/2002-03-08-NameCollision.ll index 089d3fb..109f195 100644 --- a/llvm/test/Assembler/2002-03-08-NameCollision.ll +++ b/llvm/test/Assembler/2002-03-08-NameCollision.ll @@ -11,6 +11,6 @@ ; Fixed by delaying binding of variable names until _after_ the method symtab is ; created. ; -@X = global i32 4 ; [#uses=0] +@X = global i32 4 ; [#uses=0] -declare i32 @xxx(i32*) +declare i32 @xxx(ptr) diff --git a/llvm/test/Assembler/2002-03-08-NameCollision2.ll b/llvm/test/Assembler/2002-03-08-NameCollision2.ll index dc98a36..b784bd5 100644 --- a/llvm/test/Assembler/2002-03-08-NameCollision2.ll +++ b/llvm/test/Assembler/2002-03-08-NameCollision2.ll @@ -5,9 +5,9 @@ ; declaration for a method was found, that this would cause spurious conflicts ; to be detected between locals and globals. ; -@Var = external global i32 ; [#uses=0] +@Var = external global i32 ; [#uses=0] define void @foo() { - %Var = alloca i32 ; [#uses=0] + %Var = alloca i32 ; [#uses=0] ret void } diff --git a/llvm/test/Assembler/2002-04-29-NameBinding.ll b/llvm/test/Assembler/2002-04-29-NameBinding.ll index b057eaa..20b28fb 100644 --- a/llvm/test/Assembler/2002-04-29-NameBinding.ll +++ b/llvm/test/Assembler/2002-04-29-NameBinding.ll @@ -13,7 +13,7 @@ define i32 @createtask() { %v1 = alloca i32 ;; Alloca should have one use! - %reg112 = load i32, i32* %v1 ;; This load should not use the global! + %reg112 = load i32, ptr %v1 ;; This load should not use the global! ret i32 %reg112 } diff --git a/llvm/test/Assembler/2002-07-14-OpaqueType.ll b/llvm/test/Assembler/2002-07-14-OpaqueType.ll index 6256aab6..e69efa1 100644 --- a/llvm/test/Assembler/2002-07-14-OpaqueType.ll +++ b/llvm/test/Assembler/2002-07-14-OpaqueType.ll @@ -5,7 +5,7 @@ %Ty = type opaque -define %Ty* @func() { - ret %Ty* null +define ptr @func() { + ret ptr null } diff --git a/llvm/test/Assembler/2002-07-25-QuoteInString.ll b/llvm/test/Assembler/2002-07-25-QuoteInString.ll index 15456806..a52de07 100644 --- a/llvm/test/Assembler/2002-07-25-QuoteInString.ll +++ b/llvm/test/Assembler/2002-07-25-QuoteInString.ll @@ -2,5 +2,5 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis ; ; RUN: verify-uselistorder %s -@str = internal global [6 x i8] c"\22foo\22\00" ; <[6 x i8]*> [#uses=0] +@str = internal global [6 x i8] c"\22foo\22\00" ; [#uses=0] diff --git a/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll b/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll index 0fb9d55..5717034 100644 --- a/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll +++ b/llvm/test/Assembler/2002-07-25-ReturnPtrFunction.ll @@ -4,10 +4,10 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as ; RUN: verify-uselistorder %s -declare void (i32)* @foo() +declare ptr @foo() define void @test() { - call void (i32)* () @foo( ) ; <%ty*>:1 [#uses=0] + call ptr () @foo( ) ; :1 [#uses=0] ret void } diff --git a/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll b/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll index 47a3f9c..49fada5 100644 --- a/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll +++ b/llvm/test/Assembler/2002-08-15-ConstantExprProblem.ll @@ -1,15 +1,15 @@ ; RUN: llvm-as %s -o /dev/null ; RUN: verify-uselistorder %s -@.LC0 = internal global [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1] +@.LC0 = internal global [12 x i8] c"hello world\00" ; [#uses=1] -define i8* @test() { +define ptr @test() { ;