brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · d3be513 Raw
47 lines · plain
1; RUN: opt -passes=debugify --debugify-atoms -S -o - < %s \2; RUN: | FileCheck %s3 4;; Mirrors llvm/test/DebugInfo/debugify.ll5 6; CHECK-LABEL: define void @foo7define void @foo() {8; CHECK: ret void, !dbg ![[RET1:.*]]9  ret void10}11 12; CHECK-LABEL: define i32 @bar13define i32 @bar() {14; CHECK: call void @foo(), !dbg ![[CALL1:.*]]15  call void @foo()16 17; CHECK: add i32 0, 1, !dbg ![[ADD1:.*]]18  %sum = add i32 0, 119 20; CHECK: ret i32 0, !dbg ![[RET2:.*]]21  ret i32 022}23 24; CHECK-LABEL: define weak_odr zeroext i1 @baz25define weak_odr zeroext i1 @baz() {26; CHECK-NOT: !dbg27  ret i1 false28}29 30; CHECK-LABEL: define i32 @boom31define i32 @boom() {32; CHECK: [[result:%.*]] = musttail call i32 @bar(), !dbg ![[musttail:.*]]33  %retval = musttail call i32 @bar()34; CHECK-NEXT: ret i32 [[result]], !dbg ![[musttailRes:.*]]35  ret i32 %retval36}37 38; CHECK: distinct !DISubprogram(name: "foo", {{.*}}keyInstructions: true)39; CHECK-DAG: ![[RET1]] = !DILocation(line: 1, {{.*}}, atomGroup: 1, atomRank: 140; CHECK: distinct !DISubprogram(name: "bar", {{.*}}keyInstructions: true)41; CHECK-DAG: ![[CALL1]] = !DILocation(line: 2, {{.*}}, atomGroup: 2, atomRank: 142; CHECK-DAG: ![[ADD1]] = !DILocation(line: 3, {{.*}}, atomGroup: 3, atomRank: 143; CHECK-DAG: ![[RET2]] = !DILocation(line: 4, {{.*}}, atomGroup: 4, atomRank: 144; CHECK: distinct !DISubprogram(name: "boom", {{.*}}keyInstructions: true)45; CHECK-DAG: ![[musttail]] = !DILocation(line: 5, {{.*}}, atomGroup: 5, atomRank: 146; CHECK-DAG: ![[musttailRes]] = !DILocation(line: 6, {{.*}}, atomGroup: 6, atomRank: 147