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

ihusar ihusar at fit.vutbr.cz
Wed Jun 24 08:09:21 PDT 2009


Hi Eli,

  thank you for your answer, I have already solved the issue using C structures ( i.e. struct i5 { int a:5}),
that work exactly as i needed.  Description can be found here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-June/023352.html

Have a nice day 
  Adam



On Wed, 24 Jun 2009 14:59:46 +0200, Eli Friedman <eli.friedman at gmail.com> wrote:

> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 






More information about the cfe-dev mailing list