reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Instruction.h
  346   bool hasNoUnsignedWrap() const;

References

include/llvm/Analysis/InstructionSimplify.h
   73       return Op->hasNoUnsignedWrap();
lib/Analysis/BasicAliasAnalysis.cpp
  366         NUW &= BOp->hasNoUnsignedWrap();
lib/Analysis/PHITransAddr.cpp
  258     bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap();
lib/Analysis/ScalarEvolution.cpp
 3888         if (I->hasNoUnsignedWrap() && !NS->hasNoUnsignedWrap())
 5972   if (BinOp->hasNoUnsignedWrap())
lib/Analysis/ScalarEvolutionExpander.cpp
  195           if (I->hasNoUnsignedWrap() != (Flags & SCEV::FlagNUW))
lib/CodeGen/CodeGenPrepare.cpp
 3740       ((!IsSExt && BinOp->hasNoUnsignedWrap()) ||
lib/IR/Instruction.cpp
  271       setHasNoUnsignedWrap(hasNoUnsignedWrap() & OB->hasNoUnsignedWrap());
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  253     return I.hasNoUnsignedWrap();
  267     return I.hasNoUnsignedWrap();
lib/Target/ARM/ARMCodeGenPrepare.cpp
  422   return cast<Instruction>(V)->hasNoUnsignedWrap();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  995       return In->hasNoSignedWrap() && In->hasNoUnsignedWrap();
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  910     if (Add.hasNoSignedWrap() || Add.hasNoUnsignedWrap())
 1072     BOp->setHasNoUnsignedWrap(I.hasNoUnsignedWrap());
 1203                                  I.hasNoSignedWrap(), I.hasNoUnsignedWrap(),
 1277     Shl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap());
 1398   if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedAdd(LHS, RHS, I)) {
 1674                                  I.hasNoSignedWrap(), I.hasNoUnsignedWrap(),
 2003     Value *Neg = Builder.CreateNeg(A, "", I.hasNoUnsignedWrap(),
 2020   if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedSub(Op0, Op1, I)) {
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 3234     Value *Neg = Builder.CreateNeg(A, "", Add->hasNoUnsignedWrap(),
lib/Transforms/InstCombine/InstCombineCompares.cpp
 2077   if (Shl->hasNoUnsignedWrap()) {
 2509       ((Cmp.isUnsigned() && Sub->hasNoUnsignedWrap()) ||
 2577       (Add->hasNoUnsignedWrap() &&
 3694         (CmpInst::isUnsigned(Pred) && BO0->hasNoUnsignedWrap()) ||
 3699         (CmpInst::isUnsigned(Pred) && BO1->hasNoUnsignedWrap()) ||
 3997       bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap();
 3997       bool NUW = BO0->hasNoUnsignedWrap() && BO1->hasNoUnsignedWrap();
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
   84     if (I->getOpcode() == Instruction::Shl && !I->hasNoUnsignedWrap()) {
  206       if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap())
  206       if (I.hasNoUnsignedWrap() && Mul->hasNoUnsignedWrap())
  219         if (I.hasNoUnsignedWrap())
  349       if (I.hasNoUnsignedWrap())
  385   if (!I.hasNoUnsignedWrap() && willNotOverflowUnsignedMul(Op0, Op1, I)) {
lib/Transforms/InstCombine/InstCombineShifts.cpp
  123       NewShift->setHasNoUnsignedWrap(Sh0->hasNoUnsignedWrap() &&
  124                                      Sh1->hasNoUnsignedWrap());
  849                                  I.hasNoSignedWrap(), I.hasNoUnsignedWrap(), Q))
  894         NewShl->setHasNoUnsignedWrap(I.hasNoUnsignedWrap());
  917     if (!I.hasNoUnsignedWrap() &&
 1004         if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) {
 1018         if (cast<BinaryOperator>(Op0)->hasNoUnsignedWrap()) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  952       New->setHasNoUnsignedWrap(Orig->hasNoUnsignedWrap());
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1241         New->setHasNoUnsignedWrap(BO->hasNoUnsignedWrap());
lib/Transforms/InstCombine/InstructionCombining.cpp
  604           HasNUW = I.hasNoUnsignedWrap();
lib/Transforms/Instrumentation/PoisonChecking.cpp
  121     if (I.hasNoUnsignedWrap()) {
  134     if (I.hasNoUnsignedWrap()) {
  147     if (I.hasNoUnsignedWrap()) {
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  750   bool NUW = BinOp->hasNoUnsignedWrap();
lib/Transforms/Scalar/IndVarSimplify.cpp
 2466     if (BO->hasNoUnsignedWrap())
lib/Transforms/Scalar/Reassociate.cpp
  992   bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap();
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  541     if (ZeroExtended && !BO->hasNoUnsignedWrap())
lib/Transforms/Utils/SimplifyIndVar.cpp
  732   if (BO->hasNoUnsignedWrap() && BO->hasNoSignedWrap())
  744   if (!BO->hasNoUnsignedWrap() &&
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  457       Safe = cast<BinaryOperator>(OpB)->hasNoUnsignedWrap();
unittests/Analysis/ScalarEvolutionTest.cpp
 1245   EXPECT_FALSE(I->hasNoUnsignedWrap());
 1348   EXPECT_FALSE(I->hasNoUnsignedWrap());
unittests/IR/IRBuilderTest.cpp
  602       cast<BinaryOperator>(Builder.CreateNUWAdd(V, V))->hasNoUnsignedWrap());
  604       cast<BinaryOperator>(Builder.CreateNUWMul(V, V))->hasNoUnsignedWrap());
  606       cast<BinaryOperator>(Builder.CreateNUWSub(V, V))->hasNoUnsignedWrap());
  609                   ->hasNoUnsignedWrap());
unittests/IR/InstructionsTest.cpp
  623     ASSERT_TRUE(AI->hasNoUnsignedWrap());
  625     ASSERT_FALSE(AI->hasNoUnsignedWrap());
  634     ASSERT_FALSE(SI->hasNoUnsignedWrap());
  642     ASSERT_TRUE(ShlI->hasNoUnsignedWrap());
  644     ASSERT_FALSE(ShlI->hasNoUnsignedWrap());
unittests/Transforms/Utils/CloningTest.cpp
   78   EXPECT_FALSE(AddClone->hasNoUnsignedWrap());
   80   EXPECT_FALSE(SubClone->hasNoUnsignedWrap());
   82   EXPECT_FALSE(MulClone->hasNoUnsignedWrap());
   95   EXPECT_TRUE(AddClone->hasNoUnsignedWrap());
   97   EXPECT_TRUE(SubClone->hasNoUnsignedWrap());
   99   EXPECT_TRUE(MulClone->hasNoUnsignedWrap());
  112   EXPECT_TRUE(AddClone->hasNoUnsignedWrap());
  114   EXPECT_TRUE(SubClone->hasNoUnsignedWrap());
  116   EXPECT_TRUE(MulClone->hasNoUnsignedWrap());
  129   EXPECT_FALSE(AddClone->hasNoUnsignedWrap());
  131   EXPECT_FALSE(SubClone->hasNoUnsignedWrap());
  133   EXPECT_FALSE(MulClone->hasNoUnsignedWrap());