| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | FixedPoint.h | 43 bool isSigned() const { return IsSigned; } in isSigned() function 77 : Val(Val, !Sema.isSigned()), Sema(Sema) { in APFixedPoint() 83 : APFixedPoint(llvm::APInt(Sema.getWidth(), Val, Sema.isSigned()), in APFixedPoint() 86 llvm::APSInt getValue() const { return llvm::APSInt(Val, !Sema.isSigned()); } in getValue() 90 inline bool isSigned() const { return Sema.isSigned(); } in isSigned() function
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | FixedPoint.cpp | 42 if (!DstSema.isSigned() && NewVal.isNegative()) in convert() 47 NewVal.setIsSigned(DstSema.isSigned()); in convert() 54 bool ThisSigned = Val.isSigned(); in compare() 55 bool OtherSigned = OtherVal.isSigned(); in compare() 103 bool IsUnsigned = !Sema.isSigned(); in getMax() 111 auto Val = llvm::APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | APSIntType.cpp | 21 Value.isSigned() && Value.isNegative()) in testInRange() 26 if (Value.isSigned() && !IsUnsigned) in testInRange() 36 if (Value.isSigned()) in testInRange() 45 if (Value.isSigned() && Value.isNegative()) in testInRange()
|
| H A D | BasicValueFactory.cpp | 235 if (V1.isSigned() && V1.isNegative()) in evalAPSInt() 238 if (V2.isSigned() && V2.isNegative()) in evalAPSInt() 246 if (V1.isSigned() && Amt > V1.countLeadingZeros()) in evalAPSInt() 256 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 59 bool isSigned() const { return !IsUnsigned; } in isSigned() function 66 APInt::toString(Str, Radix, isSigned()); 71 return APInt::toString(Radix, isSigned()); in toString() 78 return isSigned() ? getSExtValue() : getZExtValue(); in getExtValue() 290 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues() 301 if (I1.isSigned()) { in compareValues() 302 assert(!I2.isSigned() && "Expected signed mismatch"); in compareValues() 306 assert(I2.isSigned() && "Expected signed mismatch"); in compareValues() 330 I.print(OS, I.isSigned());
|
| H A D | APInt.h | 197 void initSlowCase(uint64_t val, bool isSigned); 278 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 285 initSlowCase(val, isSigned); in BitWidth() 1667 void print(raw_ostream &OS, bool isSigned) const; 1701 double roundToDouble(bool isSigned) const;
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | CmpInstAnalysis.cpp | 62 return (CmpInst::isSigned(P1) == CmpInst::isSigned(P2)) || in predicatesFoldable() 63 (CmpInst::isSigned(P1) && ICmpInst::isEquality(P2)) || in predicatesFoldable() 64 (CmpInst::isSigned(P2) && ICmpInst::isEquality(P1)); in predicatesFoldable()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 94 const SMTExprRef &RHS, 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() 476 bool isSigned = Ty->isSignedIntegerOrEnumerationType(); in getZeroExpr() local 483 isSigned); in getZeroExpr() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeDAG.cpp | 2064 Entry.IsSExt = isSigned; in ExpandLibCall() 2065 Entry.IsZExt = !isSigned; in ExpandLibCall() 2102 Entry.IsSExt = isSigned; in ExpandChainLibCall() 2103 Entry.IsZExt = !isSigned; in ExpandChainLibCall() 2195 Entry.IsSExt = isSigned; in ExpandDivRemLibCall() 2204 Entry.IsSExt = isSigned; in ExpandDivRemLibCall() 2205 Entry.IsZExt = !isSigned; in ExpandDivRemLibCall() 2356 if (isSigned) { in ExpandLegalINT_TO_FP() 2460 if (isSigned) continue; in PromoteLegalINT_TO_FP() 3403 if (isSigned) { in ExpandNode() [all …]
|
| H A D | LegalizeTypes.cpp | 1005 bool isSigned) { in LibCallify() argument 1009 return TLI.makeLibCall(DAG, LC, N->getValueType(0), None, isSigned, in LibCallify() 1013 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Op, isSigned, in LibCallify() 1017 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Ops, isSigned, in LibCallify() 1024 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Ops, isSigned, dl).first; in LibCallify() 1031 bool isSigned) { in ExpandChainLibCall() argument 1041 Entry.IsSExt = isSigned; in ExpandChainLibCall() 1042 Entry.IsZExt = !isSigned; in ExpandChainLibCall() 1055 .setSExtResult(isSigned) in ExpandChainLibCall() 1056 .setZExtResult(!isSigned); in ExpandChainLibCall()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 1448 bool isSigned) { in evaluateICmpRelation() argument 1464 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation() 1468 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation() 1479 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation() 1486 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation() 1514 evaluateICmpRelation(V2, V1, isSigned); in evaluateICmpRelation() 1561 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation() 1562 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation() 1565 isSigned); in evaluateICmpRelation() 1997 ICmpInst::isSigned((ICmpInst::Predicate)pred)) || in ConstantFoldCompareInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 589 unsigned minRequiredElementSize(const Value* Val, bool &isSigned) { in minRequiredElementSize() argument 598 isSigned = false; in minRequiredElementSize() 613 isSigned |= signedElement; in minRequiredElementSize() 626 isSigned = CI->getValue().isNegative(); in minRequiredElementSize() 631 isSigned = true; in minRequiredElementSize() 636 isSigned = false; in minRequiredElementSize() 640 isSigned = false; in minRequiredElementSize()
|
| H A D | TargetFolder.h | 174 bool isSigned) const { in CreateIntCast() argument 177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 81 bool isSigned(const BinaryOperator &I) const; 85 bool isSigned(const SelectInst &I) const; 202 bool AMDGPUCodeGenPrepare::isSigned(const BinaryOperator &I) const { in isSigned() function in AMDGPUCodeGenPrepare 207 bool AMDGPUCodeGenPrepare::isSigned(const SelectInst &I) const { in isSigned() function in AMDGPUCodeGenPrepare 209 cast<ICmpInst>(I.getOperand(0))->isSigned() : false; in isSigned() 286 if (isSigned(I)) { in promoteUniformOpToI32() 326 if (I.isSigned()) { in promoteUniformOpToI32() 354 if (isSigned(I)) { in promoteUniformOpToI32()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMFastISel.cpp | 179 bool SelectDiv(const Instruction *I, bool isSigned); 180 bool SelectRem(const Instruction *I, bool isSigned); 1583 Opc = isSigned ? ARM::VSITOD : ARM::VUITOD; in SelectIToFP() 1609 Opc = isSigned ? ARM::VTOSIZD : ARM::VTOUIZD; in SelectFPToI() 1717 LC = isSigned ? RTLIB::SDIV_I8 : RTLIB::UDIV_I8; in SelectDiv() 1719 LC = isSigned ? RTLIB::SDIV_I16 : RTLIB::UDIV_I16; in SelectDiv() 1721 LC = isSigned ? RTLIB::SDIV_I32 : RTLIB::UDIV_I32; in SelectDiv() 1723 LC = isSigned ? RTLIB::SDIV_I64 : RTLIB::UDIV_I64; in SelectDiv() 1746 LC = isSigned ? RTLIB::SREM_I8 : RTLIB::UREM_I8; in SelectRem() 1748 LC = isSigned ? RTLIB::SREM_I16 : RTLIB::UREM_I16; in SelectRem() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 199 bool isSigned = false) { 200 add(llvm::ConstantInt::get(intTy, value, isSigned)); 285 bool isSigned = false) { 286 fillPlaceholder(position, llvm::ConstantInt::get(type, value, isSigned));
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | Constants.h | 103 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false); 112 bool isSigned = false); 218 bool isMaxValue(bool isSigned) const { in isMaxValue() argument 219 if (isSigned) in isMaxValue() 230 bool isMinValue(bool isSigned) const { in isMinValue() argument 231 if (isSigned) in isMinValue() 1089 bool isSigned ///< Whether C should be treated as signed or not
|
| H A D | ConstantFolder.h | 196 bool isSigned) const { in CreateIntCast() argument 197 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
|
| H A D | NoFolder.h | 260 bool isSigned) const { in CreateIntCast() argument 261 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
|
| /freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 989 bool isSigned = false; in selectICmp() local 1011 isSigned = true; in selectICmp() 1015 isSigned = true; in selectICmp() 1019 isSigned = true; in selectICmp() 1023 isSigned = true; in selectICmp() 1029 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), isSigned); in selectICmp() 1033 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), isSigned); in selectICmp()
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | APFloat.cpp | 2035 MutableArrayRef<integerPart> parts, unsigned int width, bool isSigned, in convertToSignExtendedInteger() argument 2108 if (!isSigned) { in convertToSignExtendedInteger() 2127 if (omsb >= width + !isSigned) in convertToSignExtendedInteger() 2149 unsigned int width, bool isSigned, in convertToInteger() argument 2165 bits = isSigned; in convertToInteger() 2167 bits = width - isSigned; in convertToInteger() 2170 if (sign && isSigned) in convertToInteger() 2214 if (isSigned && api.isNegative()) { in convertFromAPInt() 2231 if (isSigned && in convertFromSignExtendedInteger() 2259 if (isSigned && APInt::tcExtractBit(parts, width - 1)) { in convertFromZeroExtendedInteger() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/BPF/ |
| H A D | BPFISelLowering.h | 113 bool isSigned) const;
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 106 if (!ICmpInst::isSigned(Pred)) in isSignTest() 874 if (ICmpInst::isSigned(Cond)) in foldGEPICmp() 1575 if (!Cmp.isSigned() || in foldICmpAndShift() 1870 } else if (Cmp.isSigned()) { in foldICmpShlOne() 2396 if (Cmp.isSigned()) { in foldICmpAddConstant() 3314 if (NoOp0WrapProblem && ICmpInst::isSigned(Pred)) { in foldICmpBinOp() 3427 if (!NSW && I.isSigned()) in foldICmpBinOp() 3739 bool isSignedCmp = ICmp.isSigned(); in foldICmpWithCastAndCast() 4358 if (I.isSigned()) { in foldICmpUsingKnownBits() 4546 if (I.isSigned() && in foldICmpUsingKnownBits() [all …]
|
| H A D | InstCombineAndOrXor.cpp | 167 bool isSigned, bool Inside) { in insertRangeTest() argument 168 assert((isSigned ? Lo.sle(Hi) : Lo.ule(Hi)) && in insertRangeTest() 178 if (isSigned ? Lo.isMinSignedValue() : Lo.isMinValue()) { in insertRangeTest() 179 Pred = isSigned ? ICmpInst::getSignedPredicate(Pred) : Pred; in insertRangeTest() 1044 bool IsSigned = LHS->isSigned() || RHS->isSigned(); in foldAndOfICmps() 1139 if (CmpInst::isSigned(PredL) || in foldAndOfICmps() 1140 (ICmpInst::isEquality(PredL) && CmpInst::isSigned(PredR))) in foldAndOfICmps() 2038 bool IsSigned = LHS->isSigned() || RHS->isSigned(); in foldOrOfICmps() 2125 if (CmpInst::isSigned(PredL) || in foldOrOfICmps() 2126 (ICmpInst::isEquality(PredL) && CmpInst::isSigned(PredR))) in foldOrOfICmps() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordSerialization.cpp | 120 if (N.isSigned() || !N.isIntN(64)) in consume_numeric()
|