Villmow, Micah
2010-May-13 03:28 UTC
[LLVMdev] determining if the signness of a integer pointer
Is there a way to determine via API calls whether a pointer to an int points to a signed integer or an unsigned integer? Thanks, Micah -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100512/4acff2f1/attachment.html>
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...
Villmow, Micah
2010-May-13 03:49 UTC
[LLVMdev] determining if the signness of a integer pointer
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...
Maybe Matching Threads
- [LLVMdev] determining if the signness of a integer pointer
- [LLVMdev] determining if the signness of a integer pointer
- [LLVMdev] Determining the names of all the functions in a module
- [LLVMdev] Determining the register type of a MachineOperand
- [LLVMdev] Determining the names of all the functions in a module