30 lines · plain
1# RUN: llc -run-pass=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s2# RUN: llc -passes=xray-instrumentation -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s3#4# Make sure we can handle multiple ret instructions in a single basic block for5# XRay.6 7--- |8 9 define i32 @foo() noinline uwtable "function-instrument"="xray-always" {10 ret i32 011 ret i32 112 }13 14...15 16---17name: foo18tracksRegLiveness: true19liveins:20 - { reg: '$edi'}21body: |22 bb.0:23 liveins: $edi24 ; CHECK: PATCHABLE_FUNCTION_ENTER25 RET6426 ; CHECK-NEXT: PATCHABLE_RET27 RET6428 ; CHECK-NEXT: PATCHABLE_RET29...30