[LLVMdev] LLVM frontend supporting arbitrary bit-width integral datatypes

Eli Friedman eli.friedman at gmail.com
Wed Jun 24 05:59:46 PDT 2009


On Wed, Jun 24, 2009 at 5:47 AM, ihusar<ihusar at fit.vutbr.cz> wrote:
> The conclusion is, that I will need to modify some compiler frontend by my own, propably the clang.
> Please, if you have some info afout this or if anyone has already tried such thing, could you write it here?
> Also, is there anything I should be aware of when modifing the clang? Are there some passes, that are
> made only for the standard C datatypes?
> Stuff like sizeof() and C pointer arithmetics can be forbidden integers which bit width is not divisible by 8.

clang already has some code for types like this, but there isn't any
way to declare such a type yet.  Patches welcome, or I'll probably get
around to writing it at some point.

(If you have any additional questions about that, please direct them
to cfe-dev only.)

-Eli



More information about the llvm-dev mailing list