/external/pdfium/core/fxcrt/ |
D | fx_number_unittest.cpp | 13 EXPECT_FALSE(number.IsSigned()); in TEST() 21 EXPECT_TRUE(number.IsSigned()); in TEST() 28 EXPECT_TRUE(number2.IsSigned()); in TEST() 36 EXPECT_TRUE(number.IsSigned()); in TEST() 43 EXPECT_TRUE(number2.IsSigned()); in TEST() 52 EXPECT_FALSE(number.IsSigned()); in TEST() 57 EXPECT_FALSE(number.IsSigned()); in TEST() 62 EXPECT_FALSE(number.IsSigned()); in TEST() 67 EXPECT_FALSE(number.IsSigned()); in TEST() 73 EXPECT_FALSE(number.IsSigned()); in TEST() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
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
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
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()
|
/external/libcxx/test/libcxx/numerics/ |
D | clamp_to_integral.pass.cpp | 23 const bool IsSigned = std::is_signed<IntT>::value; in test() local 31 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 32 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 55 const bool IsSigned = std::is_signed<IntT>::value; in test_float() local 63 {IsSigned ? static_cast<IntT>(-1) : 0, in test_float() 64 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test_float()
|
/external/llvm-project/libcxx/test/libcxx/numerics/ |
D | clamp_to_integral.pass.cpp | 23 const bool IsSigned = std::is_signed<IntT>::value; in test() local 31 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 32 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 55 const bool IsSigned = std::is_signed<IntT>::value; in test_float() local 63 {IsSigned ? static_cast<IntT>(-1) : 0, in test_float() 64 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test_float()
|
/external/llvm-project/clang/lib/Basic/Targets/ |
D | AVR.h | 155 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument 157 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth() 158 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth() 161 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument 164 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth() 165 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
|
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()
|
/external/clang/lib/Basic/ |
D | TargetInfo.cpp | 186 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 188 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 190 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 192 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 194 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 196 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 201 bool IsSigned) const { in getLeastIntTypeByWidth() 203 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 205 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 207 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() [all …]
|
/external/clang/lib/CodeGen/ |
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()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGRecordLayout.h | 74 unsigned IsSigned : 1; member 96 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset(), in CGBitFieldInfo() 99 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo() 101 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
|
/external/llvm-project/clang/lib/Basic/ |
D | TargetInfo.cpp | 242 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth() 244 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth() 246 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth() 248 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth() 250 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth() 252 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth() 257 bool IsSigned) const { in getLeastIntTypeByWidth() 259 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth() 261 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth() 263 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth() [all …]
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | aix-xcoff-reloc-large.ll | 24 ; RELOC-NEXT: IsSigned: No 32 ; RELOC-NEXT: IsSigned: No 40 ; RELOC-NEXT: IsSigned: No 48 ; RELOC-NEXT: IsSigned: No 56 ; RELOC-NEXT: IsSigned: No 64 ; RELOC-NEXT: IsSigned: No
|
/external/llvm-project/llvm/test/tools/llvm-readobj/XCOFF/ |
D | basic.test | 96 # RELOCSEXP-NEXT: IsSigned: Yes 104 # RELOCSEXP-NEXT: IsSigned: Yes 114 # RELOCSEXP-NEXT: IsSigned: No 122 # RELOCSEXP-NEXT: IsSigned: No 130 # RELOCSEXP-NEXT: IsSigned: No 138 # RELOCSEXP-NEXT: IsSigned: No 146 # RELOCSEXP-NEXT: IsSigned: No 154 # RELOCSEXP-NEXT: IsSigned: No
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 648 bool IsSigned) { in multiplyOverflows() argument 650 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows() 656 bool IsSigned) { in isMultiple() argument 664 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in isMultiple() 667 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple() 668 if (IsSigned) in isMultiple() 682 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local 702 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms() 703 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms() 704 APInt Product(C1->getBitWidth(), /*val=*/0ULL, IsSigned); in commonIDivTransforms() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUCodeGenPrepare.cpp | 195 bool IsDiv, bool IsSigned) const; 199 bool IsDiv, bool IsSigned) const; 855 unsigned AtLeast, bool IsSigned) const { in getDivNumBits() 867 if (IsSigned) in getDivNumBits() 877 bool IsDiv, bool IsSigned) const { in expandDivRem24() 878 int DivBits = getDivNumBits(I, Num, Den, 9, IsSigned); in expandDivRem24() 881 return expandDivRem24Impl(Builder, I, Num, Den, DivBits, IsDiv, IsSigned); in expandDivRem24() 888 bool IsDiv, bool IsSigned) const { in expandDivRem24Impl() 897 if (IsSigned) { in expandDivRem24Impl() 915 Value *FA = IsSigned ? Builder.CreateSIToFP(IA, F32Ty) in expandDivRem24Impl() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 91 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 212 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 213 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 115 type->width(), !type->IsSigned(), false); in FindOrCreateToggledIntegerConstant() 126 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 137 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 88 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 90 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 211 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 212 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 115 type->width(), !type->IsSigned(), false); in FindOrCreateToggledIntegerConstant() 126 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 137 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
D | transformation_add_bit_instruction_synonym.cpp | 127 auto operand_sign = operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 132 ->IsSigned(); in IsInstructionSupported() 143 auto first_operand_sign = first_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 150 auto second_operand_sign = second_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 155 ->IsSigned(); in IsInstructionSupported()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 91 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 212 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 213 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
D | fuzzer_pass_interchange_signedness_of_integer_operands.cpp | 115 type->width(), !type->IsSigned(), false); in FindOrCreateToggledIntegerConstant() 126 component_type->width(), !component_type->IsSigned()); in FindOrCreateToggledIntegerConstant() 137 bool is_signed = !component_type->IsSigned(); in FindOrCreateToggledIntegerConstant()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 677 bool IsSigned) { in multiplyOverflows() argument 679 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows() 685 bool IsSigned) { in isMultiple() argument 693 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in isMultiple() 696 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple() 697 if (IsSigned) in isMultiple() 711 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local 729 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms() 730 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms() 731 APInt Product(C1->getBitWidth(), /*val=*/0ULL, IsSigned); in commonIDivTransforms() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | LoopUtils.h | 93 RecurrenceType(nullptr), IsSigned(false) {} in RecurrenceDescriptor() 99 UnsafeAlgebraInst(UAI), RecurrenceType(RT), IsSigned(Signed) { in RecurrenceDescriptor() 224 Type *RT, bool &IsSigned, 237 bool isSigned() { return IsSigned; } in isSigned() 254 bool IsSigned; variable
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 77 bool IsSigned); 272 bool IsSigned) { in eliminateIVRemainder() argument 288 if ((!IsSigned || SE->isKnownNonNegative(S)) && in eliminateIVRemainder() 289 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder() 295 if (IsSigned && !SE->isKnownNonNegative(LessOne)) in eliminateIVRemainder() 298 if (!SE->isKnownPredicate(IsSigned ? in eliminateIVRemainder() 430 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser() local 431 if (IsSigned || Rem->getOpcode() == Instruction::URem) { in eliminateIVUser() 432 eliminateIVRemainder(Rem, IVOperand, IsSigned); in eliminateIVUser()
|