Home
last modified time | relevance | path

Searched refs:isSigned (Results 1 – 25 of 141) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp60 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert()
76 bool ThisSigned = Val.isSigned(); in compare()
120 bool IsUnsigned = !Sema.isSigned(); in getMax()
162 bool ResultIsSigned = isSigned() || Other.isSigned(); in getCommonSemantics()
240 if (CommonFXSema.isSigned()) { in mul()
256 if (CommonFXSema.isSigned()) in mul()
300 if (CommonFXSema.isSigned()) { in div()
315 if (CommonFXSema.isSigned()) { in div()
353 if (Sema.isSigned()) in shl()
432 (!isSigned() && Val != 0) || (isSigned() && Val.isMinSignedValue()); in negate()
[all …]
H A DZ3Solver.cpp612 bool isSigned) override { in mkBVAddNoOverflow() argument
615 toZ3Expr(*RHS).AST, isSigned))); in mkBVAddNoOverflow()
639 bool isSigned) override { in mkBVSubNoUnderflow() argument
642 toZ3Expr(*RHS).AST, isSigned))); in mkBVSubNoUnderflow()
664 bool isSigned) override { in mkBVMulNoOverflow() argument
667 toZ3Expr(*RHS).AST, isSigned))); in mkBVMulNoOverflow()
744 Int.isSigned() in mkBitvector()
H A DAPFloat.cpp307 bool isSigned) { in semanticsIntSizeInBits() argument
312 if (isSigned) in semanticsIntSizeInBits()
2659 if (!isSigned) { in convertToSignExtendedInteger()
2678 if (omsb >= width + !isSigned) in convertToSignExtendedInteger()
2700 unsigned int width, bool isSigned, in convertToInteger() argument
2716 bits = isSigned; in convertToInteger()
2718 bits = width - isSigned; in convertToInteger()
2721 if (sign && isSigned) in convertToInteger()
2765 if (isSigned && api.isNegative()) { in convertFromAPInt()
2782 if (isSigned && in convertFromSignExtendedInteger()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp20 Value.isSigned() && Value.isNegative()) in testInRange()
25 if (Value.isSigned() && !IsUnsigned) in testInRange()
35 if (Value.isSigned()) in testInRange()
44 if (Value.isSigned() && Value.isNegative()) in testInRange()
H A DSVals.cpp149 return Context.getIntTypeForBitwidth(Value.getBitWidth(), Value.isSigned()); in VisitConcreteInt()
301 os << Value << ' ' << (Value.isSigned() ? 'S' : 'U') << Value.getBitWidth() in dumpToStream()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h41 bool SrcIsSigned = SrcSema.isSigned(); in Convert()
42 bool DstIsSigned = DstSema.isSigned(); in Convert()
122 C.isSigned(), C.isSaturated(), BothPadded); in getCommonBinopSemantic()
180 Result = SrcSema.isSigned() ? B.CreateSIToFP(Src, OpTy) in CreateFixedToFloating()
192 bool UseSigned = DstSema.isSigned() || DstSema.hasUnsignedPadding(); in CreateFloatingToFixed()
231 bool UseSigned = CommonSema.isSigned() || CommonSema.hasUnsignedPadding(); in CreateAdd()
344 bool UseSigned = LHSSema.isSigned() || LHSSema.hasUnsignedPadding(); in CreateShl()
412 return CommonSema.isSigned() ? B.CreateICmpSLT(WideLHS, WideRHS) in CreateLT()
428 return CommonSema.isSigned() ? B.CreateICmpSLE(WideLHS, WideRHS) in CreateLE()
444 return CommonSema.isSigned() ? B.CreateICmpSGT(WideLHS, WideRHS) in CreateGT()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h49 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative()
77 bool isSigned() const { return !IsUnsigned; } in isSigned() function
84 APInt::toString(Str, Radix, isSigned());
94 return isSigned() ? isSignedIntN(64) : isIntN(63); in isRepresentableByInt64()
100 return isSigned() ? getSExtValue() : getZExtValue(); in getExtValue()
325 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues()
336 if (I1.isSigned()) { in compareValues()
337 assert(!I2.isSigned() && "Expected signed mismatch"); in compareValues()
341 assert(I2.isSigned() && "Expected signed mismatch"); in compareValues()
365 I.print(OS, I.isSigned());
H A DAPFixedPoint.h68 bool isSigned() const { return IsSigned; } in isSigned() function
157 : Val(Val, !Sema.isSigned()), Sema(Sema) {
163 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned()), Sema) {}
168 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); }
174 inline bool isSigned() const { return Sema.isSigned(); }
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp59 return (CmpInst::isSigned(P1) == CmpInst::isSigned(P2)) || in predicatesFoldable()
60 (CmpInst::isSigned(P1) && ICmpInst::isEquality(P2)) || in predicatesFoldable()
61 (CmpInst::isSigned(P2) && ICmpInst::isEquality(P1)); in predicatesFoldable()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h94 bool isSigned) { in fromBinOp() argument
104 return isSigned ? Solver->mkBVSDiv(LHS, RHS) : Solver->mkBVUDiv(LHS, RHS); in fromBinOp()
107 return isSigned ? Solver->mkBVSRem(LHS, RHS) : Solver->mkBVURem(LHS, RHS); in fromBinOp()
125 return isSigned ? Solver->mkBVSlt(LHS, RHS) : Solver->mkBVUlt(LHS, RHS); in fromBinOp()
128 return isSigned ? Solver->mkBVSgt(LHS, RHS) : Solver->mkBVUgt(LHS, RHS); in fromBinOp()
131 return isSigned ? Solver->mkBVSle(LHS, RHS) : Solver->mkBVUle(LHS, RHS); in fromBinOp()
134 return isSigned ? Solver->mkBVSge(LHS, RHS) : Solver->mkBVUge(LHS, RHS); in fromBinOp()
142 fromBinOp(Solver, LHS, BO_EQ, RHS, isSigned)); in fromBinOp()
516 bool isSigned = Ty->isSignedIntegerOrEnumerationType(); in getZeroExpr() local
523 isSigned); in getZeroExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp53 static bool isSigned(unsigned int Opcode) { in isSigned() function
80 if (isConstantPowerOfTwo(I.getOperand(1), isSigned(I.getOpcode()))) in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp98 bool isSigned() const { return DivInst->getOpcode() == Instruction::SDiv; } in isSigned() function
194 bool HasDivRemOp = TTI.hasDivRemOp(E.getType(), E.isSigned()); in optimizeDivRem()
207 Instruction *RealRem = E.isSigned() ? BinaryOperator::CreateSRem(X, Y) in optimizeDivRem()
H A DLoopBoundSplit.cpp104 APInt Max = ICmpInst::isSigned(Cond.Pred) in calculateUpperBound()
110 ICmpInst::isSigned(Cond.Pred) ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in calculateUpperBound()
403 NewBoundSCEV = ICmpInst::isSigned(ExitingCond.Pred) in splitLoopBound()
H A DCorrelatedValuePropagation.cpp300 if (!Cmp->isSigned()) in processICmp()
548 bool NSW = WO->isSigned(); in processOverflowIntrinsic()
549 bool NUW = !WO->isSigned(); in processOverflowIntrinsic()
573 bool NSW = SI->isSigned(); in processSaturatingInst()
574 bool NUW = !SI->isSigned(); in processSaturatingInst()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp62 a.IntegralPromote(b.m_integer.getBitWidth(), b.m_integer.isSigned()); in PromoteToMaxType()
201 m_float.convertFromAPInt(m_integer, m_integer.isSigned(), in FloatPromote()
235 return m_integer.isSigned(); in IsSigned()
292 if (ext.isSigned()) in GetAs()
368 if (m_integer.isSigned()) in Float()
388 if (m_integer.isSigned()) in Double()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp171 bool SelectIToFP(const Instruction *I, bool isSigned);
173 bool SelectDiv(const Instruction *I, bool isSigned);
174 bool SelectRem(const Instruction *I, bool isSigned);
1559 Opc = isSigned ? ARM::VSITOD : ARM::VUITOD; in SelectIToFP()
1585 Opc = isSigned ? ARM::VTOSIZD : ARM::VTOUIZD; in SelectFPToI()
1693 LC = isSigned ? RTLIB::SDIV_I8 : RTLIB::UDIV_I8; in SelectDiv()
1695 LC = isSigned ? RTLIB::SDIV_I16 : RTLIB::UDIV_I16; in SelectDiv()
1697 LC = isSigned ? RTLIB::SDIV_I32 : RTLIB::UDIV_I32; in SelectDiv()
1699 LC = isSigned ? RTLIB::SDIV_I64 : RTLIB::UDIV_I64; in SelectDiv()
1722 LC = isSigned ? RTLIB::SREM_I8 : RTLIB::UREM_I8; in SelectRem()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSMTAPI.h286 bool isSigned) = 0;
302 bool isSigned) = 0;
317 bool isSigned) = 0;
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h198 bool isSigned = false) {
199 add(llvm::ConstantInt::get(intTy, value, isSigned));
286 bool isSigned = false) {
287 fillPlaceholder(position, llvm::ConstantInt::get(type, value, isSigned));
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicReader.h184 bool isSigned = tmp & 0x1; in readFixedPointSemantics() local
187 return llvm::FixedPointSemantics(width, scale, isSigned, isSaturated, in readFixedPointSemantics()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h932 unsigned minRequiredElementSize(const Value *Val, bool &isSigned) const { in minRequiredElementSize() argument
941 isSigned = false; in minRequiredElementSize()
956 isSigned |= signedElement; in minRequiredElementSize()
968 isSigned = CI->getValue().isNegative(); in minRequiredElementSize()
973 isSigned = true; in minRequiredElementSize()
978 isSigned = false; in minRequiredElementSize()
982 isSigned = false; in minRequiredElementSize()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DFloating.h88 bool isSigned() const { return true; } in isSigned() function
124 APFloat::opStatus Status = F.convertFromAPInt(Val, Val.isSigned(), RM); in fromIntegral()
H A DIntegral.h77 : V(V.isSigned() ? V.getSExtValue() : V.getZExtValue()) {}
129 constexpr static bool isSigned() { return Signed; }
H A DIntegralAP.h143 static constexpr bool isSigned() { return Signed; } in isSigned() function
166 assert(Signed == RHS.isSigned()); in compare()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp271 } else if (ICmpInst::isSigned(OriginalPred) && in eliminateIVComparison()
406 if (!SE->willNotOverflow(WO->getBinaryOp(), WO->isSigned(), LHS, RHS)) in eliminateOverflowIntrinsic()
415 if (WO->isSigned()) in eliminateOverflowIntrinsic()
447 if (!SE->willNotOverflow(SI->getBinaryOp(), SI->isSigned(), LHS, RHS)) in eliminateSaturatingIntrinsic()
452 if (SI->isSigned()) in eliminateSaturatingIntrinsic()
514 if (ICI->isSigned() && !DoesSExtCollapse) in eliminateTrunc()
1518 if (!(DU.NeverNegative || IsSigned == Cmp->isSigned())) in widenLoopCompare()
1531 Value *ExtOp = createExtendInst(Op, WideType, Cmp->isSigned(), Cmp); in widenLoopCompare()
1609 if (ExtKind == ExtendKind::Zero && ICmpInst::isSigned(Pred)) in widenWithVariantUse()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp196 if (Value.isSigned()) in mapEncodedInteger()
201 if (Value.isSigned()) in mapEncodedInteger()

123456