mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
16e0971625
Extend -fxray-instrumentation-bundle to split function-entry and function-exit into two separate options, so that it is possible to instrument only function entry or only function exit. For use cases that only care about one or the other this will save significant overhead and code size. Differential Revision: https://reviews.llvm.org/D72890
22 lines
584 B
LLVM
22 lines
584 B
LLVM
; RUN: llc -filetype=asm -o - -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s
|
|
|
|
define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" "xray-skip-entry" {
|
|
; CHECK-NOT: Lxray_sled_0:
|
|
ret i32 0
|
|
; CHECK-LABEL: Lxray_sled_0:
|
|
; CHECK-NEXT: b #32
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-NEXT: nop
|
|
; CHECK-LABEL: Ltmp0:
|
|
; CHECK-NEXT: ret
|
|
}
|
|
; CHECK-LABEL: xray_instr_map
|
|
; CHECK-LABEL: Lxray_sleds_start0
|
|
; CHECK: .xword .Lxray_sled_0
|
|
; CHECK-LABEL: Lxray_sleds_end0
|