File: xray-attribute-instrumentation.ll

package info (click to toggle)
llvm-toolchain-21 1%3A21.1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,236,516 kB
  • sloc: cpp: 7,619,569; ansic: 1,433,956; asm: 1,058,748; python: 252,181; f90: 94,671; objc: 70,753; lisp: 42,813; pascal: 18,401; sh: 8,601; ml: 5,111; perl: 4,720; makefile: 3,585; awk: 3,523; javascript: 2,272; xml: 892; fortran: 770
file content (24 lines) | stat: -rw-r--r-- 1,142 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; RUN: llc -mtriple=riscv32-unknown-linux-gnu -mattr=+d,+c < %s | FileCheck --check-prefix=CHECK %s
; RUN: llc -mtriple=riscv64-unknown-linux-gnu -mattr=+d,+c < %s | FileCheck --check-prefix=CHECK --check-prefix=CHECK-RISCV64 %s

define i32 @foo() nounwind "function-instrument"="xray-always" {
; CHECK:                        .p2align 2
; CHECK-LABEL:                  .Lxray_sled_0:
; CHECK-NEXT:                   j .Ltmp0
; CHECK-COUNT-21:               nop
; CHECK-RISCV64-COUNT-12:       nop
; CHECK-LABEL:                  .Ltmp0:
  ret i32 0
; CHECK:                        .p2align 2
; CHECK-LABEL:                  .Lxray_sled_1:
; CHECK-NEXT:                   j .Ltmp1
; CHECK-COUNT-21:               nop
; CHECK-RISCV64-COUNT-12:       nop
; CHECK-LABEL:                  .Ltmp1:
; CHECK-NEXT:                   ret
}
; CHECK:                        .section xray_instr_map,"ao",@progbits,foo
; CHECK-LABEL:                  .Lxray_sleds_start0:
; CHECK:                        .Lxray_sled_0-[[TMP:.Ltmp[0-9]+]]
; CHECK:                        .Lxray_sled_1-[[TMP:.Ltmp[0-9]+]]
; CHECK-LABEL:                  .Lxray_sleds_end0: