search for: agg_addr

Displaying 4 results from an estimated 4 matches for "agg_addr".

Did you mean: a_addr
2011 Aug 11
2
[LLVMdev] Pass a struct on windows
...I checked the test with lli. (1) Pass a struct of type {void*, uint64_t} by pointer (in fact this is generated from Clang 3.0). The returned value of @call_by_pointer is 4 as expected, on both windows XP ia32 and linux ubuntu x64 I tested. %0 = type { i8*, i64 } define void @foo_by_pointer(%0* %agg_addr, i8*, i64) nounwind { entry: %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_p...
2011 Aug 11
0
[LLVMdev] Pass a struct on windows
...) Pass a struct of type {void*, uint64_t} by pointer (in fact this is > generated from Clang 3.0). > The returned value of @call_by_pointer is 4 as expected, on both windows XP ia32 > and linux ubuntu x64 I tested. > > %0 = type { i8*, i64 } > > define void @foo_by_pointer(%0* %agg_addr, i8*, i64) nounwind { > entry: > %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 > }...
2011 Aug 11
1
[LLVMdev] Pass a struct on windows
...} by pointer (in fact this is > > generated from Clang 3.0). > > The returned value of @call_by_pointer is 4 as expected, on both windows > XP ia32 > > and linux ubuntu x64 I tested. > > > > %0 = type { i8*, i64 } > > > > define void @foo_by_pointer(%0* %agg_addr, i8*, i64) nounwind { > > entry: > > %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...
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