You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.207
Former-commit-id: 3b152f462918d427ce18620a2cbe4f8b79650449
This commit is contained in:
parent
8e12397d70
commit
eb85e2fc17
@ -1,35 +0,0 @@
|
||||
; RUN: opt -rewrite-statepoints-for-gc -S < %s | FileCheck %s
|
||||
; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s
|
||||
; Check that the "deopt-lowering" function attribute gets transcoded into
|
||||
; flags on the resulting statepoint
|
||||
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.11.0"
|
||||
|
||||
declare void @foo()
|
||||
declare void @bar() "deopt-lowering"="live-in"
|
||||
declare void @baz() "deopt-lowering"="live-through"
|
||||
|
||||
define void @test1() gc "statepoint-example" {
|
||||
; CHECK-LABEL: @test1(
|
||||
; CHECK: @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @foo, i32 0, i32 0, i32 0, i32 1, i32 57)
|
||||
; CHECK: @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @bar, i32 0, i32 2, i32 0, i32 1, i32 42)
|
||||
; CHECK: @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @baz, i32 0, i32 0, i32 0, i32 1, i32 13)
|
||||
|
||||
entry:
|
||||
call void @foo() [ "deopt"(i32 57) ]
|
||||
call void @bar() [ "deopt"(i32 42) ]
|
||||
call void @baz() [ "deopt"(i32 13) ]
|
||||
ret void
|
||||
}
|
||||
|
||||
; add deopt-lowering attribute as part of callsite
|
||||
define void @test2() gc "statepoint-example" {
|
||||
; CHECK-LABEL: @test2(
|
||||
; CHECK: @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 2882400000, i32 0, void ()* @foo, i32 0, i32 2, i32 0, i32 1, i32 57)
|
||||
|
||||
entry:
|
||||
call void @foo() "deopt-lowering"="live-in" [ "deopt"(i32 57) ]
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user