search for: firstfield

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

2007 Jul 16
4
[LLVMdev] fields in structure re-arranged for alignment?
...considered target-specific and a decision left up to the back-end of the target platform? Furthermore if re-arrangement does occur, how does this affect the semantics of GetElementPtr when it is used for pointer calculation of a Structure? For example if I had: %BLAH = type { i16, i32, i16 } ... %firstField = getelementptr %BLAH* %instance, i32 1, i32 0 In this example I want to access the first 16-bit integer field of Structure BLAH, so the last argument to GetElementPtr is index 0, but if the fields gets re-arranged, how do I know which index to use? Thanks, Kean -------------- next part --------...