/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 | 739 unsigned int Width, bool IsSigned, roundingMode RM, 741 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM); 743 unsigned int InputSize, bool IsSigned, 746 unsigned int InputSize, bool IsSigned, 1186 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1189 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1193 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1195 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1198 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1201 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 | 159 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 161 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 162 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 165 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 168 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth() 169 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
H A D | WebAssembly.h | 140 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 142 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 143 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 146 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 149 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 150 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 211 bool IsSigned = false; member 218 : NumIn(NumIn), NumOut(NumOut), IsSigned(IsSigned), in StackEntry() 228 bool IsSigned = false; member 234 : Coefficients(Coefficients), IsSigned(IsSigned), IsEq(IsEq), IsNe(IsNe) { in ConstraintTy() 487 if (Ty->isPointerTy() && !IsSigned) { in decompose() 503 if (IsSigned) { in decompose() 644 bool IsSigned = CmpInst::isSigned(Pred); in getConstraint() local 680 IsSigned, IsEq, IsNe); in getConstraint() 1403 Info.popLastConstraint(E.IsSigned); in removeEntryFromStack() 1489 auto &CSToUse = getCS(R.IsSigned); in addFact() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGRecordLayout.h | 74 unsigned IsSigned : 1; member 96 : Offset(), Size(), IsSigned(), StorageSize(), VolatileOffset(), in CGBitFieldInfo() 99 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo() 101 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | TargetInfo.cpp | 286 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 288 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 290 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 292 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 294 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 296 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 303 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 305 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 307 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() 309 return IsSigned ? SignedLong : UnsignedLong; in getLeastIntTypeByWidth() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 924 bool IsSigned) { in isMultiple() argument 936 if (IsSigned) in isMultiple() 966 if (!IsSigned && HasNUW) in foldIDivShl() 986 if (!IsSigned && in foldIDivShl() 1122 if (IsSigned && in commonIDivTransforms() 1128 if (!IsSigned && in commonIDivTransforms() 1142 if (IsSigned) { in commonIDivTransforms() 1179 if ((IsSigned && HasNSW) || (!IsSigned && HasNUW)) { in commonIDivTransforms() 1188 if (!IsSigned && Op1->hasOneUse() && in commonIDivTransforms() 1231 if (IsSigned && OB0HasNSW) { in commonIDivTransforms() [all …]
|
H A D | InstCombineInternal.h | 269 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 322 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 323 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 340 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 341 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 358 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 359 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 365 bool IsSigned) const { in willNotOverflow() argument 367 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 368 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) { in hasDivRemOp() argument 15 return TLI->isOperationLegalOrCustom(IsSigned ? ISD::SDIVREM : ISD::UDIVREM, in hasDivRemOp()
|
H A D | MipsTargetTransformInfo.h | 35 bool hasDivRemOp(Type *DataType, bool IsSigned);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 250 bool IsDiv, bool IsSigned) const; 646 bool IsSigned = false; in replaceMulWithMul24() local 650 IsSigned = false; in replaceMulWithMul24() 654 IsSigned = true; in replaceMulWithMul24() 1205 if (IsSigned) in getDivNumBits() 1233 if (IsSigned) { in expandDivRem24Impl() 1305 if (IsSigned) { in expandDivRem24Impl() 1389 if (IsSigned) { in expandDivRem32() 1407 if (IsSigned) { in expandDivRem32() 1482 if (IsSigned) { in expandDivRem32() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 186 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local 224 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local 229 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType() 234 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type(); in DefineExactWidthIntType() 236 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType() 249 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 254 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 258 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() 273 if (IsSigned) in DefineLeastWidthIntType() 288 const char *Prefix = IsSigned ? "__INT_FAST" : "__UINT_FAST"; in DefineFastIntType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandLargeFpConvert.cpp | 322 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP() local 370 Value *Call = Builder.CreateCall(CTLZ, {IsSigned ? Sub : IntVal, True}); in expandIToFP() 390 Builder.CreateShl(IsSigned ? Sub : IntVal, Builder.getIntN(BitWidth, 1)); in expandIToFP() 399 Value *Shr6 = Builder.CreateLShr(IsSigned ? Sub : IntVal, in expandIToFP() 407 Value *And = Builder.CreateAnd(Shr9, IsSigned ? Sub : IntVal); in expandIToFP() 417 AAddr0->addIncoming(IsSigned ? Sub : IntVal, IfThen4); in expandIToFP() 426 if (IsSigned) in expandIToFP() 444 if (IsSigned) in expandIToFP() 464 Value *Shl26 = Builder.CreateShl(IsSigned ? Sub : IntVal, in expandIToFP() 535 Or35 = Builder.CreateOr(IsSigned ? Or31 : And34, Shl30); in expandIToFP()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCFastISel.cpp | 131 bool SelectIToFP(const Instruction *I, bool IsSigned); 1018 bool IsSigned) { in PPCMoveToFPReg() argument 1042 if (!IsSigned) { in PPCMoveToFPReg() 1090 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() 1092 Opc = IsSigned ? PPC::EFDCFSI : PPC::EFDCFUI; in SelectIToFP() 1104 if (!IsSigned && !Subtarget->hasFPCVT()) in SelectIToFP() 1135 Opc = IsSigned ? PPC::FCFIDS : PPC::FCFIDUS; in SelectIToFP() 1137 Opc = IsSigned ? PPC::FCFID : PPC::FCFIDU; in SelectIToFP() 1229 if (IsSigned) in SelectFPToI() 1242 if (IsSigned) in SelectFPToI() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | ExecutionEngine.h | 55 LLVMBool IsSigned); 64 LLVMBool IsSigned);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCFragment.h | 433 bool IsSigned; variable 439 MCLEBFragment(const MCExpr &Value, bool IsSigned, MCSection *Sec = nullptr) 441 IsSigned(IsSigned), Value(&Value) { 448 bool isSigned() const { return IsSigned; } in isSigned()
|
/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/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngineBindings.cpp | 43 LLVMBool IsSigned) { in LLVMCreateGenericValueOfInt() argument 45 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 75 LLVMBool IsSigned) { in LLVMGenericValueToInt() argument 77 if (IsSigned) in LLVMGenericValueToInt()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | IVDescriptors.h | 82 IsSigned(Signed), IsOrdered(Ordered), in RecurrenceDescriptor() 257 bool isSigned() const { return IsSigned; } in isSigned() 294 bool IsSigned = false; variable
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 93 bool IsSigned); 355 bool IsSigned) { in simplifyIVRemainder() argument 362 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 381 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 397 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder() 1218 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst() 1258 bool IsSigned = getExtendKind(NarrowDef) == ExtendKind::Sign; in cloneBitwiseIVUser() local 1262 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1266 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1517 bool IsSigned = getExtendKind(DU.NarrowDef) == ExtendKind::Sign; in widenLoopCompare() local [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
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/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFastISel.cpp | 172 unsigned getRegForPromotedValue(const Value *V, bool IsSigned); 575 bool IsSigned) { in getRegForPromotedValue() argument 576 return IsSigned ? getRegForSignedValue(V) : getRegForUnsignedValue(V); in getRegForPromotedValue() 1031 bool IsSigned = false; in selectICmp() local 1053 IsSigned = true; in selectICmp() 1057 IsSigned = true; in selectICmp() 1061 IsSigned = true; in selectICmp() 1065 IsSigned = true; in selectICmp() 1071 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), IsSigned); in selectICmp() 1075 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), IsSigned); in selectICmp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
H A D | SystemZMCAsmBackend.cpp | 50 auto handleImmValue = [&](bool IsSigned, unsigned W) -> uint64_t { in extractBitsForFixup() argument 51 if (!(IsSigned ? checkFixupInRange(minIntN(W), maxIntN(W)) in extractBitsForFixup()
|