/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Local.cpp | 30 bool NUW = GEPOp->hasNoUnsignedWrap() && !NoAssumptions; in emitGEPOffset() local 34 NUW, NSW); in emitGEPOffset() 74 Op = Builder->CreateMul(Op, Scale, GEP->getName() + ".idx", NUW, NSW); in emitGEPOffset()
|
H A D | BasicAliasAnalysis.cpp | 345 bool canDistributeOver(bool NUW, bool NSW) const { in canDistributeOver() 349 return (!ZExtBits || NUW) && (!SExtBits || NSW); in canDistributeOver() 411 bool NUW = true, NSW = true; in GetLinearExpression() local 413 NUW &= BOp->hasNoUnsignedWrap(); in GetLinearExpression() 416 if (!Val.canDistributeOver(NUW, NSW)) in GetLinearExpression() 422 NUW = NSW = false; in GetLinearExpression()
|
H A D | ValueTracking.cpp | 359 bool NSW, bool NUW, in computeKnownBitsAddSub() argument 367 if (KnownOut.isUnknown() && !NSW && !NUW) in computeKnownBitsAddSub() 371 KnownOut = KnownBits::computeForAddSub(Add, NSW, NUW, Known2, KnownOut); in computeKnownBitsAddSub() 1262 bool NUW = Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local 1264 auto KF = [NUW, NSW](const KnownBits &KnownVal, const KnownBits &KnownAmt, in computeKnownBitsFromOperator() 1266 return KnownBits::shl(KnownVal, KnownAmt, NUW, NSW, ShAmtNonZero); in computeKnownBitsFromOperator() 1302 bool NUW = Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local 1303 computeKnownBitsAddSub(false, I->getOperand(0), I->getOperand(1), NSW, NUW, in computeKnownBitsFromOperator() 1309 bool NUW = Q.IIQ.hasNoUnsignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local 1310 computeKnownBitsAddSub(true, I->getOperand(0), I->getOperand(1), NSW, NUW, in computeKnownBitsFromOperator() [all …]
|
H A D | InstructionSimplify.cpp | 3407 bool NUW = Q.IIQ.hasNoUnsignedWrap(LBO) && Q.IIQ.hasNoUnsignedWrap(RBO); in simplifyICmpWithBinOp() local 3409 if (!NUW || (ICmpInst::isSigned(Pred) && !NSW) || in simplifyICmpWithBinOp() 3479 bool NUW = Q.IIQ.hasNoUnsignedWrap(LBO) && Q.IIQ.hasNoUnsignedWrap(RBO); in simplifyICmpWithBinOp() local 3481 if (!NUW && !NSW) in simplifyICmpWithBinOp()
|
H A D | ScalarEvolution.cpp | 3811 bool NUW = NW.hasNoUnsignedWrap() || in getGEPExpr() local 3813 SCEV::NoWrapFlags BaseWrap = NUW ? SCEV::FlagNUW : SCEV::FlagAnyWrap; in getGEPExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 51 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, bool NUW, in computeForAddSub() argument 76 if (NUW) { in computeForAddSub() 285 KnownBits KnownBits::shl(const KnownBits &LHS, const KnownBits &RHS, bool NUW, in shl() argument 297 if (NUW && ShiftAmt != 0) in shl() 316 if (NUW && NSW && MinShiftAmount != 0) in shl() 324 if (NUW && NSW) in shl() 326 if (NUW) in shl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CorrelatedValuePropagation.cpp | 611 bool NUW = !WO->isSigned(); in processOverflowIntrinsic() local 615 setDeducedOverflowingFlags(NewOp, Opcode, NSW, NUW); in processOverflowIntrinsic() 636 bool NUW = !SI->isSigned(); in processSaturatingInst() local 640 setDeducedOverflowingFlags(BinOp, Opcode, NSW, NUW); in processSaturatingInst() 1154 bool NUW = BinOp->hasNoUnsignedWrap(); in processBinOp() local 1155 if (NSW && NUW) in processBinOp() 1166 if (!NUW) { in processBinOp()
|
H A D | Reassociate.cpp | 1051 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap(); in ConvertShiftToMul() local 1053 if (NSW && (NUW || SA->getValue().ult(BitWidth - 1))) in ConvertShiftToMul() 1055 Mul->setHasNoUnsignedWrap(NUW); in ConvertShiftToMul()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 324 static KnownBits computeForAddSub(bool Add, bool NSW, bool NUW, 401 bool NUW = false, bool NSW = false,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 564 bool NUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in SimplifyDemandedUseBits() local 565 Known = KnownBits::computeForAddSub(true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits() 598 bool NUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in SimplifyDemandedUseBits() local 599 Known = KnownBits::computeForAddSub(false, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits() 1235 bool NUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in SimplifyMultipleUseDemandedBits() local 1237 KnownBits::computeForAddSub(/*Add=*/true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyMultipleUseDemandedBits() 1252 bool NUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in SimplifyMultipleUseDemandedBits() local 1254 Known = KnownBits::computeForAddSub(/*Add=*/false, NSW, NUW, LHSKnown, in SimplifyMultipleUseDemandedBits()
|
H A D | InstCombineCompares.cpp | 5324 bool NUW = Op0HasNUW && Op1HasNUW; in foldICmpBinOp() local 5326 if (!NUW && !NSW) in foldICmpBinOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 47 NUW = false; in PoisonFlags() 53 NUW = OBO->hasNoUnsignedWrap(); in PoisonFlags() 63 NUW = TI->hasNoUnsignedWrap(); in PoisonFlags() 70 I->setHasNoUnsignedWrap(NUW); in apply() 80 I->setHasNoUnsignedWrap(NUW); in apply()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 413 DEFINE_HELPERS(Add, NUW) // CreateNUWAdd 415 DEFINE_HELPERS(Sub, NUW) // CreateNUWSub 417 DEFINE_HELPERS(Mul, NUW) // CreateNUWMul 419 DEFINE_HELPERS(Shl, NUW) // CreateNUWShl
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.h | 45 unsigned NUW : 1; member
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 4255 bool NUW = false; in parseValID() local 4263 NUW = true; in parseValID() 4267 NUW = true; in parseValID() 4283 if (NUW) Flags |= OverflowingBinaryOperator::NoUnsignedWrap; in parseValID() 6896 bool NUW = EatIfPresent(lltok::kw_nuw); in parseInstruction() local 6898 if (!NUW) NUW = EatIfPresent(lltok::kw_nuw); in parseInstruction() 6903 if (NUW) cast<BinaryOperator>(Inst)->setHasNoUnsignedWrap(true); in parseInstruction() 6972 bool NUW = EatIfPresent(lltok::kw_nuw); in parseInstruction() local 6974 if (!NUW) in parseInstruction() 6975 NUW = EatIfPresent(lltok::kw_nuw); in parseInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 3587 bool NUW = Op->getFlags().hasNoUnsignedWrap(); in computeKnownBits() local 3592 Known = KnownBits::shl(Known, Known2, NUW, NSW, ShAmtNonZero); in computeKnownBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 53763 bool NUW = Add->getFlags().hasNoUnsignedWrap(); in promoteExtBeforeAdd() local 53765 NUW = NUW || (!Sext && DAG.willNotOverflowAdd(false, AddOp0, AddOp1)); in promoteExtBeforeAdd() 53769 if ((Sext && !NSW) || (!Sext && !NUW)) in promoteExtBeforeAdd() 53803 Flags.setNoUnsignedWrap(NUW); in promoteExtBeforeAdd()
|