Displaying 1 result from an estimated 1 matches for "__captured_stmt_helper".
2013 May 27
0
[LLVMdev] RFC: Converting byref captures into bycopy
...site is updated to call the new function, and add loads of any arguments that have been promoted. These loads may be removed by later optimizations.
e.g.
%a = alloca i32
%context = alloca {i32*}
%field = getelementptr inbounds {i32*}* %context, i32 0, i32 0
store i32* %a, i32** %field
call void @__captured_stmt_helper({i32*}* %context)
define void @__captured_stmt_helper({i32*}* %context) {
%field = getelementptr inbounds {i32*}* %context, i32 0, i32 0
%load.field = load i32** %field
%a = load i32* %load.field
...
}
Becomes something like
%a = alloca i32
%context = alloca {i32}
%field = getelementptr...