| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 70 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert() 79 NewVal.setIsSigned(DstSema.isSigned()); in convert() 86 bool ThisSigned = Val.isSigned(); in compare() 87 bool OtherSigned = OtherVal.isSigned(); in compare() 130 bool IsUnsigned = !Sema.isSigned(); in getMax() 138 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() 143 APSInt Val(Sema.getWidth(), !Sema.isSigned()); in getEpsilon() 160 APFloat::opStatus Status = F.convertFromAPInt(MaxInt, MaxInt.isSigned(), in fitsInFloatSemantics() 162 if ((Status & APFloat::opOverflow) || !isSigned()) in fitsInFloatSemantics() 166 Status = F.convertFromAPInt(MinInt, MinInt.isSigned(), in fitsInFloatSemantics() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | APSIntType.cpp | 20 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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 41 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 D | IntrinsicInst.h | 806 static bool isSigned(Intrinsic::ID ID) { in isSigned() function 807 return ICmpInst::isSigned(getPredicate(ID)); in isSigned() 811 bool isSigned() const { return isSigned(getIntrinsicID()); }; in isSigned() function 873 static bool isSigned(Intrinsic::ID ID) { return ID == Intrinsic::scmp; } in isSigned() function 874 bool isSigned() const { return isSigned(getIntrinsicID()); } in isSigned() function 877 return isSigned(ID) ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in getGTPredicate() 884 return isSigned(ID) ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in getLTPredicate() 923 LLVM_ABI bool isSigned() const;
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenRecordLayout.h | 77 unsigned isSigned : 1; member 105 : offset(), size(), isSigned(), storageSize(), volatileOffset(), in CIRGenBitFieldInfo() 108 CIRGenBitFieldInfo(unsigned offset, unsigned size, bool isSigned, in CIRGenBitFieldInfo() 110 : offset(offset), size(size), isSigned(isSigned), in CIRGenBitFieldInfo()
|
| H A D | CIRGenBuilder.cpp | 44 bool isSigned = intVal.isSigned(); in getConstInt() local 46 cir::IntType t = isSigned ? getSIntNTy(width) : getUIntNTy(width); in getConstInt() 48 isSigned ? intVal.getSExtValue() : intVal.getZExtValue()); in getConstInt()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 50 bool isNegative() const { return isSigned() && APInt::isNegative(); } in isNegative() 78 bool isSigned() const { return !IsUnsigned; } in isSigned() function 85 APInt::toString(Str, Radix, isSigned()); 95 return isSigned() ? isSignedIntN(64) : isIntN(63); in isRepresentableByInt64() 101 return isSigned() ? getSExtValue() : getZExtValue(); in getExtValue() 326 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues() 337 if (I1.isSigned()) { in compareValues() 338 assert(!I2.isSigned() && "Expected signed mismatch"); in compareValues() 342 assert(I2.isSigned() && "Expected signed mismatch"); in compareValues() 366 I.print(OS, I.isSigned());
|
| H A D | APFixedPoint.h | 68 bool isSigned() const { return IsSigned; } in isSigned() function 166 : Val(Val, !Sema.isSigned()), Sema(Sema) { 172 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned(), 179 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); } 185 inline bool isSigned() const { return Sema.isSigned(); }
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGPointerAuthInfo.h | 47 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 D | Address.h | 181 return !isSigned() ? Pointer.getPointer() : nullptr; in getPointerIfNotSigned() 230 bool isSigned() const { return PtrAuthInfo.isSigned(); } in isSigned() function 254 if (!isSigned()) in emitRawPointer()
|
| H A D | CGPointerAuth.cpp | 289 assert((Left.isSigned() || Right.isSigned()) && in equalAuthPolicies() 291 if (Left.isSigned() != Right.isSigned()) in equalAuthPolicies() 720 if (!CurInfo.isSigned() && !NewInfo.isSigned()) in getResignedAddress()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CmpInstAnalysis.cpp | 59 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() 95 if (ICmpInst::isSigned(Pred) ? C.isMaxSignedValue() : C.isMaxValue()) in decomposeBitTestICmp()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | FixedPoint.h | 37 return FixedPoint(APInt(Sem.getWidth(), 0ULL, Sem.isSigned()), Sem); in zero() 56 bool isSigned() const { return V.isSigned(); } in isSigned() function 63 bool isMinusOne() const { return V.isSigned() && V.getValue() == -1; } in isMinusOne() 112 APInt I(BitWidth, 0ull, !Sem.isSigned()); in deserialize()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 96 bool isSigned) { in fromBinOp() argument 106 return isSigned ? Solver->mkBVSDiv(LHS, RHS) : Solver->mkBVUDiv(LHS, RHS); in fromBinOp() 109 return isSigned ? Solver->mkBVSRem(LHS, RHS) : Solver->mkBVURem(LHS, RHS); in fromBinOp() 123 return isSigned ? Solver->mkBVAshr(LHS, RHS) : Solver->mkBVLshr(LHS, RHS); in fromBinOp() 127 return isSigned ? Solver->mkBVSlt(LHS, RHS) : Solver->mkBVUlt(LHS, RHS); in fromBinOp() 130 return isSigned ? Solver->mkBVSgt(LHS, RHS) : Solver->mkBVUgt(LHS, RHS); in fromBinOp() 133 return isSigned ? Solver->mkBVSle(LHS, RHS) : Solver->mkBVUle(LHS, RHS); in fromBinOp() 136 return isSigned ? Solver->mkBVSge(LHS, RHS) : Solver->mkBVUge(LHS, RHS); in fromBinOp() 144 fromBinOp(Solver, LHS, BO_EQ, RHS, isSigned)); in fromBinOp() 518 bool isSigned = Ty->isSignedIntegerOrEnumerationType(); in getZeroExpr() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/ |
| H A D | CIRAttrs.cpp | 127 const bool isSigned = ty.isSigned(); in parseIntLiteralImpl() local 131 value = mlir::APInt(ty.getWidth(), ivalue, isSigned, /*implicitTrunc=*/true); in parseIntLiteralImpl() 141 if (ty.isSigned()) in parseIntLiteral() 148 if (ty.isSigned()) in printIntLiteral()
|
| H A D | CIRTypes.cpp | 402 bool isSigned; in parse() local 413 isSigned = true; in parse() 415 isSigned = false; in parse() 436 return IntType::get(context, width, isSigned); in parse() 440 char sign = isSigned() ? 's' : 'u'; in print() 457 unsigned width, bool isSigned) { in verify() argument
|
| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Scalar.cpp | 62 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() 817 m_integer.isSigned() in CreateAPFloatFromAPSInt() 824 m_integer.isSigned() in CreateAPFloatFromAPSInt()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DivRemPairs.cpp | 98 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()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandLargeDivRem.cpp | 52 static bool isSigned(unsigned int Opcode) { in isSigned() function 107 if (isConstantPowerOfTwo(I.getOperand(1), isSigned(I.getOpcode()))) in runImpl()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/ |
| H A D | CIRTypeInterfaces.td | 28 /*methodName=*/"isSigned", 32 return $_type.isSigned();
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMFastISel.cpp | 196 bool SelectIToFP(const Instruction *I, bool isSigned); 197 bool SelectFPToI(const Instruction *I, bool isSigned); 198 bool SelectDiv(const Instruction *I, bool isSigned); 199 bool SelectRem(const Instruction *I, bool isSigned); 1574 bool ARMFastISel::SelectIToFP(const Instruction *I, bool isSigned) { in SelectIToFP() argument 1598 /*isZExt*/!isSigned); in SelectIToFP() 1610 if (Ty->isFloatTy()) Opc = isSigned ? ARM::VSITOS : ARM::VUITOS; in SelectIToFP() 1612 Opc = isSigned ? ARM::VSITOD : ARM::VUITOD; in SelectIToFP() 1622 bool ARMFastISel::SelectFPToI(const Instruction *I, bool isSigned) { in SelectFPToI() argument 1637 if (OpTy->isFloatTy()) Opc = isSigned ? ARM::VTOSIZS : ARM::VTOUIZS; in SelectFPToI() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 201 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 D | SMTAPI.h | 308 bool isSigned) = 0; 324 bool isSigned) = 0; 339 bool isSigned) = 0;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GenericMachineInstrs.h | 445 bool isSigned() const { in isSigned() function 456 bool isUnsigned() const { return !isSigned(); } in isUnsigned() 479 bool isSigned() const { return getOpcode() == TargetOpcode::G_SADDO; } in isSigned() function 496 bool isSigned() const { return getOpcode() == TargetOpcode::G_SSUBO; } in isSigned() function 974 bool isSigned() const { return getOpcode() == TargetOpcode::G_SCMP; } in isSigned() function
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | AbstractBasicReader.h | 183 bool isSigned = tmp & 0x1; in readFixedPointSemantics() local 186 return llvm::FixedPointSemantics(width, scale, isSigned, isSaturated, in readFixedPointSemantics()
|