| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APFixedPoint.h | 35 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, in FixedPointSemantics() argument 37 : Width(Width), Scale(Scale), IsSigned(IsSigned), in FixedPointSemantics() 40 assert(!(IsSigned && HasUnsignedPadding) && in FixedPointSemantics() 46 bool isSigned() const { return IsSigned; } in isSigned() 56 if (IsSigned || (!IsSigned && HasUnsignedPadding)) in getIntegralBits() 80 bool IsSigned) { in GetIntegerSemantics() argument 81 return FixedPointSemantics(Width, /*Scale=*/0, IsSigned, in GetIntegerSemantics() 89 unsigned IsSigned : 1; variable
|
| H A D | APFloat.h | 668 unsigned int Width, bool IsSigned, roundingMode RM, 670 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM); 672 unsigned int InputSize, bool IsSigned, 675 unsigned int InputSize, bool IsSigned, 1108 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1111 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1115 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1117 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1120 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1123 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger() [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 156 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 158 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 159 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 162 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 165 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth() 166 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| H A D | WebAssembly.h | 114 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 116 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 117 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 120 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 123 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 124 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGRecordLayout.h | 74 unsigned IsSigned : 1; member 96 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset(), in CGBitFieldInfo() 99 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo() 101 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 250 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 252 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 254 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 256 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 258 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 260 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 267 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 269 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 271 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() 273 return IsSigned ? SignedLong : UnsignedLong; in getLeastIntTypeByWidth() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 174 bool IsDiv, bool IsSigned) const; 877 if (IsSigned) in getDivNumBits() 888 int DivBits = getDivNumBits(I, Num, Den, 9, IsSigned); in expandDivRem24() 907 if (IsSigned) { in expandDivRem24Impl() 925 Value *FA = IsSigned ? Builder.CreateSIToFP(IA, F32Ty) in expandDivRem24Impl() 929 Value *FB = IsSigned ? Builder.CreateSIToFP(IB,F32Ty) in expandDivRem24Impl() 979 if (IsSigned) { in expandDivRem24Impl() 1062 if (IsSigned) { in expandDivRem32() 1080 if (IsSigned) { in expandDivRem32() 1155 if (IsSigned) { in expandDivRem32() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 697 bool IsSigned) { in multiplyOverflows() argument 705 bool IsSigned) { in isMultiple() argument 717 if (IsSigned) in isMultiple() 731 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local 752 if (!multiplyOverflows(*C1, *C2, Product, IsSigned)) in commonIDivTransforms() 762 if (isMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms() 770 if (isMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 788 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms() 796 if (isMultiple(C1Shifted, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 813 if (IsSigned) { in commonIDivTransforms() [all …]
|
| H A D | InstCombineInternal.h | 222 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 268 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 269 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 286 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 287 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 304 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 305 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 311 bool IsSigned) const { in willNotOverflow() argument 313 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 314 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow() [all …]
|
| H A D | InstCombineAddSub.cpp | 1021 IsSigned = false; in MatchRem() 1023 IsSigned = true; in MatchRem() 1041 static bool MatchDiv(Value *E, Value *&Op, APInt &C, bool IsSigned) { in MatchDiv() argument 1043 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv() 1047 if (!IsSigned) { in MatchDiv() 1062 static bool MulWillOverflow(APInt &C0, APInt &C1, bool IsSigned) { in MulWillOverflow() argument 1064 if (IsSigned) in MulWillOverflow() 1077 bool IsSigned; in SimplifyAddWithRemainder() local 1087 IsSigned == Rem2IsSigned) { in SimplifyAddWithRemainder() 1092 C0 == DivOpC && !MulWillOverflow(C0, C1, IsSigned)) { in SimplifyAddWithRemainder() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 184 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local 186 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt() 212 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local 217 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType() 222 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type(); in DefineExactWidthIntType() 224 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType() 237 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 242 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 244 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() 261 static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, in DefineFastIntType() argument [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | RISCVVTypes.def | 15 // - RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, IsSigned, IsFP) 36 // - IsSigned is true for vectors of signed integer elements and 44 #define RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned, IsFP)\ 54 #define RVV_VECTOR_TYPE_INT(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned) \ 55 RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned, false)
|
| H A D | AArch64SVEACLETypes.def | 15 // SVE_VECTOR_TYPE(Name, Id, SingletonId, ElKind, ElBits, IsSigned, IsFP) - 33 // - IsSigned is true for vectors of signed integer elements and 43 IsSigned, IsFP, IsBF) \
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCFastISel.cpp | 132 bool SelectIToFP(const Instruction *I, bool IsSigned); 1017 bool IsSigned) { in PPCMoveToFPReg() argument 1041 if (!IsSigned) { in PPCMoveToFPReg() 1089 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() 1091 Opc = IsSigned ? PPC::EFDCFSI : PPC::EFDCFUI; in SelectIToFP() 1103 if (!IsSigned && !Subtarget->hasFPCVT()) in SelectIToFP() 1134 Opc = IsSigned ? PPC::FCFIDS : PPC::FCFIDUS; in SelectIToFP() 1136 Opc = IsSigned ? PPC::FCFID : PPC::FCFIDU; in SelectIToFP() 1228 if (IsSigned) in SelectFPToI() 1241 if (IsSigned) in SelectFPToI() [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 76 ExactFPMathInst(ExactFP), RecurrenceType(RT), IsSigned(Signed), in RecurrenceDescriptor() 232 bool isSigned() const { return IsSigned; } in isSigned() 258 bool IsSigned = false; variable
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | ExecutionEngine.h | 55 LLVMBool IsSigned); 64 LLVMBool IsSigned);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 152 bool &IsSigned); 199 bool isEmpty(ScalarEvolution &SE, bool IsSigned) const { in isEmpty() 202 if (IsSigned) in isEmpty() 314 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 325 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 342 IsSigned = false; in INITIALIZE_PASS_DEPENDENCY() 376 bool IsSigned; in extractRangeChecksFromCond() local 681 bool IsSigned = ICmpInst::isSigned(Pred); in isSafeDecreasingBound() local 685 IsSigned ? CmpInst::ICMP_SGT : CmpInst::ICMP_UGT; in isSafeDecreasingBound() 729 bool IsSigned = ICmpInst::isSigned(Pred); in isSafeIncreasingBound() local [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 92 bool IsSigned); 377 bool IsSigned) { in simplifyIVRemainder() argument 384 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 403 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 419 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder() 1149 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst() 1189 bool IsSigned = getExtendKind(NarrowDef) == SignExtended; in cloneBitwiseIVUser() local 1193 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1197 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1432 bool IsSigned = getExtendKind(DU.NarrowDef) == SignExtended; in widenLoopCompare() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 171 unsigned getRegForPromotedValue(const Value *V, bool IsSigned); 574 bool IsSigned) { in getRegForPromotedValue() argument 575 return IsSigned ? getRegForSignedValue(V) : getRegForUnsignedValue(V); in getRegForPromotedValue() 1030 bool IsSigned = false; in selectICmp() local 1052 IsSigned = true; in selectICmp() 1056 IsSigned = true; in selectICmp() 1060 IsSigned = true; in selectICmp() 1064 IsSigned = true; in selectICmp() 1070 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), IsSigned); in selectICmp() 1074 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), IsSigned); in selectICmp()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 100 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false); 108 static ConstantInt *get(IntegerType *Ty, uint64_t V, bool IsSigned = false); 213 bool isMaxValue(bool IsSigned) const { in isMaxValue() argument 214 if (IsSigned) in isMaxValue() 225 bool isMinValue(bool IsSigned) const { in isMinValue() argument 226 if (IsSigned) in isMinValue() 1146 bool IsSigned ///< Whether C should be treated as signed or not
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyIndVar.h | 72 bool IsSigned = false; member
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 120 bool IsSigned = false; in computeRecurrenceType() local 146 IsSigned = true; in computeRecurrenceType() 159 IsSigned); in computeRecurrenceType() 259 bool IsSigned = false; in AddReductionVar() local 474 std::tie(ComputedType, IsSigned) = in AddReductionVar() 502 IsSigned, IsOrdered, CastInsts); in AddReductionVar()
|