Home
last modified time | relevance | path

Searched refs:IsUnsigned (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h25 bool IsUnsigned = false; variable
33 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
36 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt()
78 bool isSigned() const { return !IsUnsigned; } in isSigned()
79 bool isUnsigned() const { return IsUnsigned; } in isUnsigned()
80 void setIsUnsigned(bool Val) { IsUnsigned = Val; } in setIsUnsigned()
81 void setIsSigned(bool Val) { IsUnsigned = !Val; } in setIsSigned()
110 return APSInt(APInt::trunc(width), IsUnsigned); in trunc()
114 if (IsUnsigned) in extend()
115 return APSInt(zext(width), IsUnsigned); in extend()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h21 bool IsUnsigned; variable
25 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType()
28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType()
31 bool isUnsigned() const { return IsUnsigned; } in isUnsigned()
41 Value.setIsUnsigned(IsUnsigned); in apply()
56 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue()
61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue()
66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue()
70 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); in getValue()
92 return BitWidth == Other.BitWidth && IsUnsigned == Other.IsUnsigned;
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp19 if (IsUnsigned && !AllowSignConversions && in testInRange()
25 if (Value.isSigned() && !IsUnsigned) in testInRange()
36 MinBits = Value.getSignificantBits() - IsUnsigned; in testInRange()
38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp343 bool IsUnsigned = false; in expandAtomicBinOpSubword() local
392 IsUnsigned = true; in expandAtomicBinOpSubword()
396 IsUnsigned = true; in expandAtomicBinOpSubword()
408 IsUnsigned = true; in expandAtomicBinOpSubword()
412 IsUnsigned = true; in expandAtomicBinOpSubword()
494 unsigned SLTScratch4 = IsUnsigned ? SLTu : SLT; in expandAtomicBinOpSubword()
502 if (IsUnsigned) { in expandAtomicBinOpSubword()
511 const unsigned SROp = IsUnsigned ? Mips::SRL : Mips::SRA; in expandAtomicBinOpSubword()
776 bool IsUnsigned = false; in expandAtomicBinOp() local
827 IsUnsigned = true; in expandAtomicBinOp()
[all …]
H A DMipsFastISel.cpp193 unsigned getRegEnsuringSimpleIntegerWidening(const Value *, bool IsUnsigned);
633 bool IsUnsigned = CI->isUnsigned(); in emitCmp() local
634 unsigned LeftReg = getRegEnsuringSimpleIntegerWidening(Left, IsUnsigned); in emitCmp()
637 unsigned RightReg = getRegEnsuringSimpleIntegerWidening(Right, IsUnsigned); in emitCmp()
2102 bool IsUnsigned) { in getRegEnsuringSimpleIntegerWidening() argument
2113 if (!emitIntExt(VMVT, VReg, MVT::i32, TempReg, IsUnsigned)) in getRegEnsuringSimpleIntegerWidening()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp41 ID.AddInteger((unsigned) (IsUnsigned ? 1 : 0)); in Profile()
H A DAPFixedPoint.cpp130 bool IsUnsigned = !Sema.isSigned(); in getMax() local
131 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
132 if (IsUnsigned && Sema.hasUnsignedPadding()) in getMax()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBuiltinFunctionChecker.cpp153 bool IsUnsigned = Res->isUnsignedIntegerType(); in checkOverflow() local
158 auto MinValType = llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in checkOverflow()
159 auto MaxValType = llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in checkOverflow()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h511 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument
514 APInt(NumBits, static_cast<uint64_t>(Value.Enum), !IsUnsigned), \
515 IsUnsigned);
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateBase.h131 unsigned IsUnsigned : 1;
370 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
374 Integer.IsUnsigned);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h216 Value *CreateScalarDiv(Value *LHS, Value *RHS, bool IsUnsigned) { in CreateScalarDiv() argument
227 : (IsUnsigned ? B.CreateUDiv(LHS, RHS) : B.CreateSDiv(LHS, RHS)); in CreateScalarDiv()
H A DDebugInfoMetadata.h468 bool IsUnsigned, ArrayRef<Metadata *> Ops);
470 bool IsUnsigned, ArrayRef<Metadata *> Ops) in DIEnumerator() argument
471 : DIEnumerator(C, Storage, APInt(64, Value, !IsUnsigned), IsUnsigned, in DIEnumerator()
476 bool IsUnsigned, StringRef Name,
478 return getImpl(Context, Value, IsUnsigned,
482 const APInt &Value, bool IsUnsigned,
492 (int64_t Value, bool IsUnsigned, StringRef Name),
493 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
495 (int64_t Value, bool IsUnsigned, MDString *Name),
496 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetBuiltins.h278 NeonTypeFlags(EltType ET, bool IsUnsigned, bool IsQuad) : Flags(ET) { in NeonTypeFlags() argument
279 if (IsUnsigned) in NeonTypeFlags()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h471 bool IsUnsigned;
473 MDNodeKeyImpl(APInt Value, bool IsUnsigned, MDString *Name)
474 : Value(std::move(Value)), Name(Name), IsUnsigned(IsUnsigned) {}
475 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
476 : Value(APInt(64, Value, !IsUnsigned)), Name(Name),
477 IsUnsigned(IsUnsigned) {}
480 IsUnsigned(N->isUnsigned()) {}
484 Value == RHS->getValue() && IsUnsigned == RHS->isUnsigned() &&
H A DAsmWriter.cpp1917 void printMetadataOrInt(StringRef Name, const Metadata *MD, bool IsUnsigned,
1921 void printAPInt(StringRef Name, const APInt &Int, bool IsUnsigned,
1992 bool IsUnsigned, bool ShouldSkipZero) { in printMetadataOrInt() argument
1998 if (IsUnsigned) in printMetadataOrInt()
2015 bool IsUnsigned, bool ShouldSkipZero) { in printAPInt() argument
2020 Int.print(Out, !IsUnsigned); in printAPInt()
2258 bool IsUnsigned = !N->isSigned(); in writeDIFixedPointType() local
2259 Printer.printAPInt("numerator", N->getNumerator(), IsUnsigned, false); in writeDIFixedPointType()
2260 Printer.printAPInt("denominator", N->getDenominator(), IsUnsigned, false); in writeDIFixedPointType()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h297 getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, Type *ResTy,
301 getMulAccReductionCost(bool IsUnsigned, Type *ResTy, VectorType *ValTy,
H A DARMISelDAGToDAG.cpp199 bool IsUnsigned,
2707 bool IsUnsigned = SDValueToConstBool(N->getOperand(1)); in SelectBaseMVE_VMLLDAV() local
2710 if (IsUnsigned) { in SelectBaseMVE_VMLLDAV()
2725 const uint16_t *Opcodes = IsUnsigned ? OpcodesU : OpcodesS; in SelectBaseMVE_VMLLDAV()
3163 bool IsUnsigned, in transformFixedFloatingPointConversion() argument
3173 if (ScalarBits == 16 && !FMulFlags.hasNoInfs() && IsUnsigned) in transformFixedFloatingPointConversion()
3244 Opcode = IsUnsigned ? ARM::MVE_VCVTf16u16_fix : ARM::MVE_VCVTf16s16_fix; in transformFixedFloatingPointConversion()
3246 Opcode = IsUnsigned ? ARM::MVE_VCVTu16f16_fix : ARM::MVE_VCVTs16f16_fix; in transformFixedFloatingPointConversion()
3250 Opcode = IsUnsigned ? ARM::MVE_VCVTf32u32_fix : ARM::MVE_VCVTf32s32_fix; in transformFixedFloatingPointConversion()
3252 Opcode = IsUnsigned ? ARM::MVE_VCVTu32f32_fix : ARM::MVE_VCVTs32f32_fix; in transformFixedFloatingPointConversion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIShrinkInstructions.cpp42 bool isKImmOrKUImmOperand(const MachineOperand &Src, bool &IsUnsigned) const;
182 bool &IsUnsigned) const { in isKImmOrKUImmOperand()
184 IsUnsigned = false; in isKImmOrKUImmOperand()
189 IsUnsigned = true; in isKImmOrKUImmOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h444 getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, Type *ResTy,
449 bool IsUnsigned, Type *ResTy, VectorType *Ty,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp1858 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu; in Select() local
1871 if (!IsUnsigned || CVal != 0) in Select()
1874 } else if (!IsUnsigned && CVal == APInt::getSignedMinValue( in Select()
1886 VMSLTOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix \ in Select()
1888 VMSGTOpcode = IsUnsigned ? RISCV::PseudoVMSGTU_VX_##suffix \ in Select()
1953 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu_mask; in Select() local
1966 if (!IsUnsigned || CVal != 0) in Select()
1969 } else if (!IsUnsigned && CVal == APInt::getSignedMinValue( in Select()
1982 VMSLTOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix \ in Select()
1984 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix##_MASK \ in Select()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DDebugInfo.h619 LLVMBool IsUnsigned);
632 uint64_t SizeInBits, const uint64_t Words[], LLVMBool IsUnsigned);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp1270 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty, in getExtendedReductionCost() argument
1272 return TTIImpl->getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF, in getExtendedReductionCost()
1277 bool IsUnsigned, Type *ResTy, VectorType *Ty, in getMulAccReductionCost() argument
1279 return TTIImpl->getMulAccReductionCost(IsUnsigned, ResTy, Ty, CostKind); in getMulAccReductionCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2634 bool IsUnsigned = IID == Intrinsic::umax || IID == Intrinsic::umin; in getTypeBasedIntrinsicInstrCost() local
2636 IsUnsigned ? CmpInst::ICMP_UGT : CmpInst::ICMP_SGT; in getTypeBasedIntrinsicInstrCost()
3162 getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, Type *ResTy, in getExtendedReductionCost() argument
3166 FTy && IsUnsigned && Opcode == Instruction::Add && in getExtendedReductionCost()
3184 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getExtendedReductionCost()
3191 getMulAccReductionCost(bool IsUnsigned, Type *ResTy, VectorType *Ty, in getMulAccReductionCost() argument
3200 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getMulAccReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfUnit.cpp980 bool IsUnsigned) { in addDiscriminant() argument
982 addInt(Variant, dwarf::DW_AT_discr_value, CI->getValue(), IsUnsigned); in addDiscriminant()
994 if (IsUnsigned) in addDiscriminant()
1810 bool IsUnsigned = DTy && DD->isUnsignedDIType(DTy); in constructEnumTypeDIE() local
1833 addConstantValue(Enumerator, Enum->getValue(), IsUnsigned); in constructEnumTypeDIE()
H A DDwarfUnit.h352 void addDiscriminant(DIE &Variant, Constant *Discriminant, bool IsUnsigned);

123