| /llvm-project-15.0.7/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, 1106 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument 1109 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger() 1113 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument 1115 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt() 1118 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument 1121 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | IntegerTypesCheck.cpp | 93 bool IsSigned; in check() local 101 IsSigned = true; in check() 105 IsSigned = true; in check() 109 IsSigned = true; in check() 113 IsSigned = false; in check() 117 IsSigned = false; in check() 121 IsSigned = false; in check() 136 ((IsSigned ? SignedTypePrefix : UnsignedTypePrefix) + Twine(Width) + in check()
|
| /llvm-project-15.0.7/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));
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 56 bool IsSigned = false; member 63 : NumIn(NumIn), NumOut(NumOut), IsNot(IsNot), IsSigned(IsSigned), in StackEntry() 81 bool IsSigned = false; member 87 : Coefficients(Coefficients), IsSigned(IsSigned) {} in ConstraintTy() 179 bool IsSigned) { in decompose() argument 186 if (IsSigned) { in decompose() 314 bool IsSigned = CmpInst::isSigned(Pred); in getConstraint() local 352 IsSigned); in getConstraint() 588 auto &CSToUse = getCS(R.IsSigned); in addFact() 599 getValue2Index(R.IsSigned).insert(KV); in addFact() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/numerics/ |
| H A D | clamp_to_integral.pass.cpp | 24 const bool IsSigned = std::is_signed<IntT>::value; in test() local 32 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 33 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 56 const bool IsSigned = std::is_signed<IntT>::value; in test_float() local 64 {IsSigned ? static_cast<IntT>(-1) : 0, in test_float() 65 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test_float()
|
| /llvm-project-15.0.7/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 | 116 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 118 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth() 119 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 122 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 125 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth() 126 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | aix-xcoff-reloc-large.ll | 29 ; RELOC-NEXT: IsSigned: No 37 ; RELOC-NEXT: IsSigned: No 45 ; RELOC-NEXT: IsSigned: No 53 ; RELOC-NEXT: IsSigned: No 61 ; RELOC-NEXT: IsSigned: No 69 ; RELOC-NEXT: IsSigned: No 101 ; RELOC64-NEXT: IsSigned: No 109 ; RELOC64-NEXT: IsSigned: No 117 ; RELOC64-NEXT: IsSigned: No 125 ; RELOC64-NEXT: IsSigned: No [all …]
|
| H A D | aix-tls-xcoff-reloc-large.ll | 36 ; RELOC-NEXT: IsSigned: No 44 ; RELOC-NEXT: IsSigned: No 52 ; RELOC-NEXT: IsSigned: No 60 ; RELOC-NEXT: IsSigned: No 134 ; RELOC-NEXT: IsSigned: No 142 ; RELOC-NEXT: IsSigned: No 150 ; RELOC-NEXT: IsSigned: No 158 ; RELOC-NEXT: IsSigned: No 166 ; RELOC-NEXT: IsSigned: No 174 ; RELOC-NEXT: IsSigned: No [all …]
|
| H A D | aix-tls-xcoff-reloc.ll | 37 ; RELOC-NEXT: IsSigned: No 45 ; RELOC-NEXT: IsSigned: No 53 ; RELOC-NEXT: IsSigned: No 95 ; RELOC-NEXT: IsSigned: No 103 ; RELOC-NEXT: IsSigned: No 111 ; RELOC-NEXT: IsSigned: No 119 ; RELOC-NEXT: IsSigned: No 127 ; RELOC-NEXT: IsSigned: No 135 ; RELOC-NEXT: IsSigned: No 143 ; RELOC-NEXT: IsSigned: No [all …]
|
| H A D | aix-user-defined-memcpy.ll | 67 ; 32-REL-NEXT: IsSigned: No 75 ; 32-REL-NEXT: IsSigned: No 83 ; 32-REL-NEXT: IsSigned: No 91 ; 32-REL-NEXT: IsSigned: No
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 528 bool IsSigned = false; in replaceMulWithMul24() local 532 IsSigned = false; in replaceMulWithMul24() 536 IsSigned = true; in replaceMulWithMul24() 550 if (IsSigned) { in replaceMulWithMul24() 561 if (IsSigned) { in replaceMulWithMul24() 897 if (IsSigned) in getDivNumBits() 927 if (IsSigned) { in expandDivRem24Impl() 999 if (IsSigned) { in expandDivRem24Impl() 1082 if (IsSigned) { in expandDivRem32() 1100 if (IsSigned) { in expandDivRem32() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 259 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 261 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 263 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 265 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 267 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 269 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 276 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 278 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 280 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() 282 return IsSigned ? SignedLong : UnsignedLong; in getLeastIntTypeByWidth() [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 748 bool IsSigned) { in multiplyOverflows() argument 756 bool IsSigned) { in isMultiple() argument 764 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnes()) in isMultiple() 768 if (IsSigned) in isMultiple() 785 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local 816 if (!multiplyOverflows(*C1, *C2, Product, IsSigned)) in commonIDivTransforms() 826 if (isMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms() 834 if (isMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 853 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms() 878 if (IsSigned) { in commonIDivTransforms() [all …]
|
| H A D | InstCombineInternal.h | 225 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned, 267 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument 268 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd() 285 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument 286 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub() 303 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument 304 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul() 310 bool IsSigned) const { in willNotOverflow() argument 312 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow() 313 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow() [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 185 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local 223 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local 228 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType() 233 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type(); in DefineExactWidthIntType() 235 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType() 248 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local 253 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize() 257 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize() 272 if (IsSigned) in DefineLeastWidthIntType() 287 const char *Prefix = IsSigned ? "__INT_FAST" : "__UINT_FAST"; in DefineFastIntType() [all …]
|
| /llvm-project-15.0.7/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)
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/XCOFF/ |
| H A D | relocations.test | 14 # RELOCSEXP-NEXT: IsSigned: No 22 # RELOCSEXP-NEXT: IsSigned: No 32 # RELOCSEXP-NEXT: IsSigned: No
|
| H A D | reloc_overflow.test | 58 # RELOCOVERFLOW-NEXT: IsSigned: No 66 # RELOCOVERFLOW-NEXT: IsSigned: No 74 # RELOCOVERFLOW-NEXT: IsSigned: No
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCFastISel.cpp | 132 bool SelectIToFP(const Instruction *I, bool IsSigned); 1019 bool IsSigned) { in PPCMoveToFPReg() argument 1043 if (!IsSigned) { in PPCMoveToFPReg() 1091 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP() 1093 Opc = IsSigned ? PPC::EFDCFSI : PPC::EFDCFUI; in SelectIToFP() 1105 if (!IsSigned && !Subtarget->hasFPCVT()) in SelectIToFP() 1136 Opc = IsSigned ? PPC::FCFIDS : PPC::FCFIDUS; in SelectIToFP() 1138 Opc = IsSigned ? PPC::FCFID : PPC::FCFIDU; in SelectIToFP() 1230 if (IsSigned) in SelectFPToI() 1243 if (IsSigned) in SelectFPToI() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Utility/ |
| H A D | ScalarTest.cpp | 295 EXPECT_TRUE(a.IsSigned()); in TEST() 300 EXPECT_TRUE(a.IsSigned()); in TEST() 303 EXPECT_FALSE(a.IsSigned()); in TEST() 365 EXPECT_TRUE(A.IsSigned()); in TEST() 382 EXPECT_FALSE(S.IsSigned()); in TEST() 388 EXPECT_TRUE(S.IsSigned()); in TEST()
|
| /llvm-project-15.0.7/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()
|