| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APFixedPoint.h | 44 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, in FixedPointSemantics() argument 46 : FixedPointSemantics(Width, Lsb{-static_cast<int>(Scale)}, IsSigned, in FixedPointSemantics() 48 FixedPointSemantics(unsigned Width, Lsb Weight, bool IsSigned, in FixedPointSemantics() argument 50 : Width(Width), LsbWeight(Weight.LsbWeight), IsSigned(IsSigned), in FixedPointSemantics() 53 assert(!(IsSigned && HasUnsignedPadding) && in FixedPointSemantics() 68 bool isSigned() const { return IsSigned; } in isSigned() 75 bool hasSignOrPaddingBit() const { return IsSigned || HasUnsignedPadding; } in hasSignOrPaddingBit() 105 bool IsSigned) { in GetIntegerSemantics() argument 106 return FixedPointSemantics(Width, /*Scale=*/0, IsSigned, in GetIntegerSemantics() 113 IsSigned == Other.IsSigned && IsSaturated == Other.IsSaturated && [all …]
|
| H A D | APFloat.h | 879 unsigned int Width, bool IsSigned, 881 LLVM_ABI opStatus convertFromAPInt(const APInt &Input, bool IsSigned, 885 bool IsSigned, 889 bool IsSigned, 1349 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1352 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1356 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1358 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1361 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1364 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | BCD.h | 27 bool IsSigned = true) { 30 size_t RunLen = ByteLen - static_cast<unsigned>(IsSigned); 35 if (IsSigned) { 46 inline ResultT decodePackedBCD(const ValT Val, bool IsSigned = true) { 48 reinterpret_cast<const uint8_t *>(&Val), sizeof(ValT), IsSigned));
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 165 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 167 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 168 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 171 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 174 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth() 175 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| H A D | WebAssembly.h | 150 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 152 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 153 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 156 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 159 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 160 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 197 bool IsSigned = false; member 202 StackEntry(unsigned NumIn, unsigned NumOut, bool IsSigned, in StackEntry() 204 : NumIn(NumIn), NumOut(NumOut), IsSigned(IsSigned), in StackEntry() 214 bool IsSigned = false; member 218 ConstraintTy(SmallVector<int64_t, 8> Coefficients, bool IsSigned, bool IsEq, in ConstraintTy() 220 : Coefficients(std::move(Coefficients)), IsSigned(IsSigned), IsEq(IsEq), in ConstraintTy() 445 bool IsSigned, const DataLayout &DL); 454 bool IsSigned, const DataLayout &DL) { in decomposeGEP() argument 460 assert(!IsSigned && "The logic below only supports decomposition for " in decomposeGEP() 471 auto IdxResult = decompose(Index, Preconditions, IsSigned, DL); in decomposeGEP() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGRecordLayout.h | 75 unsigned IsSigned : 1; 97 : Offset(), Size(), IsSigned(), StorageSize(), VolatileOffset(), in CGBitFieldInfo() 100 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo() 102 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 310 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 312 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 314 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 316 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 318 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 320 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 325 bool IsSigned) const { in getLeastIntTypeByWidth() 327 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 329 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 331 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 263 bool IsDiv, bool IsSigned) const; 267 bool IsDiv, bool IsSigned) const; 652 bool IsSigned = false; in replaceMulWithMul24() local 656 IsSigned = false; in replaceMulWithMul24() 660 IsSigned = true; in replaceMulWithMul24() 676 Value *LHS = IsSigned ? Builder.CreateSExtOrTrunc(LHSVals[I], I32Ty) in replaceMulWithMul24() 678 Value *RHS = IsSigned ? Builder.CreateSExtOrTrunc(RHSVals[I], I32Ty) in replaceMulWithMul24() 681 IsSigned ? Intrinsic::amdgcn_mul_i24 : Intrinsic::amdgcn_mul_u24; in replaceMulWithMul24() 683 Result = IsSigned ? Builder.CreateSExtOrTrunc(Result, DstTy) in replaceMulWithMul24() 1196 bool IsSigned) const { in getDivNumBits() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 1161 bool IsSigned) { in multiplyOverflows() argument 1163 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows() 1169 bool IsSigned) { in isMultiple() argument 1177 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple() 1180 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple() 1181 if (IsSigned) in isMultiple() 1194 bool IsSigned = I.getOpcode() == Instruction::SDiv; in foldIDivShl() local 1211 if (!IsSigned && HasNUW) in foldIDivShl() 1215 if (IsSigned && HasNSW && (Op0->hasOneUse() || Op1->hasOneUse())) { in foldIDivShl() 1231 if (!IsSigned && in foldIDivShl() [all …]
|
| H A D | InstCombineInternal.h | 275 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 328 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 329 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 346 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 347 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 365 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 366 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 372 bool IsSigned) const { in willNotOverflow() argument 374 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 375 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsTargetTransformInfo.cpp | 13 bool MipsTTIImpl::hasDivRemOp(Type *DataType, bool IsSigned) const { in hasDivRemOp() 15 return TLI->isOperationLegalOrCustom(IsSigned ? ISD::SDIVREM : ISD::UDIVREM, in hasDivRemOp()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 197 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local 198 llvm::for_each(StringRef(IsSigned ? "di" : "ouxX"), Emitter); in DefineFmt() 202 if (LangOpts.C23 && !IsSigned) in DefineFmt() 237 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local 242 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType() 247 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type(); in DefineExactWidthIntType() 249 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType() 264 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 269 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 273 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandFp.cpp | 330 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP() local 378 Value *Call = Builder.CreateCall(CTLZ, {IsSigned ? Sub : IntVal, True}); in expandIToFP() 398 Builder.CreateShl(IsSigned ? Sub : IntVal, Builder.getIntN(BitWidth, 1)); in expandIToFP() 407 Value *Shr6 = Builder.CreateLShr(IsSigned ? Sub : IntVal, in expandIToFP() 415 Value *And = Builder.CreateAnd(Shr9, IsSigned ? Sub : IntVal); in expandIToFP() 425 AAddr0->addIncoming(IsSigned ? Sub : IntVal, IfThen4); in expandIToFP() 434 if (IsSigned) in expandIToFP() 452 if (IsSigned) in expandIToFP() 472 Value *Shl26 = Builder.CreateShl(IsSigned ? Sub : IntVal, in expandIToFP() 543 Or35 = Builder.CreateOr(IsSigned ? Or31 : And34, Shl30); in expandIToFP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCFastISel.cpp | 126 bool SelectIToFP(const Instruction *I, bool IsSigned); 127 bool SelectFPToI(const Instruction *I, bool IsSigned); 168 bool IsSigned); 169 Register PPCMoveToFPReg(MVT VT, Register SrcReg, bool IsSigned); 1006 bool IsSigned) { in PPCMoveToFPReg() argument 1011 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg() 1030 if (!IsSigned) { in PPCMoveToFPReg() 1041 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg() 1050 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument 1078 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaHexagon.cpp | 28 bool IsSigned; in CheckHexagonBuiltinArgument() member 270 int32_t Min = A.IsSigned ? -(1 << (A.BitWidth - 1)) : 0; in CheckHexagonBuiltinArgument() 271 int32_t Max = (1 << (A.IsSigned ? A.BitWidth - 1 : A.BitWidth)) - 1; in CheckHexagonBuiltinArgument()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cpp | 213 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local 214 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl() 221 if (!IsSigned && !Opts.FromUnrecoverableHandler && in handleIntegerOverflowImpl() 229 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS) in handleIntegerOverflowImpl() 252 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local 253 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl() 259 if (!IsSigned && flags()->silence_unsigned_overflow) in handleNegateOverflowImpl() 264 if (IsSigned) in handleNegateOverflowImpl()
|
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/ |
| H A D | NearestIntegerOperations.h | 265 template <bool IsSigned, typename T> 287 if constexpr (IsSigned) { in fromfp() 335 template <bool IsSigned, typename T> 338 T rounded_value = fromfp<IsSigned>(x, rnd, width); in fromfpx()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 42 LLVMBool IsSigned) { in LLVMCreateGenericValueOfInt() argument 44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 74 LLVMBool IsSigned) { in LLVMGenericValueToInt() argument 76 if (IsSigned) in LLVMGenericValueToInt()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | AArch64ACLETypes.def | 28 // - (Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned) 58 // - IsSigned is true for vectors of signed integer elements and 85 #define SVE_VECTOR_TYPE_DETAILS(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned, I… 105 #define SVE_VECTOR_TYPE_INT(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned) \ 106 …SVE_VECTOR_TYPE_DETAILS(Name, MangledName, Id, SingletonId, NumEls, ElBits, NF, IsSigned, false, f…
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | ExecutionEngine.h | 64 LLVMBool IsSigned); 74 LLVMBool IsSigned);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 101 bool IsSigned); 369 bool IsSigned) { in simplifyIVRemainder() argument 376 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 385 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N); in simplifyIVRemainder() 395 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 411 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder() 1143 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned, 1235 ExtendKindMap[OrigPhi] = WI.IsSigned ? ExtendKind::Sign : ExtendKind::Zero; in WidenIV() 1239 bool IsSigned, Instruction *Use) { in createExtendInst() argument 1248 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 99 IsSigned(Signed), IsOrdered(Ordered), in RecurrenceDescriptor() 329 bool isSigned() const { return IsSigned; } in isSigned() 366 bool IsSigned = false; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 99 bool IsSigned = false; in computeRecurrenceType() local 125 IsSigned = true; in computeRecurrenceType() 134 IsSigned); in computeRecurrenceType() 261 bool IsSigned = false; in AddReductionVar() local 571 std::tie(ComputedType, IsSigned) = in AddReductionVar() 601 FMF, ExactFPMathInst, RecurrenceType, IsSigned, in AddReductionVar() 737 auto CheckRange = [&](bool IsSigned) { in isFindIVPattern() argument 739 IsSigned ? SE.getSignedRange(AR) : SE.getUnsignedRange(AR); in isFindIVPattern() 743 APInt Sentinel = IsSigned ? APInt::getSignedMinValue(NumBits) in isFindIVPattern() 747 if (IsSigned) in isFindIVPattern()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSection.h | 605 bool IsSigned; variable 611 MCLEBFragment(const MCExpr &Value, bool IsSigned) in MCLEBFragment() argument 612 : MCEncodedFragment(FT_LEB, false), IsSigned(IsSigned), Value(&Value) {} in MCLEBFragment() 617 bool isSigned() const { return IsSigned; } in isSigned()
|