[LLVMdev] Simple question on sign

Ryan Taylor ryta1203 at gmail.com
Wed Feb 22 16:28:06 PST 2012


How do you determine if a shift is signed or not?

ashr = always signed?
lshr = always unsigned?
shl = always signed?

The CmpInst has the "isSigned()" function, but it appears that every other
Instruction I've looked at doesn't seem to have this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120222/9412d20c/attachment.html>


More information about the llvm-dev mailing list