search for: undefinedunsigned

Displaying 3 results from an estimated 3 matches for "undefinedunsigned".

Did you mean: undefinedsigned
2009 Feb 08
0
[LLVMdev] overflow + saturation stuff
...assData bits? Compare this: switch (I->getOpcode()) { case Instruction::Add: { switch (cast<Add>(I)->getOverflowBehavior()) { case AddInstruction::Wrapping: // ... case AddInstruction::UndefinedSigned: // ... case AddInstruction::UndefinedUnsigned: // ... } } } with this: switch (I->getOpcode()) { case Instruction::Add: // ... case Instruction::SAdd_Open: // ... case Instruction::UAdd_Open: // ... break; } I'm not sure about the name "Open"; fixed-siz...
2009 Feb 07
6
[LLVMdev] overflow + saturation stuff
Edwin was asking about how we should handle PR3328, how we should make GEP respect -fwrapv etc. I wrote up some thoughts here if anyone is interested: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt -Chris
2009 Feb 08
2
[LLVMdev] overflow + saturation stuff
...t; switch (I->getOpcode()) { > case Instruction::Add: { > switch (cast<Add>(I)->getOverflowBehavior()) { > case AddInstruction::Wrapping: > // ... > case AddInstruction::UndefinedSigned: > // ... > case AddInstruction::UndefinedUnsigned: Sure, that is ugly. However, I think it would be much more common to look at these in "isa" flavored tests than switches: if (isa<SAdd_OpenInst>(X)) is much nicer than: if (BinaryOperator *BO = dyn_cast<BinaryOperator>(x)) if (BO->getOpcode() == blah::Add &&a...