Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h24 bool IsUnsigned = false; variable
32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
35 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt()
77 bool isSigned() const { return !IsUnsigned; } in isSigned()
78 bool isUnsigned() const { return IsUnsigned; } in isUnsigned()
79 void setIsUnsigned(bool Val) { IsUnsigned = Val; } in setIsUnsigned()
80 void setIsSigned(bool Val) { IsUnsigned = !Val; } in setIsSigned()
109 return APSInt(APInt::trunc(width), IsUnsigned); in trunc()
113 if (IsUnsigned) in extend()
114 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.cpp344 bool IsUnsigned = false; in expandAtomicBinOpSubword() local
393 IsUnsigned = true; in expandAtomicBinOpSubword()
397 IsUnsigned = true; in expandAtomicBinOpSubword()
409 IsUnsigned = true; in expandAtomicBinOpSubword()
413 IsUnsigned = true; in expandAtomicBinOpSubword()
474 unsigned SLTScratch4 = IsUnsigned ? SLTu : SLT; in expandAtomicBinOpSubword()
482 if (IsUnsigned) { in expandAtomicBinOpSubword()
491 const unsigned SROp = IsUnsigned ? Mips::SRL : Mips::SRA; in expandAtomicBinOpSubword()
681 bool IsUnsigned = false; in expandAtomicBinOp() local
732 IsUnsigned = true; in expandAtomicBinOp()
[all …]
H A DMipsFastISel.cpp195 unsigned getRegEnsuringSimpleIntegerWidening(const Value *, bool IsUnsigned);
635 bool IsUnsigned = CI->isUnsigned(); in emitCmp() local
636 unsigned LeftReg = getRegEnsuringSimpleIntegerWidening(Left, IsUnsigned); in emitCmp()
639 unsigned RightReg = getRegEnsuringSimpleIntegerWidening(Right, IsUnsigned); in emitCmp()
2087 bool IsUnsigned) { in getRegEnsuringSimpleIntegerWidening() argument
2098 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.cpp120 bool IsUnsigned = !Sema.isSigned(); in getMax() local
121 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
122 if (IsUnsigned && Sema.hasUnsignedPadding()) in getMax()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateBase.h131 unsigned IsUnsigned : 1;
369 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
373 Integer.IsUnsigned);
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetBuiltins.h205 NeonTypeFlags(EltType ET, bool IsUnsigned, bool IsQuad) : Flags(ET) { in NeonTypeFlags() argument
206 if (IsUnsigned) in NeonTypeFlags()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h442 bool IsUnsigned;
444 MDNodeKeyImpl(APInt Value, bool IsUnsigned, MDString *Name)
445 : Value(std::move(Value)), Name(Name), IsUnsigned(IsUnsigned) {}
446 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
447 : Value(APInt(64, Value, !IsUnsigned)), Name(Name),
448 IsUnsigned(IsUnsigned) {}
451 IsUnsigned(N->isUnsigned()) {}
455 Value == RHS->getValue() && IsUnsigned == RHS->isUnsigned() &&
H A DDebugInfoMetadata.cpp648 const APInt &Value, bool IsUnsigned, in DIEnumerator() argument
652 SubclassData32 = IsUnsigned; in DIEnumerator()
655 bool IsUnsigned, MDString *Name, in getImpl() argument
658 DEFINE_GETIMPL_LOOKUP(DIEnumerator, (Value, IsUnsigned, Name)); in getImpl()
660 DEFINE_GETIMPL_STORE(DIEnumerator, (Value, IsUnsigned), Ops); in getImpl()
H A DDIBuilder.cpp247 bool IsUnsigned) { in createEnumerator() argument
249 return DIEnumerator::get(VMContext, APInt(64, Val, !IsUnsigned), IsUnsigned, in createEnumerator()
/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.h465 bool IsUnsigned, ArrayRef<Metadata *> Ops);
467 bool IsUnsigned, ArrayRef<Metadata *> Ops) in DIEnumerator() argument
468 : DIEnumerator(C, Storage, APInt(64, Value, !IsUnsigned), IsUnsigned, in DIEnumerator()
473 bool IsUnsigned, StringRef Name,
475 return getImpl(Context, Value, IsUnsigned,
479 bool IsUnsigned, MDString *Name,
488 (int64_t Value, bool IsUnsigned, StringRef Name),
489 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
491 (int64_t Value, bool IsUnsigned, MDString *Name),
492 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h511 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument
513 return APSInt(APInt(NumBits, Value.Enum), IsUnsigned);
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h286 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned,
290 InstructionCost getMulAccReductionCost(bool IsUnsigned, Type *ResTy,
H A DARMISelDAGToDAG.cpp208 bool IsUnsigned,
2716 bool IsUnsigned = SDValueToConstBool(N->getOperand(1)); in SelectBaseMVE_VMLLDAV() local
2719 if (IsUnsigned) { in SelectBaseMVE_VMLLDAV()
2734 const uint16_t *Opcodes = IsUnsigned ? OpcodesU : OpcodesS; in SelectBaseMVE_VMLLDAV()
3172 bool IsUnsigned, in transformFixedFloatingPointConversion() argument
3182 if (ScalarBits == 16 && !FMulFlags.hasNoInfs() && IsUnsigned) in transformFixedFloatingPointConversion()
3253 Opcode = IsUnsigned ? ARM::MVE_VCVTf16u16_fix : ARM::MVE_VCVTf16s16_fix; in transformFixedFloatingPointConversion()
3255 Opcode = IsUnsigned ? ARM::MVE_VCVTu16f16_fix : ARM::MVE_VCVTs16f16_fix; in transformFixedFloatingPointConversion()
3259 Opcode = IsUnsigned ? ARM::MVE_VCVTf32u32_fix : ARM::MVE_VCVTf32s32_fix; in transformFixedFloatingPointConversion()
3261 Opcode = IsUnsigned ? ARM::MVE_VCVTu32f32_fix : ARM::MVE_VCVTs32f32_fix; in transformFixedFloatingPointConversion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIShrinkInstructions.cpp47 bool isKImmOrKUImmOperand(const MachineOperand &Src, bool &IsUnsigned) const;
171 bool &IsUnsigned) const { in isKImmOrKUImmOperand()
173 IsUnsigned = false; in isKImmOrKUImmOperand()
178 IsUnsigned = true; in isKImmOrKUImmOperand()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1525 bool IsUnsigned, Type *ResTy, VectorType *Ty,
1533 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
2112 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
2116 bool IsUnsigned, Type *ResTy, VectorType *Ty,
2798 getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, Type *ResTy, in getExtendedReductionCost() argument
2801 return Impl.getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF, in getExtendedReductionCost()
2805 getMulAccReductionCost(bool IsUnsigned, Type *ResTy, VectorType *Ty, in getMulAccReductionCost() argument
2807 return Impl.getMulAccReductionCost(IsUnsigned, ResTy, Ty, CostKind); in getMulAccReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp1168 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty, in getExtendedReductionCost() argument
1170 return TTIImpl->getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF, in getExtendedReductionCost()
1175 bool IsUnsigned, Type *ResTy, VectorType *Ty, in getMulAccReductionCost() argument
1177 return TTIImpl->getMulAccReductionCost(IsUnsigned, ResTy, Ty, CostKind); in getMulAccReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1333 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy, in getExtendedReductionCost() argument
1336 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1341 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1345 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1351 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
H A DRISCVTargetTransformInfo.h185 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned,
H A DRISCVISelDAGToDAG.cpp1603 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu; in Select() local
1612 if (!IsUnsigned || CVal != 0) in Select()
1624 VMSLTOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix \ in Select()
1662 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu_mask; in Select() local
1671 if (!IsUnsigned || CVal != 0) in Select()
1684 VMSLTOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix \ in Select()
1686 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_##suffix##_MASK \ in Select()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2139 bool IsUnsigned = IID == Intrinsic::umax || IID == Intrinsic::umin; in getTypeBasedIntrinsicInstrCost() local
2141 IsUnsigned ? CmpInst::ICMP_UGT : CmpInst::ICMP_SGT; in getTypeBasedIntrinsicInstrCost()
2614 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, in getExtendedReductionCost() argument
2624 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getExtendedReductionCost()
2630 InstructionCost getMulAccReductionCost(bool IsUnsigned, Type *ResTy, in getMulAccReductionCost() argument
2640 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getMulAccReductionCost()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp380 BitIntType::BitIntType(bool IsUnsigned, unsigned NumBits) in BitIntType() argument
381 : Type(BitInt, QualType{}, TypeDependence::None), IsUnsigned(IsUnsigned), in BitIntType()
384 DependentBitIntType::DependentBitIntType(bool IsUnsigned, Expr *NumBitsExpr) in DependentBitIntType() argument
387 ExprAndUnsigned(NumBitsExpr, IsUnsigned) {}
398 const ASTContext &Context, bool IsUnsigned, in Profile() argument
400 ID.AddBoolean(IsUnsigned); in Profile()

123