Skip to content

Commit 2c95bb2

Browse files
committed
Remove extraneous details from test case
1 parent af8184f commit 2c95bb2

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
; RUN: opt < %s -S | FileCheck %s
22

3-
; ModuleID = '/home/slinder1/llvm-project/foo.c'
4-
source_filename = "/home/slinder1/llvm-project/foo.c"
5-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
6-
target triple = "x86_64-unknown-linux-gnu"
3+
source_filename = "/llvm-project/foo.c"
74

8-
; Function Attrs: noinline nounwind optnone uwtable
9-
define dso_local void @f() #0 !dbg !10 {
5+
define dso_local void @f() !dbg !10 {
106
entry:
117
ret void, !dbg !14
128
}
139

14-
attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
15-
1610
!llvm.dbg.cu = !{!0}
1711
!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8}
1812
!llvm.ident = !{!9}
1913

20-
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 21.0.0git ([email protected]:AMD-Lightning-Internal/llvm-project ff31c4b867df0c606fba26eb1ec93996fc5f5920)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
21-
!1 = !DIFile(filename: "/home/slinder1/llvm-project/foo.c", directory: "/home/slinder1/llvm-project/amd-staging", checksumkind: CSK_MD5, checksum: "e6ab1d5b7f82464c963a8522037dfa72")
14+
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
15+
!1 = !DIFile(filename: "/llvm-project/foo.c", directory: "/llvm-project")
2216
!2 = !{i32 7, !"Dwarf Version", i32 5}
2317
!3 = !{i32 2, !"Debug Info Version", i32 3}
2418
!4 = !{i32 1, !"wchar_size", i32 4}
2519
!5 = !{i32 8, !"PIC Level", i32 2}
2620
!6 = !{i32 7, !"PIE Level", i32 2}
2721
!7 = !{i32 7, !"uwtable", i32 2}
2822
!8 = !{i32 7, !"frame-pointer", i32 2}
29-
!9 = !{!"clang version 21.0.0git ([email protected]:AMD-Lightning-Internal/llvm-project ff31c4b867df0c606fba26eb1ec93996fc5f5920)"}
23+
!9 = !{!"clang"}
3024
!10 = distinct !DISubprogram(name: "f", scope: !11, file: !11, line: 1, type: !12, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0)
31-
!11 = !DIFile(filename: "foo.c", directory: "/home/slinder1/llvm-project", checksumkind: CSK_MD5, checksum: "e6ab1d5b7f82464c963a8522037dfa72")
25+
!11 = !DIFile(filename: "foo.c", directory: "/llvm-project")
3226
!12 = !DISubroutineType(types: !13)
3327
!13 = !{null}
3428
!14 = !DILocation(line: 1, column: 11, scope: !10)

llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/difile_absolute_filenames.ll.expected

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
22
; RUN: opt < %s -S | FileCheck %s
33

4-
; ModuleID = '/home/slinder1/llvm-project/foo.c'
5-
source_filename = "/home/slinder1/llvm-project/foo.c"
6-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
7-
target triple = "x86_64-unknown-linux-gnu"
4+
source_filename = "/llvm-project/foo.c"
85

9-
; Function Attrs: noinline nounwind optnone uwtable
10-
define dso_local void @f() #0 !dbg !10 {
6+
define dso_local void @f() !dbg !10 {
117
; CHECK-LABEL: @f(
128
; CHECK-NEXT: entry:
139
; CHECK-NEXT: ret void, !dbg [[DBG14:![0-9]+]]
@@ -16,31 +12,27 @@ entry:
1612
ret void, !dbg !14
1713
}
1814

19-
attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
20-
2115
!llvm.dbg.cu = !{!0}
2216
!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8}
2317
!llvm.ident = !{!9}
2418

25-
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 21.0.0git ([email protected]:AMD-Lightning-Internal/llvm-project ff31c4b867df0c606fba26eb1ec93996fc5f5920)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
26-
!1 = !DIFile(filename: "/home/slinder1/llvm-project/foo.c", directory: "/home/slinder1/llvm-project/amd-staging", checksumkind: CSK_MD5, checksum: "e6ab1d5b7f82464c963a8522037dfa72")
19+
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
20+
!1 = !DIFile(filename: "/llvm-project/foo.c", directory: "/llvm-project")
2721
!2 = !{i32 7, !"Dwarf Version", i32 5}
2822
!3 = !{i32 2, !"Debug Info Version", i32 3}
2923
!4 = !{i32 1, !"wchar_size", i32 4}
3024
!5 = !{i32 8, !"PIC Level", i32 2}
3125
!6 = !{i32 7, !"PIE Level", i32 2}
3226
!7 = !{i32 7, !"uwtable", i32 2}
3327
!8 = !{i32 7, !"frame-pointer", i32 2}
34-
!9 = !{!"clang version 21.0.0git ([email protected]:AMD-Lightning-Internal/llvm-project ff31c4b867df0c606fba26eb1ec93996fc5f5920)"}
28+
!9 = !{!"clang"}
3529
!10 = distinct !DISubprogram(name: "f", scope: !11, file: !11, line: 1, type: !12, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0)
36-
!11 = !DIFile(filename: "foo.c", directory: "/home/slinder1/llvm-project", checksumkind: CSK_MD5, checksum: "e6ab1d5b7f82464c963a8522037dfa72")
30+
!11 = !DIFile(filename: "foo.c", directory: "/llvm-project")
3731
!12 = !DISubroutineType(types: !13)
3832
!13 = !{null}
3933
!14 = !DILocation(line: 1, column: 11, scope: !10)
4034
;.
41-
; CHECK: attributes #[[ATTR0:[0-9]+]] = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
42-
;.
43-
; CHECK: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C11, file: [[META1:![0-9]+]], producer: "{{.*}}clang version {{.*}}", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
35+
; CHECK: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C11, file: [[META1:![0-9]+]], producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
4436
; CHECK: [[META1]] = !DIFile(filename: "{{.*}}foo.c", directory: {{.*}})
4537
; CHECK: [[META2:![0-9]+]] = !{i32 7, !"Dwarf Version", i32 5}
4638
; CHECK: [[META3:![0-9]+]] = !{i32 2, !"Debug Info Version", i32 3}
@@ -49,7 +41,7 @@ attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-l
4941
; CHECK: [[META6:![0-9]+]] = !{i32 7, !"PIE Level", i32 2}
5042
; CHECK: [[META7:![0-9]+]] = !{i32 7, !"uwtable", i32 2}
5143
; CHECK: [[META8:![0-9]+]] = !{i32 7, !"frame-pointer", i32 2}
52-
; CHECK: [[META9:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"}
44+
; CHECK: [[META9:![0-9]+]] = !{!"clang"}
5345
; CHECK: [[META10:![0-9]+]] = distinct !DISubprogram(name: "f", scope: [[META11:![0-9]+]], file: [[META11]], line: 1, type: [[META12:![0-9]+]], scopeLine: 1, spFlags: DISPFlagDefinition, unit: [[META0]])
5446
; CHECK: [[META11]] = !DIFile(filename: "{{.*}}foo.c", directory: {{.*}})
5547
; CHECK: [[META12]] = !DISubroutineType(types: [[META13:![0-9]+]])

0 commit comments

Comments
 (0)