diff options
author | Nikita Popov <npopov@redhat.com> | 2024-02-05 13:56:59 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-02-05 13:56:59 +0100 |
commit | b31fffbc7f1e0491bf599e82b7195e320d26e140 (patch) | |
tree | b3b3ed227da35e8d2e80681d732b89a2a55d9ff9 /llvm/test/CodeGen/Thumb | |
parent | 7bdc80f35c325d148b1ddbdfce7dea8c6ba7af84 (diff) | |
download | llvm-b31fffbc7f1e0491bf599e82b7195e320d26e140.zip llvm-b31fffbc7f1e0491bf599e82b7195e320d26e140.tar.gz llvm-b31fffbc7f1e0491bf599e82b7195e320d26e140.tar.bz2 |
[ARM] Convert tests to opaque pointers (NFC)
Diffstat (limited to 'llvm/test/CodeGen/Thumb')
-rw-r--r-- | llvm/test/CodeGen/Thumb/PR36658.mir | 16 | ||||
-rw-r--r-- | llvm/test/CodeGen/Thumb/branch-to-return.ll | 8 | ||||
-rw-r--r-- | llvm/test/CodeGen/Thumb/tbb-reuse.mir | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/Thumb/PR36658.mir b/llvm/test/CodeGen/Thumb/PR36658.mir index 26721d6..e298663 100644 --- a/llvm/test/CodeGen/Thumb/PR36658.mir +++ b/llvm/test/CodeGen/Thumb/PR36658.mir @@ -26,12 +26,12 @@ declare i32 @foo2(i32) - declare i32 @foo3(i32*) + declare i32 @foo3(ptr) ; Function Attrs: nounwind optsize - define internal fastcc i32 @foo4(i32* nocapture %ignore_ptr) #0 { + define internal fastcc i32 @foo4(ptr nocapture %ignore_ptr) #0 { entry: - %call = tail call i32 @foo3(i32* undef) + %call = tail call i32 @foo3(ptr undef) switch i32 %call, label %sw.epilog [ i32 120, label %sw.bb i32 48, label %sw.bb73 @@ -62,7 +62,7 @@ br label %while.cond while.cond: ; preds = %while.cond, %sw.bb - %call5 = tail call i32 @foo3(i32* null) + %call5 = tail call i32 @foo3(ptr null) br label %while.cond sw.bb73: ; preds = %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry @@ -74,7 +74,7 @@ br label %while.body83 while.body83: ; preds = %while.body83.preheader, %while.body83 - %call87 = tail call i32 @foo3(i32* null) + %call87 = tail call i32 @foo3(ptr null) br label %while.body83 while.end88: ; preds = %sw.bb73 @@ -82,7 +82,7 @@ unreachable sw.bb91: ; preds = %entry - store i32 1, i32* %ignore_ptr, align 4 + store i32 1, ptr %ignore_ptr, align 4 br label %cleanup sw.bb93: ; preds = %entry @@ -110,7 +110,7 @@ br i1 undef, label %cleanup, label %if.then109 if.then109: ; preds = %sw.bb107 - %call110 = tail call i32 bitcast (i32 (...)* @foo1 to i32 (i8*, i32)*)(i8* undef, i32 %call) + %call110 = tail call i32 @foo1(ptr undef, i32 %call) unreachable sw.epilog: ; preds = %entry @@ -123,7 +123,7 @@ } ; Function Attrs: nounwind - declare void @llvm.stackprotector(i8*, i8**) #1 + declare void @llvm.stackprotector(ptr, ptr) #1 attributes #0 = { nounwind optsize } attributes #1 = { nounwind } diff --git a/llvm/test/CodeGen/Thumb/branch-to-return.ll b/llvm/test/CodeGen/Thumb/branch-to-return.ll index 5bfccc0..11e8add 100644 --- a/llvm/test/CodeGen/Thumb/branch-to-return.ll +++ b/llvm/test/CodeGen/Thumb/branch-to-return.ll @@ -3,7 +3,7 @@ ; Test the branch to return in BB4 is converted to return. -define i32 @foo(i32* %x, i32 %n) { +define i32 @foo(ptr %x, i32 %n) { ; CHECK-LABEL: foo: ; CHECK: @ %bb.0: @ %entry ; CHECK-NEXT: cmp r1, #1 @@ -47,7 +47,7 @@ for.body.preheader: ; preds = %entry br i1 %min.iters.check, label %for.body.preheader1, label %middle.block middle.block: - %x3 = load i32, i32* %x, align 4 + %x3 = load i32, ptr %x, align 4 %cmp.n = icmp eq i32 %n.vec, %n br i1 %cmp.n, label %for.cond.cleanup, label %for.body.preheader1 @@ -58,8 +58,8 @@ for.body.preheader1: ; preds = %middle.block, %for. for.body: ; preds = %for.body.preheader1, %for.body %i.08 = phi i32 [ %inc, %for.body ], [ %n.vec, %for.body.preheader1 ] %r.07 = phi i32 [ %add, %for.body ], [ %r.07.ph, %for.body.preheader1 ] - %arrayidx = getelementptr inbounds i32, i32* %x, i32 %i.08 - %v5 = load i32, i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds i32, ptr %x, i32 %i.08 + %v5 = load i32, ptr %arrayidx, align 4 %add = add nsw i32 %v5, %r.07 %inc = add nuw nsw i32 %i.08, 1 %exitcond = icmp eq i32 %inc, %n diff --git a/llvm/test/CodeGen/Thumb/tbb-reuse.mir b/llvm/test/CodeGen/Thumb/tbb-reuse.mir index b18a685..a085c31 100644 --- a/llvm/test/CodeGen/Thumb/tbb-reuse.mir +++ b/llvm/test/CodeGen/Thumb/tbb-reuse.mir @@ -49,7 +49,7 @@ } ; Function Attrs: nounwind - declare void @llvm.stackprotector(i8*, i8**) #0 + declare void @llvm.stackprotector(ptr, ptr) #0 attributes #0 = { nounwind } |