search for: use_struct

Displaying 1 result from an estimated 1 matches for "use_struct".

Did you mean: user_struct
2012 Nov 07
1
[LLVMdev] using large structures in registers/returns
...eating a hidden parameter when too large? For example (assume very.large is too big to fit in the target machine registers): define %very.large @get_struct() { %m1 = insertvalue %very.large undef, i32 10, 0 ... %m10 = insertvalue %very.large %m9, i32 25, 9 ret %very.large %m10 } define void @use_struct( %very.large %m ) { ... } define i32 @main() { %m = call %very.large @get_struct() call void @use_struct( %very.large %m ) } Will this work on all targets? -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Enc...