Displaying 1 result from an estimated 1 matches for "__captured_stmt_helper_new".
2013 May 27
0
[LLVMdev] RFC: Converting byref captures into bycopy
...ounds {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 inbounds {i32}* %context, i32 0, i32 0
%load.a = load i32* %a
store i32 %load.a, i32* %field
call void @__captured_stmt_helper_new({i32}* %context)
define void @__captured_stmt_helper_new({i32}* %context) {
%field = getelementptr inbounds {i32}* %context, i32 0, i32 0
%a = load i32* %field
...
}
I'd love to hear any feedback about this approach, since I'm not totally convinced yet this should not be done in Cla...