Debian Codegraph @

llvm/test/CodeGen/BPF/BTF/empty-btf.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 test(int arg) { return arg; }
6 ; Compilation flag:
7 ; clang -target bpf -O2 -S -emit-llvm t.c
8
9 ; Function Attrs: norecurse nounwind readnone
10 define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {
11 ret i32 %0
12 }
13
14 ; CHECK-NOT: BTF
15
16 attributes #0 = { norecurse nounwind readnone }
17
18 !llvm.module.flags = !{!0}
19 !llvm.ident = !{!1}
20
21 !0 = !{i32 1, !"wchar_size", i32 4}
22 !1 = !{!"clang version 8.0.20181009 "}