How can I check if a particular Integer Type is signed/unsigned? Arushi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100916/baea061d/attachment.html>
Arushi Aggarwal wrote:> How can I check if a particular Integer Type is signed/unsigned?I don't believe you can. LLVM treats integers as twos-complement. Only the arithmetic and comparison operations which would yield different bit patterns based on sign have an associated sign. Can you tell us what you're trying to do? -- John T.> > Arushi
The signess of the operands is described in the operation itself, should the sign be relevant, such as Instruction::UDiv and Instructin::SDiv (unsigned and signed division) Instruction::URem and Instruction::SRem On Thu, 2010-09-16 at 13:48 -0500, Arushi Aggarwal wrote:> How can I check if a particular Integer Type is signed/unsigned? > > > Arushi > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev