/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 | 770 unsigned int Width, bool IsSigned, roundingMode RM, 772 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM); 774 unsigned int InputSize, bool IsSigned, 777 unsigned int InputSize, bool IsSigned, 1236 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1239 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1243 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1245 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1248 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1251 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 | 145 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 147 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 148 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 151 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 154 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 155 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstraintElimination.cpp | 212 bool IsSigned = false; member 217 StackEntry(unsigned NumIn, unsigned NumOut, bool IsSigned, in StackEntry() 219 : NumIn(NumIn), NumOut(NumOut), IsSigned(IsSigned), in StackEntry() 229 bool IsSigned = false; member 233 ConstraintTy(SmallVector<int64_t, 8> Coefficients, bool IsSigned, bool IsEq, in ConstraintTy() 235 : Coefficients(std::move(Coefficients)), IsSigned(IsSigned), IsEq(IsEq), in ConstraintTy() 435 bool IsSigned, const DataLayout &DL); 444 bool IsSigned, const DataLayout &DL) { in decomposeGEP() argument 450 assert(!IsSigned && "The logic below only supports decomposition for " in decomposeGEP() 459 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 | 287 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 289 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 291 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 293 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 295 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 297 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 302 bool IsSigned) const { in getLeastIntTypeByWidth() 304 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 306 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 308 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 1053 bool IsSigned) { in multiplyOverflows() argument 1055 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows() 1061 bool IsSigned) { in isMultiple() argument 1069 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple() 1072 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple() 1073 if (IsSigned) in isMultiple() 1086 bool IsSigned = I.getOpcode() == Instruction::SDiv; in foldIDivShl() local 1103 if (!IsSigned && HasNUW) in foldIDivShl() 1107 if (IsSigned && HasNSW && (Op0->hasOneUse() || Op1->hasOneUse())) { in foldIDivShl() 1123 if (!IsSigned && in foldIDivShl() [all …]
|
H A D | InstCombineInternal.h | 274 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 327 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 328 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 345 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 346 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 364 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 365 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 371 bool IsSigned) const { in willNotOverflow() argument 373 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 374 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 | 251 bool IsDiv, bool IsSigned) const; 255 bool IsDiv, bool IsSigned) const; 648 bool IsSigned = false; in replaceMulWithMul24() local 652 IsSigned = false; in replaceMulWithMul24() 656 IsSigned = true; in replaceMulWithMul24() 672 Value *LHS = IsSigned ? Builder.CreateSExtOrTrunc(LHSVals[I], I32Ty) in replaceMulWithMul24() 674 Value *RHS = IsSigned ? Builder.CreateSExtOrTrunc(RHSVals[I], I32Ty) in replaceMulWithMul24() 677 IsSigned ? Intrinsic::amdgcn_mul_i24 : Intrinsic::amdgcn_mul_u24; in replaceMulWithMul24() 679 Result = IsSigned ? Builder.CreateSExtOrTrunc(Result, DstTy) in replaceMulWithMul24() 1195 bool IsSigned) const { in getDivNumBits() [all …]
|
/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() 262 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 267 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 271 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandLargeFpConvert.cpp | 325 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP() local 373 Value *Call = Builder.CreateCall(CTLZ, {IsSigned ? Sub : IntVal, True}); in expandIToFP() 393 Builder.CreateShl(IsSigned ? Sub : IntVal, Builder.getIntN(BitWidth, 1)); in expandIToFP() 402 Value *Shr6 = Builder.CreateLShr(IsSigned ? Sub : IntVal, in expandIToFP() 410 Value *And = Builder.CreateAnd(Shr9, IsSigned ? Sub : IntVal); in expandIToFP() 420 AAddr0->addIncoming(IsSigned ? Sub : IntVal, IfThen4); in expandIToFP() 429 if (IsSigned) in expandIToFP() 447 if (IsSigned) in expandIToFP() 467 Value *Shl26 = Builder.CreateShl(IsSigned ? Sub : IntVal, in expandIToFP() 538 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); 132 bool SelectFPToI(const Instruction *I, bool IsSigned); 178 unsigned SrcReg, bool IsSigned); 179 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned); 1018 bool IsSigned) { in PPCMoveToFPReg() argument 1023 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg() 1042 if (!IsSigned) { in PPCMoveToFPReg() 1053 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg() 1062 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument 1090 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCFragment.h | 418 bool IsSigned; variable 424 MCLEBFragment(const MCExpr &Value, bool IsSigned) in MCLEBFragment() argument 425 : MCEncodedFragmentWithFixups<8, 0>(FT_LEB, false), IsSigned(IsSigned), in MCLEBFragment() 433 bool isSigned() const { return IsSigned; } in isSigned()
|
/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/llvm/include/llvm-c/ |
H A D | ExecutionEngine.h | 55 LLVMBool IsSigned); 64 LLVMBool 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/Target/WebAssembly/ |
H A D | WebAssemblyFastISel.cpp | 176 unsigned getRegForPromotedValue(const Value *V, bool IsSigned); 583 bool IsSigned) { in getRegForPromotedValue() argument 584 return IsSigned ? getRegForSignedValue(V) : getRegForUnsignedValue(V); in getRegForPromotedValue() 1038 bool IsSigned = false; in selectICmp() local 1060 IsSigned = true; in selectICmp() 1064 IsSigned = true; in selectICmp() 1068 IsSigned = true; in selectICmp() 1072 IsSigned = true; in selectICmp() 1078 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), IsSigned); in selectICmp() 1082 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), IsSigned); in selectICmp()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 101 bool IsSigned); 367 bool IsSigned) { in simplifyIVRemainder() argument 374 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 383 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N); in simplifyIVRemainder() 393 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 409 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/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()
|