[LLVMdev] Integer handling

Chris Lattner clattner at apple.com
Mon Sep 29 14:11:46 PDT 2008


On Sep 29, 2008, at 1:29 PM, Scott Graham wrote:
> On Mon, Sep 29, 2008 at 12:41 AM, OvermindDL1  
> <overminddl1 at gmail.com> wrote:
>> I have ended up making a rather complicated type system to handle
>> quite a few things, all stemming from the fact that the integer type
>> has no sign information (even if it did not use it, would be nice to
>> look at it in my code generator to so I can put out one function type
>> [snip]
>
> It's a bit unfortunate, but as far as I understand, you have to just
> deal with having two type systems in the front end.

Yes, the answer is to have your own type system in your front-end.  We  
designed the LLVM IR to be optimizable, not to let you avoid defining  
a type system :)

-Chris



More information about the llvm-dev mailing list