Home
last modified time | relevance | path

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

/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.cpp345 bool canDistributeOver(bool NUW, bool NSW) const { in canDistributeOver()
349 return (!ZExtBits || NUW) && (!SExtBits || NSW); in canDistributeOver()
387 bool NSW = IsNSW && (Other.isOne() || (MulIsNSW && Offset.isZero())); in mul() local
388 return LinearExpression(Val, Scale * Other, Offset * Other, NSW); in mul()
411 bool NUW = true, NSW = true; in GetLinearExpression() local
414 NSW &= BOp->hasNoSignedWrap(); in GetLinearExpression()
416 if (!Val.canDistributeOver(NUW, NSW)) in GetLinearExpression()
422 NUW = NSW = false; in GetLinearExpression()
440 E.IsNSW &= NSW; in GetLinearExpression()
447 E.IsNSW &= NSW; in GetLinearExpression()
[all …]
H A DValueTracking.cpp359 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()
374 static void computeKnownBitsMul(const Value *Op0, const Value *Op1, bool NSW, in computeKnownBitsMul() argument
384 if (NSW) { in computeKnownBitsMul()
1094 bool NSW = Q.IIQ.hasNoSignedWrap(cast<OverflowingBinaryOperator>(I)); in computeKnownBitsFromOperator() local
1095 computeKnownBitsMul(I->getOperand(0), I->getOperand(1), NSW, DemandedElts, in computeKnownBitsFromOperator()
1263 bool NSW = Q.IIQ.hasNoSignedWrap(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()
[all …]
H A DInstructionSimplify.cpp3408 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp() local
3409 if (!NUW || (ICmpInst::isSigned(Pred) && !NSW) || in simplifyICmpWithBinOp()
3480 bool NSW = Q.IIQ.hasNoSignedWrap(LBO) && Q.IIQ.hasNoSignedWrap(RBO); in simplifyICmpWithBinOp() local
3481 if (!NUW && !NSW) in simplifyICmpWithBinOp()
3483 if (!NSW && ICmpInst::isSigned(Pred)) in simplifyICmpWithBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp51 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, bool NUW, in computeForAddSub() argument
82 if (NSW) { in computeForAddSub()
94 if (NSW) { in computeForAddSub()
104 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.cpp610 bool NSW = WO->isSigned(); in processOverflowIntrinsic() local
615 setDeducedOverflowingFlags(NewOp, Opcode, NSW, NUW); in processOverflowIntrinsic()
635 bool NSW = SI->isSigned(); in processSaturatingInst() local
640 setDeducedOverflowingFlags(BinOp, Opcode, NSW, NUW); in processSaturatingInst()
1153 bool NSW = BinOp->hasNoSignedWrap(); in processBinOp() local
1155 if (NSW && NUW) in processBinOp()
1172 if (!NSW) { in processBinOp()
H A DReassociate.cpp1050 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap(); in ConvertShiftToMul() local
1053 if (NSW && (NUW || SA->getValue().ult(BitWidth - 1))) in ConvertShiftToMul()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFileBuilder.cpp304 BinaryStreamWriter NSW(*NS); in commit()
305 if (auto EC = NSW.writeBytes(arrayRefFromStringRef(NSE.second))) in commit()
299 BinaryStreamWriter NSW(*NS); commit() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h324 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 DInstCombineSimplifyDemanded.cpp563 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits() local
565 Known = KnownBits::computeForAddSub(true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits()
597 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyDemandedUseBits() local
599 Known = KnownBits::computeForAddSub(false, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits()
1234 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyMultipleUseDemandedBits() local
1237 KnownBits::computeForAddSub(/*Add=*/true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyMultipleUseDemandedBits()
1251 bool NSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in SimplifyMultipleUseDemandedBits() local
1254 Known = KnownBits::computeForAddSub(/*Add=*/false, NSW, NUW, LHSKnown, in SimplifyMultipleUseDemandedBits()
H A DInstCombineCalls.cpp1657 bool NSW = in visitCallInst() local
1659 auto *XY = NSW ? Builder.CreateNSWMul(X, Y) : Builder.CreateMul(X, Y); in visitCallInst()
H A DInstCombineCompares.cpp5325 bool NSW = Op0HasNSW && Op1HasNSW; in foldICmpBinOp() local
5326 if (!NUW && !NSW) in foldICmpBinOp()
5328 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
[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()
54 NSW = OBO->hasNoSignedWrap(); in PoisonFlags()
64 NSW = TI->hasNoSignedWrap(); in PoisonFlags()
71 I->setHasNoSignedWrap(NSW); in apply()
81 I->setHasNoSignedWrap(NSW); in apply()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h412 DEFINE_HELPERS(Add, NSW) // CreateNSWAdd
414 DEFINE_HELPERS(Sub, NSW) // CreateNSWSub
416 DEFINE_HELPERS(Mul, NSW) // CreateNSWMul
418 DEFINE_HELPERS(Shl, NSW) // CreateNSWShl
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DScalarEvolutionExpander.h46 unsigned NSW : 1; member
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp2421 SDNodeFlags NSW; in expandLdexp() local
2422 NSW.setNoSignedWrap(true); in expandLdexp()
2453 SDValue DecN0 = DAG.getNode(ISD::SUB, dl, ExpVT, N, MaxExp, NSW); in expandLdexp()
2457 DAG.getNode(ISD::SUB, dl, ExpVT, ClampN_Big, DoubleMaxExp, NSW); in expandLdexp()
2483 DAG.getNode(ISD::ADD, dl, ExpVT, ClampN_Small, Increment1, NSW); in expandLdexp()
2508 SDValue BiasedN = DAG.getNode(ISD::ADD, dl, ExpVT, NewN, MaxExp, NSW); in expandLdexp()
H A DSelectionDAG.cpp3588 bool NSW = Op->getFlags().hasNoSignedWrap(); in computeKnownBits() local
3592 Known = KnownBits::shl(Known, Known2, NUW, NSW, ShAmtNonZero); in computeKnownBits()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp4256 bool NSW = false; in parseValID() local
4265 NSW = true; in parseValID()
4284 if (NSW) Flags |= OverflowingBinaryOperator::NoSignedWrap; in parseValID()
6897 bool NSW = EatIfPresent(lltok::kw_nsw); in parseInstruction() local
6904 if (NSW) cast<BinaryOperator>(Inst)->setHasNoSignedWrap(true); in parseInstruction()
6973 bool NSW = EatIfPresent(lltok::kw_nsw); in parseInstruction() local
6980 if (NSW) in parseInstruction()
/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.cpp23158 bool NSW) { in incDecVectorConstant() argument
23177 if (NSW && ((IsInc && EltC.isMaxSignedValue()) || in incDecVectorConstant()
53762 bool NSW = Add->getFlags().hasNoSignedWrap(); in promoteExtBeforeAdd() local
53764 NSW = NSW || (Sext && DAG.willNotOverflowAdd(true, AddOp0, AddOp1)); in promoteExtBeforeAdd()
53769 if ((Sext && !NSW) || (!Sext && !NUW)) in promoteExtBeforeAdd()
53802 Flags.setNoSignedWrap(NSW); in promoteExtBeforeAdd()
/freebsd/contrib/one-true-awk/testdir/
H A Dfunstack.in6974 corpsource = "Univ. Sydney, NSW, Australia",
10142 corpsource = "Univ. Sydney, NSW, Australia",
12963 corpsource = "Univ. New South Wales, Kensington, NSW, Australia",
15887 corpsource = "Univ. of New South Wales, Kensington, NSW, Australia",