Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp60 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert()
69 NewVal.setIsSigned(DstSema.isSigned()); in convert()
76 bool ThisSigned = Val.isSigned(); in compare()
77 bool OtherSigned = OtherVal.isSigned(); in compare()
120 bool IsUnsigned = !Sema.isSigned(); in getMax()
128 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin()
133 APSInt Val(Sema.getWidth(), !Sema.isSigned()); in getEpsilon()
150 APFloat::opStatus Status = F.convertFromAPInt(MaxInt, MaxInt.isSigned(), in fitsInFloatSemantics()
152 if ((Status & APFloat::opOverflow) || !isSigned()) in fitsInFloatSemantics()
156 Status = F.convertFromAPInt(MinInt, MinInt.isSigned(), in fitsInFloatSemantics()
[all …]
H A DZ3Solver.cpp624 bool isSigned) override { in mkBVAddNoOverflow() argument
627 toZ3Expr(*RHS).AST, isSigned))); in mkBVAddNoOverflow()
651 bool isSigned) override { in mkBVSubNoUnderflow() argument
654 toZ3Expr(*RHS).AST, isSigned))); in mkBVSubNoUnderflow()
676 bool isSigned) override { in mkBVMulNoOverflow() argument
679 toZ3Expr(*RHS).AST, isSigned))); in mkBVMulNoOverflow()
756 Int.isSigned() in mkBitvector()
/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()
257 bool UseSigned = CommonSema.isSigned() || CommonSema.hasUnsignedPadding(); in CreateSub()
291 bool UseSigned = CommonSema.isSigned() || CommonSema.hasUnsignedPadding(); in CreateMul()
319 bool UseSigned = CommonSema.isSigned() || CommonSema.hasUnsignedPadding(); in CreateDiv()
344 bool UseSigned = LHSSema.isSigned() || LHSSema.hasUnsignedPadding(); in CreateShl()
[all …]
H A DIntrinsicInst.h793 static bool isSigned(Intrinsic::ID ID) { in isSigned() function
794 return ICmpInst::isSigned(getPredicate(ID)); in isSigned()
798 bool isSigned() const { return isSigned(getIntrinsicID()); }; in isSigned() function
860 static bool isSigned(Intrinsic::ID ID) { return ID == Intrinsic::scmp; } in isSigned() function
861 bool isSigned() const { return isSigned(getIntrinsicID()); } in isSigned() function
864 return isSigned(ID) ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in getGTPredicate()
871 return isSigned(ID) ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in getLTPredicate()
910 bool isSigned() const;
/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/clang/lib/CodeGen/
H A DCGPointerAuthInfo.h47 explicit operator bool() const { return isSigned(); }
49 bool isSigned() const { in isSigned() function
54 assert(isSigned()); in getKey()
58 assert(isSigned()); in getDiscriminator()
H A DCGPointerAuth.cpp177 assert((Left.isSigned() || Right.isSigned()) && in equalAuthPolicies()
179 if (Left.isSigned() != Right.isSigned()) in equalAuthPolicies()
583 if (!CurInfo.isSigned() && !NewInfo.isSigned()) in getResignedAddress()
H A DAddress.h228 bool isSigned() const { return PtrAuthInfo.isSigned(); } in isSigned() function
252 if (!isSigned()) in emitRawPointer()
/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()
121 return isSigned ? Solver->mkBVAshr(LHS, RHS) : Solver->mkBVLshr(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
[all …]
/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()
818 m_integer.isSigned() in CreateAPFloatFromAPSInt()
825 m_integer.isSigned() in CreateAPFloatFromAPSInt()
/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.cpp292 if (!Cmp->isSigned()) in processICmp()
590 if (MM->isSigned() && in processMinMaxIntrinsic()
610 bool NSW = WO->isSigned(); in processOverflowIntrinsic()
611 bool NUW = !WO->isSigned(); in processOverflowIntrinsic()
635 bool NSW = SI->isSigned(); in processSaturatingInst()
636 bool NUW = !SI->isSigned(); in processSaturatingInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp53 static bool isSigned(unsigned int Opcode) { in isSigned() function
108 if (isConstantPowerOfTwo(I.getOperand(1), isSigned(I.getOpcode()))) in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp171 bool SelectIToFP(const Instruction *I, bool isSigned);
172 bool SelectFPToI(const Instruction *I, bool isSigned);
173 bool SelectDiv(const Instruction *I, bool isSigned);
174 bool SelectRem(const Instruction *I, bool isSigned);
1524 bool ARMFastISel::SelectIToFP(const Instruction *I, bool isSigned) { in SelectIToFP() argument
1547 /*isZExt*/!isSigned); in SelectIToFP()
1557 if (Ty->isFloatTy()) Opc = isSigned ? ARM::VSITOS : ARM::VUITOS; in SelectIToFP()
1559 Opc = isSigned ? ARM::VSITOD : ARM::VUITOD; in SelectIToFP()
1569 bool ARMFastISel::SelectFPToI(const Instruction *I, bool isSigned) { in SelectFPToI() argument
1583 if (OpTy->isFloatTy()) Opc = isSigned ? ARM::VTOSIZS : ARM::VTOUIZS; in SelectFPToI()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h201 bool isSigned = false) {
202 add(llvm::ConstantInt::get(intTy, value, isSigned));
294 bool isSigned = false) {
295 fillPlaceholder(position, llvm::ConstantInt::get(type, value, isSigned));
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSMTAPI.h299 bool isSigned) = 0;
315 bool isSigned) = 0;
330 bool isSigned) = 0;
/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/CodeGen/GlobalISel/
H A DGenericMachineInstrs.h442 bool isSigned() const { in isSigned() function
453 bool isUnsigned() const { return !isSigned(); } in isUnsigned()
476 bool isSigned() const { return getOpcode() == TargetOpcode::G_SADDO; } in isSigned() function
909 bool isSigned() const { return getOpcode() == TargetOpcode::G_SCMP; } in isSigned() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h975 unsigned minRequiredElementSize(const Value *Val, bool &isSigned) const { in minRequiredElementSize() argument
984 isSigned = false; in minRequiredElementSize()
999 isSigned |= signedElement; in minRequiredElementSize()
1011 isSigned = CI->getValue().isNegative(); in minRequiredElementSize()
1016 isSigned = true; in minRequiredElementSize()
1021 isSigned = false; in minRequiredElementSize()
1025 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()

123456