[LLVMbugs] [Bug 1118] NEW: Enh: add stack alignment to llvm::TargetData

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 16 13:19:47 PST 2007


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

           Summary: Enh: add stack alignment to llvm::TargetData
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: scottm at aero.org


There exist platforms for which the stack alignment is different than the usual 
memory layout alignments, specifically the IBM Cell SPU, in my case. Added 
support so that stack alignment of types can be specified via the 
TargetData::init() string. Patched up instances of 
llvm::MachineFrameInfo::CreateStackObject() so that the type's stack alignment 
is used versus the memory alignment.

Please see the "NOTE:" in SelectionDAGISel.cpp, as this patch might be a 
solution to the "FIXME:" above the note.

Also, this is a sequence of two patches. The first patch updates documentation 
in TargetData.h, updates AutoRegen.sh to recognize newer versions of the 
autoconf tools. The second patch contains the actual stack alignment patch. 
(N.B.: I work out of my own different repo, hence the two patches. Sorry.)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list