mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
9146e8f676
Summary: The port is nearly straightforward. The only complication is related to the analyses handling, since one of the analyses used in this module pass is domtree, which is a function analysis. That requires asking for the results of each function and disallows a single interface for run-on-module pass action. Decided to copy-paste the main body of this pass. Most of its code is requesting analyses anyway, so not that much of a copy-paste. The rest of the code movement is to transform all the implementation helper functions like stripNonValidData into non-member statics. Extended all the related LLVM tests with new-pass-manager use. No failures. Reviewers: sanjoy, anna, reames Reviewed By: anna Subscribers: skatkov, llvm-commits Differential Revision: https://reviews.llvm.org/D41162 llvm-svn: 320796
18 lines
731 B
LLVM
18 lines
731 B
LLVM
; RUN: opt -S -rewrite-statepoints-for-gc < %s | FileCheck %s
|
|
; RUN: opt -S -passes=rewrite-statepoints-for-gc < %s | FileCheck %s
|
|
; Ensure statepoints copy (valid) attributes from callsites.
|
|
|
|
declare void @f(i8 addrspace(1)* %obj)
|
|
|
|
; copy over norecurse noimplicitfloat to statepoint call
|
|
define void @test1(i8 addrspace(1)* %arg) gc "statepoint-example" {
|
|
; CHECK-LABEL: test1(
|
|
; CHECK: call token (i64, i32, void (i8 addrspace(1)*)*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_isVoidp1i8f(i64 2882400000, i32 0, void (i8 addrspace(1)*)* @f, i32 1, i32 0, i8 addrspace(1)* %arg, i32 0, i32 0, i8 addrspace(1)* %arg) #1
|
|
|
|
call void @f(i8 addrspace(1)* %arg) #1
|
|
ret void
|
|
}
|
|
|
|
|
|
attributes #1 = { norecurse noimplicitfloat }
|