[LLVMdev] Structure alignment

Anton Korobeynikov anton at korobeynikov.info
Mon Jun 8 14:29:21 PDT 2009


Hello

> %FIRSTSTRU = type { i32,  double, i32, i8* }
>
> struct  {
>        int                             var1;
>        double                  var2;
>        int                             var3;
>        char    *var4;
> }firstStru ;
LLVM type is not equivalent to mentioned C struct type. You need to
insert padding field into LLVM type.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list