[BugPoint] Convert tests to opaque pointers (NFC)
This commit is contained in:
@@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
|
||||
; Function Attrs: noinline nounwind optnone uwtable
|
||||
define dso_local i32 @main(i32 %argc, i8** %argv) local_unnamed_addr #0 {
|
||||
define dso_local i32 @main(i32 %argc, ptr %argv) local_unnamed_addr #0 {
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
; NOTYPE-NOT: !DIBasicType
|
||||
|
||||
%rust_task = type {}
|
||||
define void @test(i32* %a, i8* %b) !dbg !9 {
|
||||
define void @test(ptr %a, ptr %b) !dbg !9 {
|
||||
%s = mul i8 22, 9, !attach !0, !dbg !10
|
||||
store i8 %s, i8* %b, !attach !1, !dbg !11
|
||||
store i8 %s, ptr %b, !attach !1, !dbg !11
|
||||
call void @foo(), !attach !2, !dbg !12
|
||||
store i32 7, i32* %a, !attach !3, !dbg !13
|
||||
store i32 7, ptr %a, !attach !3, !dbg !13
|
||||
%t = add i32 0, 5, !attach !4, !dbg !14
|
||||
ret void
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
declare i32 @test2()
|
||||
|
||||
; CHECK: define void @test() {
|
||||
define i32 @test(i32 %A, %struct.anon* %B, float %C) {
|
||||
define i32 @test(i32 %A, ptr %B, float %C) {
|
||||
call i32 @test2()
|
||||
ret i32 %1
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
|
||||
; REQUIRES: plugins
|
||||
|
||||
@foo2 = alias i32 (), i32 ()* @foo
|
||||
@foo2 = alias i32 (), ptr @foo
|
||||
|
||||
define i32 @foo() { ret i32 1 }
|
||||
|
||||
@@ -14,4 +14,4 @@ define i32 @test() {
|
||||
|
||||
define i32 @bar() { ret i32 2 }
|
||||
|
||||
@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"
|
||||
@llvm.used = appending global [1 x ptr] [ptr @foo], section "llvm.metadata"
|
||||
|
||||
Reference in New Issue
Block a user