| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 75 bool IsSigned = false; member 80 StackEntry(unsigned NumIn, unsigned NumOut, bool IsSigned, in StackEntry() 82 : NumIn(NumIn), NumOut(NumOut), IsSigned(IsSigned), in StackEntry() 102 bool IsSigned = false; member 107 ConstraintTy(SmallVector<int64_t, 8> Coefficients, bool IsSigned) in ConstraintTy() 108 : Coefficients(Coefficients), IsSigned(IsSigned) {} in ConstraintTy() 230 bool IsSigned, const DataLayout &DL); 239 SmallVectorImpl<PreconditionTy> &Preconditions, bool IsSigned, in decomposeGEP() argument 249 assert(!IsSigned && "The logic below only supports decomposition for " in decomposeGEP() 262 auto Result = decompose(InnerGEP, Preconditions, IsSigned, DL); in decomposeGEP() [all …]
|
| H A D | InductiveRangeCheckElimination.cpp | 149 bool &IsSigned); 196 bool isEmpty(ScalarEvolution &SE, bool IsSigned) const { in isEmpty() 199 if (IsSigned) in isEmpty() 294 Value *&Length, bool &IsSigned) { in INITIALIZE_PASS_DEPENDENCY() 311 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 322 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 339 IsSigned = false; in INITIALIZE_PASS_DEPENDENCY() 373 bool IsSigned; in extractRangeChecksFromCond() local 374 if (!parseRangeCheckICmp(L, ICI, SE, Index, Length, IsSigned)) in extractRangeChecksFromCond() 678 bool IsSigned = ICmpInst::isSigned(Pred); in isSafeDecreasingBound() local [all …]
|
| /openbsd-src/gnu/llvm/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 | 688 unsigned int Width, bool IsSigned, roundingMode RM, 690 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM); 692 unsigned int InputSize, bool IsSigned, 695 unsigned int InputSize, bool IsSigned, 1120 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1123 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1127 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1129 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1132 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1135 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger() [all …]
|
| /openbsd-src/gnu/llvm/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));
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 157 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 159 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 160 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 163 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 166 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth() 167 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| H A D | WebAssembly.h | 115 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 117 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 118 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 121 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 124 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 125 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 178 bool IsDiv, bool IsSigned) const; 182 bool IsDiv, bool IsSigned) const; 487 unsigned Size, unsigned NumBits, bool IsSigned) { in getMul24() argument 490 IsSigned ? Intrinsic::amdgcn_mul_i24 : Intrinsic::amdgcn_mul_u24; in getMul24() 497 IsSigned ? Intrinsic::amdgcn_mul_i24 : Intrinsic::amdgcn_mul_u24; in getMul24() 499 IsSigned ? Intrinsic::amdgcn_mulhi_i24 : Intrinsic::amdgcn_mulhi_u24; in getMul24() 530 bool IsSigned = false; in replaceMulWithMul24() local 534 IsSigned = false; in replaceMulWithMul24() 538 IsSigned = true; in replaceMulWithMul24() 552 if (IsSigned) { in replaceMulWithMul24() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 284 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 286 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 288 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 290 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 292 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 294 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 299 bool IsSigned) const { in getLeastIntTypeByWidth() 301 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 303 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 305 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 842 bool IsSigned) { in multiplyOverflows() argument 844 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows() 850 bool IsSigned) { in isMultiple() argument 858 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple() 861 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple() 862 if (IsSigned) in isMultiple() 876 bool IsSigned = I.getOpcode() == Instruction::SDiv; in foldIDivShl() local 894 if (!IsSigned && HasNUW) in foldIDivShl() 898 if (IsSigned && HasNSW && (Op0->hasOneUse() || Op1->hasOneUse())) { in foldIDivShl() 914 if (!IsSigned && in foldIDivShl() [all …]
|
| H A D | InstCombineInternal.h | 227 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 269 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 270 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 287 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 288 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 305 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 306 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 312 bool IsSigned) const { in willNotOverflow() argument 314 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 315 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow() [all …]
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 186 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local 188 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt() 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() 262 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, in DefineLeastWidthIntType() argument [all …]
|
| /openbsd-src/gnu/llvm/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) \
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandLargeFpConvert.cpp | 321 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP() local 369 Value *Call = Builder.CreateCall(CTLZ, {IsSigned ? Sub : IntVal, True}); in expandIToFP() 389 Builder.CreateShl(IsSigned ? Sub : IntVal, Builder.getIntN(BitWidth, 1)); in expandIToFP() 398 Value *Shr6 = Builder.CreateLShr(IsSigned ? Sub : IntVal, in expandIToFP() 406 Value *And = Builder.CreateAnd(Shr9, IsSigned ? Sub : IntVal); in expandIToFP() 416 AAddr0->addIncoming(IsSigned ? Sub : IntVal, IfThen4); in expandIToFP() 425 if (IsSigned) in expandIToFP() 443 if (IsSigned) in expandIToFP() 463 Value *Shl26 = Builder.CreateShl(IsSigned ? Sub : IntVal, in expandIToFP() 534 Or35 = Builder.CreateOr(IsSigned ? Or31 : And34, Shl30); in expandIToFP()
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm-c/ |
| H A D | ExecutionEngine.h | 55 LLVMBool IsSigned); 64 LLVMBool IsSigned);
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 80 IsSigned(Signed), IsOrdered(Ordered), in RecurrenceDescriptor() 257 bool isSigned() const { return IsSigned; } in isSigned() 294 bool IsSigned = false; variable
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 91 bool IsSigned); 350 bool IsSigned) { in simplifyIVRemainder() argument 357 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 366 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N); in simplifyIVRemainder() 376 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 392 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder() 1084 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned, 1174 ExtendKindMap[OrigPhi] = WI.IsSigned ? ExtendKind::Sign : ExtendKind::Zero; in WidenIV() 1178 bool IsSigned, Instruction *Use) { in createExtendInst() argument 1187 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst() [all …]
|
| /openbsd-src/gnu/llvm/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()
|