Displaying 4 results from an estimated 4 matches for "a_opq".
Did you mean:
a_ops
2011 Aug 11
2
[LLVMdev] Pass a struct on windows
...%agg_addr.0 = getelementptr inbounds %0* %agg_addr, i32 0, i32 0
store i8* %0, i8** %agg_addr.0, align 8
%agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
store i64 %1, i64* %agg_addr.1, align 8
ret void
}
define i64 @call_by_pointer() {
%a_ptr = alloca float, align 4
%a_opq = bitcast float* %a_ptr to i8*
%agg_addr = alloca %0, align 8
call void @foo_by_pointer(%0* %agg_addr, i8* %a_opq, i64 4)
%agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
%result.1 = load i64* %agg_addr.1, align 8
ret i64 %result.1
}
(2) Pass the struct by value (minor mo...
2011 Aug 11
0
[LLVMdev] Pass a struct on windows
...dr, i32 0, i32 0
> store i8* %0, i8** %agg_addr.0, align 8
> %agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
> store i64 %1, i64* %agg_addr.1, align 8
> ret void
> }
>
> define i64 @call_by_pointer() {
> %a_ptr = alloca float, align 4
> %a_opq = bitcast float* %a_ptr to i8*
> %agg_addr = alloca %0, align 8
> call void @foo_by_pointer(%0* %agg_addr, i8* %a_opq, i64 4)
> %agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
> %result.1 = load i64* %agg_addr.1, align 8
> ret i64 %result.1
> }
>...
2011 Aug 11
1
[LLVMdev] Pass a struct on windows
...8** %agg_addr.0, align 8
> > %agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
> > store i64 %1, i64* %agg_addr.1, align 8
> > ret void
> > }
> >
> > define i64 @call_by_pointer() {
> > %a_ptr = alloca float, align 4
> > %a_opq = bitcast float* %a_ptr to i8*
> > %agg_addr = alloca %0, align 8
> > call void @foo_by_pointer(%0* %agg_addr, i8* %a_opq, i64 4)
> > %agg_addr.1 = getelementptr inbounds %0* %agg_addr, i32 0, i32 1
> > %result.1 = load i64* %agg_addr.1, align 8
> > ret...
2011 Aug 15
3
[LLVMdev] structured types as function arguments
Hi,
When calling a function, does the llvm code generator support passing structured types (arrays, structs, etc.) by _value_? I wrote some small examples, and it seemed
to work, but I was wondering if anything can go wrong if the structured types are very large...
Thanks,
N