[LLVMdev] determining if the signness of a integer pointer

Villmow, Micah Micah.Villmow at amd.com
Wed May 12 20:49:08 PDT 2010


Since the frontend knows that a int pointer is signed or unsigned, I was hoping that this bit was set somewhere in a header file that I couldn't find when it was creating the LLVM integer.

Micah
-----Original Message-----
From: me22 [mailto:me22.ca at gmail.com] 
Sent: Wednesday, May 12, 2010 8:46 PM
To: Villmow, Micah
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] determining if the signness of a integer pointer

On 13 May 2010 05:28, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> Is there a way to determine via API calls whether a pointer to an int points
> to a signed integer or an unsigned integer?
>

Since LLVM doesn't have signed or unsigned integer types, I'm not sure
what you're asking.   I suppose you could look for additions done with
values loaded from or stored to the pointer...





More information about the llvm-dev mailing list