1
1
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
2
2
; RUN: opt < %s -S | FileCheck %s
3
3
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"
8
5
9
- ; Function Attrs: noinline nounwind optnone uwtable
10
- define dso_local void @f() #0 !dbg !10 {
6
+ define dso_local void @f() !dbg !10 {
11
7
; CHECK-LABEL: @f(
12
8
; CHECK-NEXT: entry:
13
9
; CHECK-NEXT: ret void, !dbg [[DBG14:![0-9]+]]
@@ -16,31 +12,27 @@ entry:
16
12
ret void, !dbg !14
17
13
}
18
14
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
-
21
15
!llvm.dbg.cu = !{!0}
22
16
!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8}
23
17
!llvm.ident = !{!9}
24
18
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")
27
21
!2 = !{i32 7, !"Dwarf Version", i32 5}
28
22
!3 = !{i32 2, !"Debug Info Version", i32 3}
29
23
!4 = !{i32 1, !"wchar_size", i32 4}
30
24
!5 = !{i32 8, !"PIC Level", i32 2}
31
25
!6 = !{i32 7, !"PIE Level", i32 2}
32
26
!7 = !{i32 7, !"uwtable", i32 2}
33
27
!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"}
35
29
!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")
37
31
!12 = !DISubroutineType(types: !13)
38
32
!13 = !{null}
39
33
!14 = !DILocation(line: 1, column: 11, scope: !10)
40
34
;.
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)
44
36
; CHECK: [[META1]] = !DIFile(filename: "{{.*}}foo.c", directory: {{.*}})
45
37
; CHECK: [[META2:![0-9]+]] = !{i32 7, !"Dwarf Version", i32 5}
46
38
; 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
49
41
; CHECK: [[META6:![0-9]+]] = !{i32 7, !"PIE Level", i32 2}
50
42
; CHECK: [[META7:![0-9]+]] = !{i32 7, !"uwtable", i32 2}
51
43
; CHECK: [[META8:![0-9]+]] = !{i32 7, !"frame-pointer", i32 2}
52
- ; CHECK: [[META9:![0-9]+]] = !{!"{{.*}} clang version {{.*}} "}
44
+ ; CHECK: [[META9:![0-9]+]] = !{!"clang"}
53
45
; 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]])
54
46
; CHECK: [[META11]] = !DIFile(filename: "{{.*}}foo.c", directory: {{.*}})
55
47
; CHECK: [[META12]] = !DISubroutineType(types: [[META13:![0-9]+]])
0 commit comments