On Apr 5, 2007, at 8:40 AM, Reid Spencer wrote:
>> Add a helper class (APSInt) which can represent an APInt along  
>> with sign
>> information.  This is useful when a value does have a sign  
>> associated with
>> it.  This shouldn't be used generally in LLVM for mid-level  
>> optimizer stuff.
>
> Do we really need this? I didn't see you use it in any subsequent
> commits. What's the use case you have in mind?

I'm playing with a little interpreter, which wants to think of values  
as signed.  It is a toy and nothing will probably come of it, but it  
made more sense to have a class to represent arbitrary-width signed  
values than use a pair<apint,bool> everywhere.  Perhaps it will be  
useful for other people too.

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to