XCore target: Add large code model

Robert Lytton robert at xmos.com
Wed Nov 13 10:44:59 PST 2013


Hi,

Two patches, the first is to test current implementation - prior to the second.

PatchTests:
    XCore target: extend tests in preparation

PatchLargeCM:
    XCore target: Add large code model
    When using large code model:
    Global objects larger than 'CodeModelLargeSize' bytes are placed in sections named with a trailing ".large"
    The folded global address into such objects are lowered into the const pool.
    During inspection it was noted that LowerConstantPool() was using a default offset of zero.
    A fix was made, but due to only offsets of zero being generated, testing only verifies the change is not detrimental.
    Fix explicitly specified sections flags.
    We assume the size of the object queried by getSectionForConstant() is never greater than CodeModelLargeSize.
    To handle greater than CodeModelLargeSize, changes to AsmPrinter would be required.


Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131113/215650ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PatchTests
Type: application/octet-stream
Size: 2113 bytes
Desc: PatchTests
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131113/215650ff/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PatchLargeCM
Type: application/octet-stream
Size: 15546 bytes
Desc: PatchLargeCM
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131113/215650ff/attachment-0001.obj>


More information about the llvm-commits mailing list