Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions llvm/test/CodeGen/BPF/BTF/binary-format.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
; clang -target bpf -O2 -g -gdwarf-5 -gembed-source -S -emit-llvm t.c

; Function Attrs: nounwind readnone
define dso_local i32 @f(i32 returned %a) local_unnamed_addr #0 !dbg !7 {
define dso_local i32 @f(i32 returned %a) local_unnamed_addr !dbg !7 {
entry:
call void @llvm.dbg.value(metadata i32 %a, metadata !12, metadata !DIExpression()), !dbg !13
ret i32 %a, !dbg !14
Expand Down Expand Up @@ -42,10 +42,7 @@ entry:
; CHECK-EB: 0x00000050 00000008 0000000f 00000018 00000410

; Function Attrs: nounwind readnone speculatable
declare void @llvm.dbg.value(metadata, metadata, metadata) #1

attributes #0 = { nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { nounwind readnone speculatable }
declare void @llvm.dbg.value(metadata, metadata, metadata)

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
Expand Down
11 changes: 4 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/builtin-btf-type-id.ll
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@bpf_log = internal global ptr inttoptr (i64 999 to ptr), align 8, !dbg !17

; Function Attrs: nounwind
define dso_local void @prog1() #0 !dbg !28 {
define dso_local void @prog1() !dbg !28 {
entry:
%0 = load ptr, ptr @bpf_log, align 8, !dbg !31, !tbaa !32
%1 = call i64 @llvm.bpf.btf.type.id(i32 0, i64 0), !dbg !36, !llvm.preserve.access.index !7
Expand All @@ -33,10 +33,10 @@ entry:
}

; Function Attrs: nounwind readnone
declare i64 @llvm.bpf.btf.type.id(i32, i64) #1
declare i64 @llvm.bpf.btf.type.id(i32, i64)

; Function Attrs: nounwind
define dso_local void @prog2() #0 !dbg !38 {
define dso_local void @prog2() !dbg !38 {
entry:
%0 = load ptr, ptr @bpf_log, align 8, !dbg !39, !tbaa !32
%1 = call i64 @llvm.bpf.btf.type.id(i32 1, i64 0), !dbg !40, !llvm.preserve.access.index !6
Expand All @@ -45,7 +45,7 @@ entry:
}

; Function Attrs: nounwind
define dso_local void @prog3() #0 !dbg !42 {
define dso_local void @prog3() !dbg !42 {
entry:
%0 = load ptr, ptr @bpf_log, align 8, !dbg !43, !tbaa !32
%1 = call i64 @llvm.bpf.btf.type.id(i32 2, i64 1), !dbg !44, !llvm.preserve.access.index !11
Expand Down Expand Up @@ -96,9 +96,6 @@ entry:
; CHECK-NEXT: .long 48
; CHECK-NEXT: .long 7

attributes #0 = { nounwind "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { nounwind readnone }

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!24, !25, !26}
!llvm.ident = !{!27}
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/CodeGen/BPF/BTF/char-no-debuginfo.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@
@g = dso_local local_unnamed_addr global i32 5, section "maps", align 4

; Function Attrs: norecurse nounwind readonly
define dso_local i32 @test() local_unnamed_addr #0 {
define dso_local i32 @test() local_unnamed_addr {
%1 = load i32, ptr @g, align 4, !tbaa !2
ret i32 %1
}

; CHECK-NOT: .section .BTF
; CHECK-NOT: .section .BTF.ext

attributes #0 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.module.flags = !{!0}
!llvm.ident = !{!1}

Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-builtin.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
; clang -target bpf -O2 -g -S -emit-llvm test.c

; Function Attrs: nounwind readonly
define dso_local i64 @test(ptr readonly %skb) local_unnamed_addr #0 !dbg !13 {
define dso_local i64 @test(ptr readonly %skb) local_unnamed_addr !dbg !13 {
entry:
call void @llvm.dbg.value(metadata ptr %skb, metadata !17, metadata !DIExpression()), !dbg !18
%call = tail call i64 @llvm.bpf.load.byte(ptr %skb, i64 10), !dbg !19
Expand Down Expand Up @@ -54,13 +54,9 @@ entry:
; CHECK-NEXT: .byte 0

; Function Attrs: nounwind readonly
declare !dbg !4 i64 @llvm.bpf.load.byte(ptr, i64) #1
declare !dbg !4 i64 @llvm.bpf.load.byte(ptr, i64)
; Function Attrs: nounwind readnone speculatable willreturn
declare void @llvm.dbg.value(metadata, metadata, metadata) #2

attributes #0 = { nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { nounwind readonly }
attributes #2 = { nounwind readnone speculatable willreturn }
declare void @llvm.dbg.value(metadata, metadata, metadata)

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10, !11}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-func-arg.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
; clang -target bpf -O2 -g -S -emit-llvm test.c

; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !13 {
define dso_local i32 @test() local_unnamed_addr !dbg !13 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !16
%call = tail call i32 @global_func(i8 signext 0), !dbg !16
ret i32 %call, !dbg !17
}

Expand Down Expand Up @@ -49,11 +49,7 @@ entry:
; CHECK: .ascii "char" # string offset=55
; CHECK: .ascii "global_func" # string offset=60

declare !dbg !4 dso_local i32 @global_func(i8 signext) local_unnamed_addr #1

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }
declare !dbg !4 dso_local i32 @global_func(i8 signext) local_unnamed_addr

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10, !11}
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/CodeGen/BPF/BTF/extern-global-var.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@a = external dso_local local_unnamed_addr global i8, align 1

; Function Attrs: norecurse nounwind readonly
define dso_local i32 @foo() local_unnamed_addr #0 !dbg !7 {
define dso_local i32 @foo() local_unnamed_addr !dbg !7 {
%1 = load i8, ptr @a, align 1, !dbg !11, !tbaa !12
%2 = sext i8 %1 to i32, !dbg !11
ret i32 %2, !dbg !15
Expand Down Expand Up @@ -45,8 +45,6 @@ define dso_local i32 @foo() local_unnamed_addr #0 !dbg !7 {
; CHECK-NEXT: .ascii "/home/yhs/work/tests/llvm/bug/test.c" # string offset=15
; CHECK-NEXT: .byte 0

attributes #0 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-var-func-weak-section.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
; clang -target bpf -O2 -g -S -emit-llvm test.c

; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !13 {
define dso_local i32 @test() local_unnamed_addr !dbg !13 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !16
%call = tail call i32 @global_func(i8 signext 0), !dbg !16
ret i32 %call, !dbg !17
}
declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr #1 section "abc"
declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr section "abc"

; CHECK: .section .BTF,"",@progbits
; CHECK-NEXT: .short 60319 # 0xeb9f
Expand Down Expand Up @@ -69,10 +69,6 @@ declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .ascii "abc" # string offset=72

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10, !11}
!llvm.ident = !{!12}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-var-func-weak.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
; clang -target bpf -O2 -g -S -emit-llvm test.c

; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !13 {
define dso_local i32 @test() local_unnamed_addr !dbg !13 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !16
%call = tail call i32 @global_func(i8 signext 0), !dbg !16
ret i32 %call, !dbg !17
}
declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr #1
declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr

; CHECK: .section .BTF,"",@progbits
; CHECK-NEXT: .short 60319 # 0xeb9f
Expand Down Expand Up @@ -62,10 +62,6 @@ declare !dbg !4 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed
; CHECK-NEXT: .ascii "global_func" # string offset=60
; CHECK-NEXT: .byte 0

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10, !11}
!llvm.ident = !{!12}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-var-func.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
; clang -target bpf -O2 -g -S -emit-llvm test.c

; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !13 {
define dso_local i32 @test() local_unnamed_addr !dbg !13 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !16
%call = tail call i32 @global_func(i8 signext 0), !dbg !16
ret i32 %call, !dbg !17
}

Expand Down Expand Up @@ -61,11 +61,7 @@ entry:
; CHECK-NEXT: .ascii "global_func" # string offset=60
; CHECK-NEXT: .byte 0

declare !dbg !4 dso_local i32 @global_func(i8 signext) local_unnamed_addr #1

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }
declare !dbg !4 dso_local i32 @global_func(i8 signext) local_unnamed_addr

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!9, !10, !11}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-var-section.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
@ch = external dso_local local_unnamed_addr global i8, section "abc", align 1, !dbg !0

; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !16 {
define dso_local i32 @test() local_unnamed_addr !dbg !16 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !19
%call = tail call i32 @global_func(i8 signext 0), !dbg !19
%0 = load i8, ptr @ch, align 1, !dbg !20, !tbaa !21
%conv = sext i8 %0 to i32, !dbg !20
%add = add nsw i32 %call, %conv, !dbg !24
Expand Down Expand Up @@ -84,11 +84,7 @@ entry:
; CHECK-NEXT: .ascii "abc" # string offset=75
; CHECK-NEXT: .byte 0

declare !dbg !6 dso_local i32 @global_func(i8 signext) local_unnamed_addr #1 section "abc"

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }
declare !dbg !6 dso_local i32 @global_func(i8 signext) local_unnamed_addr section "abc"

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!12, !13, !14}
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/CodeGen/BPF/BTF/extern-var-struct-weak.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@global = extern_weak dso_local local_unnamed_addr global %struct.t1, align 4, !dbg !0
; Function Attrs: norecurse nounwind readonly
define dso_local i32 @test() local_unnamed_addr #0 !dbg !15 {
define dso_local i32 @test() local_unnamed_addr !dbg !15 {
entry:
%0 = load i32, ptr @global, align 4, !dbg !18, !tbaa !19
ret i32 %0, !dbg !24
Expand Down Expand Up @@ -68,8 +68,6 @@ entry:
; CHECK-NEXT: .ascii "global" # string offset=66
; CHECK-NEXT: .byte 0

attributes #0 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!11, !12, !13}
!llvm.ident = !{!14}
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/CodeGen/BPF/BTF/extern-var-struct.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@global = external dso_local local_unnamed_addr global %struct.t1, align 4, !dbg !0

; Function Attrs: norecurse nounwind readonly
define dso_local i32 @test() local_unnamed_addr #0 !dbg !15 {
define dso_local i32 @test() local_unnamed_addr !dbg !15 {
entry:
%0 = load i32, ptr @global, align 4, !dbg !18, !tbaa !19
ret i32 %0, !dbg !24
Expand Down Expand Up @@ -69,8 +69,6 @@ entry:
; CHECK-NEXT: .ascii "global" # string offset=66
; CHECK-NEXT: .byte 0

attributes #0 = { norecurse nounwind readonly "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!11, !12, !13}
!llvm.ident = !{!14}
Expand Down
10 changes: 3 additions & 7 deletions llvm/test/CodeGen/BPF/BTF/extern-var-weak-section.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

@ch = extern_weak dso_local local_unnamed_addr global i8, section "abc", align 1, !dbg !0
; Function Attrs: nounwind
define dso_local i32 @test() local_unnamed_addr #0 !dbg !16 {
define dso_local i32 @test() local_unnamed_addr !dbg !16 {
entry:
%call = tail call i32 @global_func(i8 signext 0) #2, !dbg !19
%call = tail call i32 @global_func(i8 signext 0), !dbg !19
%0 = load i8, ptr @ch, align 1, !dbg !20, !tbaa !21
%conv = sext i8 %0 to i32, !dbg !20
%add = add nsw i32 %call, %conv, !dbg !24
ret i32 %add, !dbg !25
}
declare !dbg !6 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr #1 section "abc"
declare !dbg !6 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed_addr section "abc"

; CHECK: .section .BTF,"",@progbits
; CHECK-NEXT: .short 60319 # 0xeb9f
Expand Down Expand Up @@ -84,10 +84,6 @@ declare !dbg !6 extern_weak dso_local i32 @global_func(i8 signext) local_unnamed
; CHECK-NEXT: .ascii "abc" # string offset=75
; CHECK-NEXT: .byte 0

attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }

!llvm.dbg.cu = !{!2}
!llvm.module.flags = !{!12, !13, !14}
!llvm.ident = !{!15}
Expand Down
4 changes: 1 addition & 3 deletions llvm/test/CodeGen/BPF/BTF/filename.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
; clang -target bpf -O2 -g -S -emit-llvm t.c

; Function Attrs: norecurse nounwind readnone uwtable
define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 {
define dso_local i32 @test() local_unnamed_addr !dbg !7 {
ret i32 0, !dbg !11
}

Expand Down Expand Up @@ -63,8 +63,6 @@ define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 {
; CHECK-NEXT: .long 0
; CHECK-NEXT: .long 1038 # Line 1 Col 14

attributes #0 = { norecurse nounwind readnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }

!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}
Expand Down
Loading