Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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.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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DTemplateBase.h116 unsigned IsUnsigned : 1;
319 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
323 Integer.IsUnsigned);
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1308 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
1317 bool IsUnsigned, Type *ResTy, VectorType *Ty,
1325 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
1836 getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
1839 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
1843 bool IsUnsigned, Type *ResTy, VectorType *Ty,
2436 getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy, bool IsUnsigned, in getMinMaxReductionCost() argument
2438 return Impl.getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
2441 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty,
2444 return Impl.getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF,
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DTargetBuiltins.h192 NeonTypeFlags(EltType ET, bool IsUnsigned, bool IsQuad) : Flags(ET) { in NeonTypeFlags() argument
193 if (IsUnsigned) in NeonTypeFlags()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DLLVMContextImpl.h441 bool IsUnsigned;
443 MDNodeKeyImpl(APInt Value, bool IsUnsigned, MDString *Name)
444 : Value(Value), Name(Name), IsUnsigned(IsUnsigned) {}
445 MDNodeKeyImpl(int64_t Value, bool IsUnsigned, MDString *Name)
446 : Value(APInt(64, Value, !IsUnsigned)), Name(Name),
447 IsUnsigned(IsUnsigned) {}
450 IsUnsigned(N->isUnsigned()) {}
454 Value == RHS->getValue() && IsUnsigned == RHS->isUnsigned() &&
H A DDebugInfoMetadata.cpp577 const APInt &Value, bool IsUnsigned, in DIEnumerator() argument
581 SubclassData32 = IsUnsigned; in DIEnumerator()
584 bool IsUnsigned, MDString *Name, in getImpl() argument
587 DEFINE_GETIMPL_LOOKUP(DIEnumerator, (Value, IsUnsigned, Name)); in getImpl()
589 DEFINE_GETIMPL_STORE(DIEnumerator, (Value, IsUnsigned), Ops); in getImpl()
/openbsd-src/gnu/llvm/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.h454 bool IsUnsigned, ArrayRef<Metadata *> Ops);
456 bool IsUnsigned, ArrayRef<Metadata *> Ops) in DIEnumerator() argument
457 : DIEnumerator(C, Storage, APInt(64, Value, !IsUnsigned), IsUnsigned, in DIEnumerator()
462 bool IsUnsigned, StringRef Name,
464 return getImpl(Context, Value, IsUnsigned,
468 bool IsUnsigned, MDString *Name,
477 (int64_t Value, bool IsUnsigned, StringRef Name),
478 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
480 (int64_t Value, bool IsUnsigned, MDString *Name),
481 (APInt(64, Value, !IsUnsigned), IsUnsigned, Name))
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h199 InstructionCost getMinMaxCost(Type *Ty, Type *CondTy, bool IsUnsigned);
202 bool IsUnsigned,
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h136 bool IsUnsigned,
143 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned,
H A DRISCVTargetTransformInfo.cpp1002 bool IsUnsigned, in getMinMaxReductionCost() argument
1005 return BaseT::getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
1009 return BaseT::getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
1055 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy, in getExtendedReductionCost() argument
1058 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1063 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1067 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1073 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp1020 VectorType *Ty, VectorType *CondTy, bool IsUnsigned, in getMinMaxReductionCost() argument
1023 TTIImpl->getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
1029 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *Ty, in getExtendedReductionCost() argument
1031 return TTIImpl->getExtendedReductionCost(Opcode, IsUnsigned, ResTy, Ty, FMF, in getExtendedReductionCost()
1036 bool IsUnsigned, Type *ResTy, VectorType *Ty, in getMulAccReductionCost() argument
1038 return TTIImpl->getMulAccReductionCost(IsUnsigned, ResTy, Ty, CostKind); in getMulAccReductionCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h281 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned,
285 InstructionCost getMulAccReductionCost(bool IsUnsigned, Type *ResTy,
H A DARMISelDAGToDAG.cpp210 bool IsUnsigned,
2712 bool IsUnsigned = SDValueToConstBool(N->getOperand(1)); in SelectBaseMVE_VMLLDAV() local
2715 if (IsUnsigned) { in SelectBaseMVE_VMLLDAV()
2733 const uint16_t *Opcodes = IsUnsigned ? OpcodesU : OpcodesS; in SelectBaseMVE_VMLLDAV()
3176 bool IsUnsigned, in transformFixedFloatingPointConversion() argument
3186 if (ScalarBits == 16 && !FMulFlags.hasNoInfs() && IsUnsigned) in transformFixedFloatingPointConversion()
3257 Opcode = IsUnsigned ? ARM::MVE_VCVTf16u16_fix : ARM::MVE_VCVTf16s16_fix; in transformFixedFloatingPointConversion()
3259 Opcode = IsUnsigned ? ARM::MVE_VCVTu16f16_fix : ARM::MVE_VCVTs16f16_fix; in transformFixedFloatingPointConversion()
3263 Opcode = IsUnsigned ? ARM::MVE_VCVTf32u32_fix : ARM::MVE_VCVTf32s32_fix; in transformFixedFloatingPointConversion()
3265 Opcode = IsUnsigned ? ARM::MVE_VCVTu32f32_fix : ARM::MVE_VCVTs32f32_fix; in transformFixedFloatingPointConversion()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h511 #define VARIANT_APSINT(Enum, NumBits, IsUnsigned) \ argument
513 return APSInt(APInt(NumBits, Value.Enum), IsUnsigned);
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DSIShrinkInstructions.cpp47 bool isKImmOrKUImmOperand(const MachineOperand &Src, bool &IsUnsigned) const;
175 bool &IsUnsigned) const { in isKImmOrKUImmOperand()
177 IsUnsigned = false; in isKImmOrKUImmOperand()
182 IsUnsigned = true; in isKImmOrKUImmOperand()
H A DAMDGPUTargetTransformInfo.h224 VectorType *Ty, VectorType *CondTy, bool IsUnsigned,
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1917 bool IsUnsigned = IID == Intrinsic::umax || IID == Intrinsic::umin; in getTypeBasedIntrinsicInstrCost() local
1919 IsUnsigned ? CmpInst::ICMP_UGT : CmpInst::ICMP_SGT; in getTypeBasedIntrinsicInstrCost()
2344 bool IsUnsigned, in getMinMaxReductionCost() argument
2408 InstructionCost getExtendedReductionCost(unsigned Opcode, bool IsUnsigned, in getExtendedReductionCost() argument
2418 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getExtendedReductionCost()
2424 InstructionCost getMulAccReductionCost(bool IsUnsigned, Type *ResTy, in getMulAccReductionCost() argument
2434 IsUnsigned ? Instruction::ZExt : Instruction::SExt, ExtTy, Ty, in getMulAccReductionCost()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h180 bool IsUnsigned,

123