[PATCH] Work-in-progress: gcc_jit_type_get_aligned

Florian Weimer fw@deneb.enyo.de
Sun Jan 1 00:00:00 GMT 2017


* David Malcolm:

> Here's a work-in-progress implementation of the idea, adding this
> entrypoint to the API:
>
>   extern gcc_jit_type *
>   gcc_jit_type_get_aligned (gcc_jit_type *type,
>                             unsigned int alignment_in_bytes);

Should be size_t, not unsigned int.  A 2**31 alignment isn't as
ridiculous as it might seem.  x86-64 already has a 2**30 alignment
requirement in some contexts.



More information about the Jit mailing list