[llvm-commits] CVS: llvm/include/llvm/ADT/APSInt.h
Chris Lattner
clattner at apple.com
Thu Apr 5 09:27:11 PDT 2007
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
More information about the llvm-commits
mailing list