| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | FixedPoint.h | 34 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, in FixedPointSemantics() argument 36 : Width(Width), Scale(Scale), IsSigned(IsSigned), in FixedPointSemantics() 43 bool isSigned() const { return IsSigned; } in isSigned() 50 if (IsSigned || (!IsSigned && HasUnsignedPadding)) in getIntegralBits() 59 bool IsSigned; variable
|
| /freebsd-12.1/contrib/llvm/tools/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 | 102 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 104 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 105 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 108 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 111 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 112 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGRecordLayout.h | 75 unsigned IsSigned : 1; member 85 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset() {} in CGBitFieldInfo() 87 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo() 89 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 231 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 233 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 235 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 237 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 239 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 241 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 248 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 250 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 252 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() 254 return IsSigned ? SignedLong : UnsignedLong; in getLeastIntTypeByWidth() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 560 bool IsSigned) { in multiplyOverflows() argument 568 bool IsSigned) { in isMultiple() argument 580 if (IsSigned) in isMultiple() 594 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local 617 if (!multiplyOverflows(*C1, *C2, Product, IsSigned)) in commonIDivTransforms() 627 if (isMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms() 635 if (isMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 653 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms() 661 if (isMultiple(C1Shifted, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 678 if (IsSigned) { in commonIDivTransforms() [all …]
|
| H A D | InstCombineInternal.h | 507 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 508 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 525 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 526 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 543 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 544 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 550 bool IsSigned) const { in willNotOverflow() argument 552 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 553 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 554 case Instruction::Mul: return willNotOverflowMul(LHS, RHS, CxtI, IsSigned); in willNotOverflow()
|
| H A D | InstCombineAddSub.cpp | 928 IsSigned = false; in MatchRem() 930 IsSigned = true; in MatchRem() 948 static bool MatchDiv(Value *E, Value *&Op, APInt &C, bool IsSigned) { in MatchDiv() argument 950 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv() 954 if (!IsSigned) { in MatchDiv() 969 static bool MulWillOverflow(APInt &C0, APInt &C1, bool IsSigned) { in MulWillOverflow() argument 971 if (IsSigned) in MulWillOverflow() 984 bool IsSigned; in SimplifyAddWithRemainder() local 994 IsSigned == Rem2IsSigned) { in SimplifyAddWithRemainder() 999 C0 == DivOpC && !MulWillOverflow(C0, C1, IsSigned)) { in SimplifyAddWithRemainder() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 140 bool IsDiv, bool IsSigned) const; 523 if (IsSigned) in expandDivRem24() 532 if (IsSigned) { in expandDivRem24() 550 Value *FA = IsSigned ? Builder.CreateSIToFP(IA, F32Ty) in expandDivRem24() 554 Value *FB = IsSigned ? Builder.CreateSIToFP(IB,F32Ty) in expandDivRem24() 572 Value *IQ = IsSigned ? Builder.CreateFPToSI(FQ, I32Ty) in expandDivRem24() 598 if (IsSigned) { in expandDivRem24() 624 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; in expandDivRem32() local 631 if (IsSigned) { in expandDivRem32() 650 if (IsSigned) { in expandDivRem32() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/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() 219 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType() 232 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 237 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 239 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() 250 const char *Prefix = IsSigned ? "__INT_LEAST" : "__UINT_LEAST"; in DefineLeastWidthIntType() 256 static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, in DefineFastIntType() argument [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 141 bool IsSigned = true; member in __anon72252c870111::InductiveRangeCheck 145 bool &IsSigned); 156 bool isSigned() const { return IsSigned; } in isSigned() 196 if (IsSigned) in isEmpty() 291 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 302 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY() 319 IsSigned = false; in INITIALIZE_PASS_DEPENDENCY() 353 bool IsSigned; in extractRangeChecksFromCond() local 383 IRC.IsSigned = IsSigned; in extractRangeChecksFromCond() 673 bool IsSigned = ICmpInst::isSigned(Pred); in isSafeDecreasingBound() local [all …]
|
| H A D | DivRemPairs.cpp | 86 bool IsSigned = DivInst->getOpcode() == Instruction::SDiv; in optimizeDivRem() local 87 bool HasDivRemOp = TTI.hasDivRemOp(DivInst->getType(), IsSigned); in optimizeDivRem()
|
| H A D | IndVarSimplify.cpp | 844 bool IsSigned = false; member 854 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast() local 855 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast() 886 WI.IsSigned = IsSigned; in visitIVCast() 891 if (WI.IsSigned != IsSigned) in visitIVCast() 1038 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst() 1078 bool IsSigned = getExtendKind(NarrowDef) == SignExtended; in cloneBitwiseIVUser() local 1082 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1086 IsSigned, NarrowUse); in cloneBitwiseIVUser() 1333 bool IsSigned = getExtendKind(DU.NarrowDef) == SignExtended; in widenLoopCompare() local [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | APFloat.h | 640 unsigned int Width, bool IsSigned, roundingMode RM, 642 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM); 644 unsigned int InputSize, bool IsSigned, 647 unsigned int InputSize, bool IsSigned, 1070 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1073 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1077 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1079 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1082 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1085 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/PowerPC/ |
| H A D | PPCFastISel.cpp | 1049 if (!IsSigned) { in PPCMoveToFPReg() 1097 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() 1099 Opc = IsSigned ? PPC::EFDCFSI : PPC::EFDCFUI; in SelectIToFP() 1111 if (!IsSigned && !PPCSubTarget->hasFPCVT()) in SelectIToFP() 1142 Opc = IsSigned ? PPC::FCFIDS : PPC::FCFIDUS; in SelectIToFP() 1144 Opc = IsSigned ? PPC::FCFID : PPC::FCFIDU; in SelectIToFP() 1204 if (DstVT == MVT::i64 && !IsSigned && in SelectFPToI() 1238 if (IsSigned) in SelectFPToI() 1245 if (IsSigned) in SelectFPToI() 1250 Opc = IsSigned ? PPC::FCTIDZ : PPC::FCTIDUZ; in SelectFPToI() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | IVDescriptors.h | 96 UnsafeAlgebraInst(UAI), RecurrenceType(RT), IsSigned(Signed) { in RecurrenceDescriptor() 231 bool isSigned() { return IsSigned; } in isSigned() 248 bool IsSigned = false; variable
|
| H A D | TargetTransformInfo.h | 506 bool hasDivRemOp(Type *DataType, bool IsSigned) const; 994 ReductionFlags() : IsMaxOp(false), IsSigned(false), NoNaN(false) {} in ReductionFlags() 996 bool IsSigned; ///< Whether the operation is a signed int reduction. member 1073 virtual bool hasDivRemOp(Type *DataType, bool IsSigned) = 0; 1317 bool hasDivRemOp(Type *DataType, bool IsSigned) override { in hasDivRemOp() argument 1318 return Impl.hasDivRemOp(DataType, IsSigned); in hasDivRemOp()
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cc | 171 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local 172 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl() 179 if (!IsSigned && !Opts.FromUnrecoverableHandler && in handleIntegerOverflowImpl() 187 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS) in handleIntegerOverflowImpl() 210 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local 211 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl() 217 if (!IsSigned && flags()->silence_unsigned_overflow) in handleNegateOverflowImpl() 222 if (IsSigned) in handleNegateOverflowImpl()
|
| /freebsd-12.1/contrib/llvm/include/llvm-c/ |
| H A D | ExecutionEngine.h | 56 LLVMBool IsSigned); 65 LLVMBool IsSigned);
|
| /freebsd-12.1/contrib/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-12.1/contrib/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 117 bool IsSigned = false; in computeRecurrenceType() local 143 IsSigned = true; in computeRecurrenceType() 156 IsSigned); in computeRecurrenceType() 232 bool IsSigned = false; in AddReductionVar() local 420 std::tie(ComputedType, IsSigned) = in AddReductionVar() 446 ReduxDesc.getUnsafeAlgebraInst(), RecurrenceType, IsSigned, CastInsts); in AddReductionVar()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 89 bool IsSigned); 356 bool IsSigned) { in simplifyIVRemainder() argument 363 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder() 372 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N); in simplifyIVRemainder() 382 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder() 398 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder()
|
| H A D | LoopUtils.cpp | 847 MinMaxKind = Flags.IsSigned ? RD::MRK_SIntMax : RD::MRK_UIntMax; in createSimpleTargetReduction() 849 return Builder.CreateIntMaxReduce(Src, Flags.IsSigned); in createSimpleTargetReduction() 852 MinMaxKind = Flags.IsSigned ? RD::MRK_SIntMin : RD::MRK_UIntMin; in createSimpleTargetReduction() 854 return Builder.CreateIntMinReduce(Src, Flags.IsSigned); in createSimpleTargetReduction() 904 Flags.IsSigned = (MMKind == RD::MRK_SIntMax || MMKind == RD::MRK_SIntMin); in createTargetReduction()
|
| /freebsd-12.1/contrib/llvm/include/llvm/MC/ |
| H A D | MCFragment.h | 491 bool IsSigned; variable 497 : MCFragment(FT_LEB, false, Sec), Value(&Value_), IsSigned(IsSigned_) { in MCFragment() 506 bool isSigned() const { return IsSigned; } in isSigned()
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelDAGToDAG.cpp | 3383 bool IsSigned = false; in tryBFE() local 3540 IsSigned = true; in tryBFE() 3556 if (IsSigned) { in tryBFE() 3562 if (IsSigned) { in tryBFE() 3716 bool IsSigned) { in GetConvertOpcode() argument 3725 return IsSigned ? NVPTX::CVT_s16_s8 : NVPTX::CVT_u16_u8; in GetConvertOpcode() 3727 return IsSigned ? NVPTX::CVT_s32_s8 : NVPTX::CVT_u32_u8; in GetConvertOpcode() 3729 return IsSigned ? NVPTX::CVT_s64_s8 : NVPTX::CVT_u64_u8; in GetConvertOpcode() 3736 return IsSigned ? NVPTX::CVT_s8_s16 : NVPTX::CVT_u8_u16; in GetConvertOpcode() 3747 return IsSigned ? NVPTX::CVT_s8_s32 : NVPTX::CVT_u8_u32; in GetConvertOpcode() [all …]
|