[llvm-commits] [PATCH] Non 8-bit bytes

Philipp Brüschweiler blei42 at gmail.com
Fri Jul 6 06:58:06 PDT 2012


Hi,

Attached is a series of patches that add (limited) support for non 8
bit bytes to LLVM.

The backend that uses this will not be included in the main repo ever,
so I'm not sure if the attached patches will be welcome. But I thought
let's try anyway, maybe someone else could find them useful.

Builtins (like memset) and related optimizations don't work yet. Clang
needs some additional patches to make use of non 8 bit bytes. Besides
that everything (that we tested) should work.

I'm not sure how to do tests for this, as there is obviously no target
that uses this feature in the repo. The target we are developing has
16 bit bytes and seems to work pretty well. All existing tests still
pass.

Cheers
Philipp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-field-BitsPerByte-to-TargetData-and-Module.patch
Type: text/x-patch
Size: 24038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120706/1969f3d0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Register-sizes-are-now-in-bits-instead-of-bytes.patch
Type: text/x-patch
Size: 24107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120706/1969f3d0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Make-the-store-size-of-ValueTypes-depend-on-the-byte.patch
Type: text/x-patch
Size: 21388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120706/1969f3d0/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Change-more-hardcoded-8s-to-BitsPerByte.patch
Type: text/x-patch
Size: 26935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120706/1969f3d0/attachment-0003.bin>


More information about the llvm-commits mailing list