Home
last modified time | relevance | path

Searched refs:NSW (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp29 bool NSW = GEPOp->hasNoUnsignedSignedWrap() && !NoAssumptions; in emitGEPOffset() local
34 NUW, NSW); in emitGEPOffset()
74 Op = Builder->CreateMul(Op, Scale, GEP->getName() + ".idx", NUW, NSW); in emitGEPOffset()
H A DBasicAliasAnalysis.cpp359 bool canDistributeOver(bool NUW, bool NSW) const { in canDistributeOver()
363 return (!ZExtBits || NUW) && (!SExtBits || NSW); in canDistributeOver()
407 bool NSW = IsNSW && (Other.isOne() || (MulIsNSW && Offset.isZero())); in mul() local
409 return LinearExpression(Val, Scale * Other, Offset * Other, NUW, NSW); in mul()
432 bool NUW = true, NSW = true; in GetLinearExpression() local
435 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression()
437 if (!Val.canDistributeOver(NUW, NSW)) in GetLinearExpression()
443 NUW = NSW = false; in GetLinearExpression()
462 E.IsNSW &= NSW; in GetLinearExpression()
470 E.IsNSW &= NSW; in GetLinearExpression()
[all …]
H A DValueTracking.cpp352 bool NSW, bool NUW, in computeKnownBitsAddSub() argument
360 if (KnownOut.isUnknown() && !NSW && !NUW) in computeKnownBitsAddSub()
364 KnownOut = KnownBits::computeForAddSub(Add, NSW, NUW, Known2, KnownOut); in computeKnownBitsAddSub()
366 if (!Add && NSW && !KnownOut.isNonNegative() && in computeKnownBitsAddSub()
372 static void computeKnownBitsMul(const Value *Op0, const Value *Op1, bool NSW, in computeKnownBitsMul() argument
382 if (NSW) { in computeKnownBitsMul()
1233 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local
1235 computeKnownBitsMul(I->getOperand(0), I->getOperand(1), NSW, NUW, in computeKnownBitsFromOperator()
1403 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local
1404 auto KF = [NUW, NSW](const KnownBits &KnownVal, const KnownBits &KnownAmt, in computeKnownBitsFromOperator()
[all …]
H A DInstructionSimplify.cpp3397 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp() local
3398 if (!NUW || (ICmpInst::isSigned(Pred) && !NSW) || in simplifyICmpWithBinOp()
3469 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp() local
3470 if (!NUW && !NSW) in simplifyICmpWithBinOp()
3472 if (!NSW && ICmpInst::isSigned(Pred)) in simplifyICmpWithBinOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h329 LLVM_ABI static KnownBits computeForAddSub(bool Add, bool NSW, bool NUW,
341 bool NSW = false, bool NUW = false) {
342 return computeForAddSub(/*Add=*/true, NSW, NUW, LHS, RHS);
347 bool NSW = false, bool NUW = false) {
348 return computeForAddSub(/*Add=*/false, NSW, NUW, LHS, RHS);
428 bool NUW = false, bool NSW = false,
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp60 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, bool NUW, in computeForAddSub() argument
91 if (NSW) { in computeForAddSub()
103 if (NSW) { in computeForAddSub()
113 if (NSW) { in computeForAddSub()
286 bool NSW, bool ShAmtNonZero) { in shl() argument
296 if (NSW) { in shl()
316 if (NUW && NSW && MinShiftAmount != 0) in shl()
324 if (NUW && NSW) in shl()
328 if (NSW) in shl()
339 if (NSW) { in shl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp632 bool NSW = WO->isSigned(); in processOverflowIntrinsic() local
637 setDeducedOverflowingFlags(NewOp, Opcode, NSW, NUW); in processOverflowIntrinsic()
657 bool NSW = SI->isSigned(); in processSaturatingInst() local
662 setDeducedOverflowingFlags(BinOp, Opcode, NSW, NUW); in processSaturatingInst()
1173 bool NSW = BinOp->hasNoSignedWrap(); in processBinOp() local
1175 if (NSW && NUW) in processBinOp()
1192 if (!NSW) { in processBinOp()
H A DReassociate.cpp1043 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul() local
1046 if (NSW && (NUW || SA->getValue().ult(BitWidth - 1))) in ConvertShiftToMul()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFileBuilder.cpp303 BinaryStreamWriter NSW(*NS); in commit() local
304 if (auto EC = NSW.writeBytes(arrayRefFromStringRef(NSE.second))) in commit()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp569 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits() local
571 Known = KnownBits::add(LHSKnown, RHSKnown, NSW, NUW); in SimplifyDemandedUseBits()
612 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits() local
614 Known = KnownBits::sub(LHSKnown, RHSKnown, NSW, NUW); in SimplifyDemandedUseBits()
1240 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyMultipleUseDemandedBits() local
1242 Known = KnownBits::add(LHSKnown, RHSKnown, NSW, NUW); in SimplifyMultipleUseDemandedBits()
1256 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyMultipleUseDemandedBits() local
1259 Known = KnownBits::sub(LHSKnown, RHSKnown, NSW, NUW); in SimplifyMultipleUseDemandedBits()
H A DInstCombineAddSub.cpp1317 bool NSW, bool NUW) { in foldAddLikeCommutative() argument
1322 bool NSWOut = NSW && match(LHS, m_NSWSub(m_Value(), m_Value())) && in foldAddLikeCommutative()
2413 bool NSW = I.hasNoSignedWrap() && in visitSub() local
2419 R->setHasNoSignedWrap(NSW); in visitSub()
H A DInstCombineInternal.h612 Instruction *foldAddLikeCommutative(Value *LHS, Value *RHS, bool NSW,
H A DInstCombineAndOrXor.cpp3604 bool NSW; member
3687 Decomp0->NUW && Decomp1->NUW, Decomp0->NSW && Decomp1->NSW); in foldBitmaskMul()
H A DInstCombineCalls.cpp1845 bool NSW = in visitCallInst() local
1847 auto *XY = NSW ? Builder.CreateNSWMul(X, Y) : Builder.CreateMul(X, Y); in visitCallInst()
H A DInstCombineCompares.cpp5602 bool NSW = Op0HasNSW && Op1HasNSW; in foldICmpBinOp() local
5603 if (!NUW && !NSW) in foldICmpBinOp()
5605 if (!NSW && I.isSigned()) in foldICmpBinOp()
/freebsd/contrib/tzdata/
H A Daustralasia1033 # Lawlink NSW:Daylight Saving in New South Wales
1158 # reports that NSW's fall 1995 change will occur at 2:00,
1169 # NSW (including LHI and Broken Hill):
1356 # I can certainly confirm for my part that Daylight Saving in NSW did in fact
1375 # Starting autumn 2008 Victoria, NSW, South Australia, Tasmania and the ACT
1463 # has decided to join with most of NSW, the ACT, and most of Victoria
1519 # DST will start in NSW on the last Sunday of August, rather than the usual
1525 # See the following official NSW source:
1529 # Narrabri Shire (NSW) council has announced it will ignore the extension of
1535 # Victoria will follow NSW. See:
[all …]
H A Dbackward36 Link Australia/Sydney Australia/NSW
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp48 NSW = false; in PoisonFlags()
56 NSW = OBO->hasNoSignedWrap(); in PoisonFlags()
66 NSW = TI->hasNoSignedWrap(); in PoisonFlags()
77 I->setHasNoSignedWrap(NSW); in apply()
87 I->setHasNoSignedWrap(NSW); in apply()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h341 DEFINE_HELPERS(Add, NSW) // CreateNSWAdd
343 DEFINE_HELPERS(Sub, NSW) // CreateNSWSub
345 DEFINE_HELPERS(Mul, NSW) // CreateNSWMul
347 DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DScalarEvolutionExpander.h47 unsigned NSW : 1; member
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp4357 bool NSW = false; in parseValID() local
4366 NSW = true; in parseValID()
4385 if (NSW) Flags |= OverflowingBinaryOperator::NoSignedWrap; in parseValID()
7197 bool NSW = EatIfPresent(lltok::kw_nsw); in parseInstruction() local
7204 if (NSW) cast<BinaryOperator>(Inst)->setHasNoSignedWrap(true); in parseInstruction()
7279 bool NSW = EatIfPresent(lltok::kw_nsw); in parseInstruction() local
7286 if (NSW) in parseInstruction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp2448 SDNodeFlags NSW; in expandLdexp() local
2449 NSW.setNoSignedWrap(true); in expandLdexp()
2480 SDValue DecN0 = DAG.getNode(ISD::SUB, dl, ExpVT, N, MaxExp, NSW); in expandLdexp()
2484 DAG.getNode(ISD::SUB, dl, ExpVT, ClampN_Big, DoubleMaxExp, NSW); in expandLdexp()
2510 DAG.getNode(ISD::ADD, dl, ExpVT, ClampN_Small, Increment1, NSW); in expandLdexp()
2535 SDValue BiasedN = DAG.getNode(ISD::ADD, dl, ExpVT, NewN, MaxExp, NSW); in expandLdexp()
H A DSelectionDAG.cpp3831 bool NSW = Op->getFlags().hasNoSignedWrap(); in computeKnownBits() local
3835 Known = KnownBits::shl(Known, Known2, NUW, NSW, ShAmtNonZero); in computeKnownBits()
/freebsd/usr.sbin/services_mkdb/
H A Dservices62 nsw-fe 27/tcp #NSW User System FE
63 nsw-fe 27/udp #NSW User System FE
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23898 bool NSW) { in incDecVectorConstant() argument
23917 if (NSW && ((IsInc && EltC.isMaxSignedValue()) || in incDecVectorConstant()
55625 bool NSW = Add->getFlags().hasNoSignedWrap(); in promoteExtBeforeAdd() local
55627 NSW = NSW || (Sext && DAG.willNotOverflowAdd(true, AddOp0, AddOp1)); in promoteExtBeforeAdd()
55632 if ((Sext && !NSW) || (!Sext && !NUW)) in promoteExtBeforeAdd()
55665 Flags.setNoSignedWrap(NSW); in promoteExtBeforeAdd()

12