reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
; RUN: llc -march=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
; RUN: llc -march=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s

; Source code:
;   int test(int arg) { return arg; }
; Compilation flag:
;   clang -target bpf -O2 -S -emit-llvm t.c

; Function Attrs: norecurse nounwind readnone
define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {
  ret i32 %0
}

; CHECK-NOT: BTF

attributes #0 = { norecurse nounwind readnone }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{!"clang version 8.0.20181009 "}