Displaying 3 results from an estimated 3 matches for "testshort".
2010 Oct 20
2
[LLVMdev] Structure memory layout
...:)
The IR in an previous e-mail is incomplete so far and
I am converting it to various shape.
My team members decided to add new types to solve the bitfield's alignment problem.
Let's consider your previous examples:
struct testChar { char a:3; char b:4; char c:3; char d:2; };
struct testShort { short a:3; short b:4; short c:3; short d:2; };
struct testInt { int a:3; int b:4; int c:3; int d:2; };
In future, our IRs will be represented as following:
%Char = type { c3, c4, c3, c2 }
%Short = type { s3, s4, s3, s2 }
%Int = type { i3, i4, i3, i2 }
This was just concept and I didn'...
2010 Oct 19
0
[LLVMdev] Structure memory layout
On 19 October 2010 07:57, Jin Gu Kang <jaykang10 at imrc.kist.re.kr> wrote:
> Frist, I have been implementing common type for struct type on bitcode
> at compilation time using llvm-gcc and then changing common type to target
> specific types at code generation time using llc (reconstruct StructLayout).
Hi Jin,
Apart from bitfields and unions, the struct type is pretty much target
2010 Oct 19
4
[LLVMdev] Structure memory layout
Hi LLVM members,
I have been working to make target independent memory layout for struct type(Aggregate type) in my team.
I think that struct type has different memory layouts according to each target system in current LLVM.
To implement target dependent concept for struct type,
Frist, I have been implementing common type for struct type on bitcode at compilation time using llvm-gcc and then