search for: t_pstruct

Displaying 3 results from an estimated 3 matches for "t_pstruct".

Did you mean: _struct
2010 Sep 08
0
[LLVMdev] Union type, is it really used or necessary?
...necessary? You missed the point. a struct defined with just parentheses like { i32, pointer } may be padded. A struct defined with angle brackets and parentheses <{ i32, pointer }> is a packed struct, guaranteed not to have padding. See: http://llvm.org/docs/LangRef.html#t_pstruct Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2010 Sep 08
4
[LLVMdev] Union type, is it really used or necessary?
On 07/09/10 14:22, Erik de Castro Lopo wrote: [...] > When generating 32 bit code the struct looks like: > > <{ i32, pointer }> > > and for 64 bit code: > > <{ union { i32, i64 }, pointer }> Surely LLVM will cause the first structure to be correctly aligned on 64-bit platforms by automatically inserting padding? Is explicit alignment by the user
2007 Mar 29
2
[LLVMdev] PR400 - alignment for LD/ST
It would be really nice if llvm-as had some extra syntax to let other compilers specify the exact layout of a struct. Specifically, I'd like to specify what the byte offsets are for each field without having to insert phony fields. Would this extra functionality fit into your work at all? -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at