Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h23 bool IsUnsigned; variable
98 if (IsUnsigned) in extend()
105 if (IsUnsigned) in extOrTrunc()
112 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
113 if (IsUnsigned)
120 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
128 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
132 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
148 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
152 assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h21 bool IsUnsigned; variable
25 : BitWidth(Width), IsUnsigned(Unsigned) {} 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;
100 return std::tie(BitWidth, IsUnsigned) <
[all …]
/freebsd-13.1/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.getMinSignedBits() - IsUnsigned; in testInRange()
38 MinBits = Value.getActiveBits() + !IsUnsigned; in testInRange()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp645 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu; in Select() local
668 IsUnsigned ? RISCV::PseudoVMSLTU_VX_M1 : RISCV::PseudoVMSLT_VX_M1; in Select()
673 IsUnsigned ? RISCV::PseudoVMSLTU_VX_M2 : RISCV::PseudoVMSLT_VX_M2; in Select()
714 bool IsUnsigned = IntNo == Intrinsic::riscv_vmsgeu_mask; in Select() local
723 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_MF8_MASK in Select()
729 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_MF4_MASK in Select()
735 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_MF2_MASK in Select()
741 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_M1_MASK in Select()
747 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_M2_MASK in Select()
753 VMSLTMaskOpcode = IsUnsigned ? RISCV::PseudoVMSLTU_VX_M4_MASK in Select()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp344 bool IsUnsigned = false; in expandAtomicBinOpSubword() local
392 IsUnsigned = true; in expandAtomicBinOpSubword()
400 IsUnsigned = true; in expandAtomicBinOpSubword()
457 unsigned SLTScratch4 = IsUnsigned ? SLTu : SLT; in expandAtomicBinOpSubword()
645 bool IsUnsigned = false; in expandAtomicBinOp() local
696 IsUnsigned = true; in expandAtomicBinOp()
704 IsUnsigned = true; in expandAtomicBinOp()
743 unsigned SLTScratch2 = IsUnsigned ? SLTu : SLT; in expandAtomicBinOp()
H A DMipsFastISel.cpp199 unsigned getRegEnsuringSimpleIntegerWidening(const Value *, bool IsUnsigned);
639 bool IsUnsigned = CI->isUnsigned(); in emitCmp() local
640 unsigned LeftReg = getRegEnsuringSimpleIntegerWidening(Left, IsUnsigned); in emitCmp()
643 unsigned RightReg = getRegEnsuringSimpleIntegerWidening(Right, IsUnsigned); in emitCmp()
2093 bool IsUnsigned) { in getRegEnsuringSimpleIntegerWidening() argument
2104 if (!emitIntExt(VMVT, VReg, MVT::i32, TempReg, IsUnsigned)) in getRegEnsuringSimpleIntegerWidening()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp41 ID.AddInteger((unsigned) (IsUnsigned ? 1 : 0)); in Profile()
H A DAPFixedPoint.cpp116 bool IsUnsigned = !Sema.isSigned(); in getMax() local
117 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax()
118 if (IsUnsigned && Sema.hasUnsignedPadding()) in getMax()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetBuiltins.h165 NeonTypeFlags(EltType ET, bool IsUnsigned, bool IsQuad) : Flags(ET) { in NeonTypeFlags() argument
166 if (IsUnsigned) in NeonTypeFlags()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h382 bool IsUnsigned;
384 MDNodeKeyImpl(APInt Value, bool IsUnsigned, MDString *Name)
385 : Value(Value), Name(Name), IsUnsigned(IsUnsigned) {}
386 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
387 : Value(APInt(64, Value, !IsUnsigned)), Name(Name),
388 IsUnsigned(IsUnsigned) {}
391 IsUnsigned(N->isUnsigned()) {}
395 IsUnsigned == RHS->isUnsigned() && Name == RHS->getRawName();
H A DDIBuilder.cpp247 bool IsUnsigned) { in createEnumerator() argument
249 return DIEnumerator::get(VMContext, APInt(64, Val, !IsUnsigned), IsUnsigned, in createEnumerator()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateBase.h118 unsigned IsUnsigned : 1;
319 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
323 Integer.IsUnsigned);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h187 InstructionCost getMinMaxCost(Type *Ty, Type *CondTy, bool IsUnsigned);
190 bool IsUnsigned,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h418 bool IsUnsigned, ArrayRef<Metadata *> Ops) in DIEnumerator() argument
421 SubclassData32 = IsUnsigned; in DIEnumerator()
424 bool IsUnsigned, ArrayRef<Metadata *> Ops) in DIEnumerator() argument
425 : DIEnumerator(C, Storage, APInt(64, Value, !IsUnsigned), IsUnsigned, in DIEnumerator()
430 bool IsUnsigned, StringRef Name,
432 return getImpl(Context, Value, IsUnsigned,
436 bool IsUnsigned, MDString *Name,
446 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
449 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
452 (Value, IsUnsigned, Name))
[all …]
H A DMatrixBuilder.h220 Value *CreateScalarDiv(Value *LHS, Value *RHS, bool IsUnsigned) { in CreateScalarDiv() argument
231 : (IsUnsigned ? B.CreateUDiv(LHS, RHS) : B.CreateSDiv(LHS, RHS)); in CreateScalarDiv()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1184 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
1194 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty,
1650 getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
1653 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty,
2154 getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy, bool IsUnsigned, in getMinMaxReductionCost() argument
2156 return Impl.getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
2159 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty,
2161 return Impl.getExtendedAddReductionCost(IsMLA, IsUnsigned, ResTy, Ty,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h510 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument
512 return APSInt(APInt(NumBits, Value.Enum), IsUnsigned);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp902 VectorType *Ty, VectorType *CondTy, bool IsUnsigned, in getMinMaxReductionCost() argument
905 TTIImpl->getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
911 bool IsMLA, bool IsUnsigned, Type *ResTy, VectorType *Ty, in getExtendedAddReductionCost() argument
913 return TTIImpl->getExtendedAddReductionCost(IsMLA, IsUnsigned, ResTy, Ty, in getExtendedAddReductionCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIShrinkInstructions.cpp131 bool &IsUnsigned) { in isKImmOrKUImmOperand() argument
133 IsUnsigned = false; in isKImmOrKUImmOperand()
138 IsUnsigned = true; in isKImmOrKUImmOperand()
H A DAMDGPUTargetTransformInfo.h221 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h173 bool IsUnsigned,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h262 InstructionCost getExtendedAddReductionCost(bool IsMLA, bool IsUnsigned,
H A DARMISelDAGToDAG.cpp206 bool IsUnsigned,
2699 bool IsUnsigned = SDValueToConstBool(N->getOperand(1)); in SelectBaseMVE_VMLLDAV() local
2702 if (IsUnsigned) { in SelectBaseMVE_VMLLDAV()
2720 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()
3272 bool IsUnsigned = N->getOpcode() == ISD::FP_TO_UINT; in tryFP_TO_INT() local
3283 if (ScalarBits == 16 && !Flags.hasNoInfs() && IsUnsigned) in tryFP_TO_INT()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DType.cpp341 ExtIntType::ExtIntType(bool IsUnsigned, unsigned NumBits) in ExtIntType() argument
342 : Type(ExtInt, QualType{}, TypeDependence::None), IsUnsigned(IsUnsigned), in ExtIntType()
346 bool IsUnsigned, Expr *NumBitsExpr) in DependentExtIntType() argument
349 Context(Context), ExprAndUnsigned(NumBitsExpr, IsUnsigned) {}
360 const ASTContext &Context, bool IsUnsigned, in Profile() argument
362 ID.AddBoolean(IsUnsigned); in Profile()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp409 bool IsUnsigned, bool Int64, in LowerFPToInt() argument
424 int64_t Substitute = IsUnsigned ? 0 : Limit; in LowerFPToInt()
425 double CmpVal = IsUnsigned ? -(double)Limit * 2.0 : -(double)Limit; in LowerFPToInt()
460 if (IsUnsigned) { in LowerFPToInt()
470 if (IsUnsigned) { in LowerFPToInt()

123