[LLVMbugs] [Bug 4089] LLVM asm has no way to specify alignment in structure types

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Apr 28 11:13:37 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4089


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Chris Lattner <clattner at apple.com>  2009-04-28 13:13:36 ---
This is actually by design.  LLVM supports two classes of languages:

1. Languages which do not have ABI requirements like scheme, java, etc.  These
languages can generate platform neutral LLVM IR and want to know as little of
the target as possible.  These languages should use the normal LLVM struct
type.

2. Languages like C that have specific ABIs to match.  For these, we recommend
using llvm packed structure types exclusively.  LLVM requires the front-end to
do target-specific lowering and other things (bitfield layout etc).  Since the
front-end already has to do a lot of target specific stuff, adding this feature
wouldn't make them substantially more complex.

Closing this as "not to be fixed" because I don't think that the added
complexity of supporting this is worth the benefit.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list