Displaying 2 results from an estimated 2 matches for "outrastru".
2009 Jun 04
0
[LLVMdev] Structure Alignment
...ma pack()
//
extern "C" int testOSX( PosX osx )
{
printf("\nChamada C %d %f %d %s",++osx->var1,++osx->var2,++osx->var3,osx->var4);
return 999;
}
it was
... f64:32:64 ...
and I changed it to
... f64:64:64 ...
%struct.VAR1. = getelementptr %FIRSTSTRU.* %OUTRASTRU., i32 0, i32 0 ; <i32*> [#uses=2] %loadX = load i32* %struct.el.VAR1., align 4 ; <i32> [#uses=1]
here the first element is OK
...
%struct.el.VAR2. = getelementptr %FIRSTSTRU.* %OUTRASTRU., i32 0, i32 1 ; <i32*> [#uses=2] %loadX = load double* %struct.el....
2009 Jun 04
1
[LLVMdev] Structure Alignment
...osx )
> {
> printf("\nChamada C %d %f %d %s",++osx->var1,++osx->var2,++osx->var3,osx->var4);
> return 999;
> }
>
> it was
> ... f64:32:64 ...
> and I changed it to
> ... f64:64:64 ...
>
> %struct.VAR1. = getelementptr %FIRSTSTRU.* %OUTRASTRU., i32 0, i32 0 ; <i32*> [#uses=2] %loadX = load i32* %struct.el.VAR1., align 4 ; <i32> [#uses=1]
> here the first element is OK
> ...
> %struct.el.VAR2. = getelementptr %FIRSTSTRU.* %OUTRASTRU., i32 0, i32 1 ; <i32*> [#uses=2] %loadX = load doub...