Debian Codegraph @

llvm/test/CodeGen/BPF/BTF/char-no-debuginfo.ll

raw
1 ; RUN: llc -mtriple=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
2 ; RUN: llc -mtriple=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
3
4 ; Source code:
5 ; int g __attribute__((section("maps"))) = 5;
6 ; int test() { return g; }
7 ; Compilation flag:
8 ; clang -target bpf -O2 -S -emit-llvm t.c
9
10 @g = dso_local local_unnamed_addr global i32 5, section "maps", align 4
11
12 ; Function Attrs: norecurse nounwind readonly
13 define dso_local i32 @test() local_unnamed_addr {
14 %1 = load i32, ptr @g, align 4, !tbaa !2
15 ret i32 %1
16 }
17
18 ; CHECK-NOT: .section .BTF
19 ; CHECK-NOT: .section .BTF.ext
20
21 !llvm.module.flags = !{!0}
22 !llvm.ident = !{!1}
23
24 !0 = !{i32 1, !"wchar_size", i32 4}
25 !1 = !{!"clang version 8.0.20181009 "}
26 !2 = !{!3, !3, i64 0}
27 !3 = !{!"int", !4, i64 0}
28 !4 = !{!"omnipotent char", !5, i64 0}
29 !5 = !{!"Simple C/C++ TBAA"}