Home
last modified time | relevance | path

Searched refs:IsSigned (Results 1 – 25 of 107) sorted by relevance

12345

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFixedPoint.h35 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
H A DAPFloat.h668 unsigned int Width, bool IsSigned, roundingMode RM,
670 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM);
672 unsigned int InputSize, bool IsSigned,
675 unsigned int InputSize, bool IsSigned,
1108 unsigned int Width, bool IsSigned, roundingMode RM, in convertToInteger() argument
1111 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger()
1115 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() argument
1117 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt()
1120 unsigned int InputSize, bool IsSigned, in convertFromSignExtendedInteger() argument
1123 convertFromSignExtendedInteger(Input, InputSize, IsSigned, RM)); in convertFromSignExtendedInteger()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/Targets/
H A DAVR.h156 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument
158 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt) in getIntTypeByWidth()
159 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth()
162 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument
165 ? (IsSigned ? SignedInt : UnsignedInt) in getLeastIntTypeByWidth()
166 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
H A DWebAssembly.h114 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() argument
116 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getIntTypeByWidth()
117 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned); in getIntTypeByWidth()
120 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth() argument
123 ? (IsSigned ? SignedLongLong : UnsignedLongLong) in getLeastIntTypeByWidth()
124 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned); in getLeastIntTypeByWidth()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGRecordLayout.h74 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/
H A DTargetInfo.cpp250 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth()
252 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth()
254 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth()
256 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth()
258 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth()
260 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth()
265 bool IsSigned) const { in getLeastIntTypeByWidth()
267 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth()
269 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth()
271 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp173 bool IsDiv, bool IsSigned) const;
177 bool IsDiv, bool IsSigned) const;
838 unsigned AtLeast, bool IsSigned) const { in getDivNumBits()
850 if (IsSigned) in getDivNumBits()
860 bool IsDiv, bool IsSigned) const { in expandDivRem24()
861 int DivBits = getDivNumBits(I, Num, Den, 9, IsSigned); in expandDivRem24()
864 return expandDivRem24Impl(Builder, I, Num, Den, DivBits, IsDiv, IsSigned); in expandDivRem24()
871 bool IsDiv, bool IsSigned) const { in expandDivRem24Impl()
880 if (IsSigned) { in expandDivRem24Impl()
898 Value *FA = IsSigned ? Builder.CreateSIToFP(IA, F32Ty) in expandDivRem24Impl()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp691 bool IsSigned) { in multiplyOverflows() argument
693 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow); in multiplyOverflows()
699 bool IsSigned) { in isMultiple() argument
707 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in isMultiple()
710 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned); in isMultiple()
711 if (IsSigned) in isMultiple()
725 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
743 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
744 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
745 APInt Product(C1->getBitWidth(), /*val=*/0ULL, IsSigned); in commonIDivTransforms()
[all …]
H A DInstCombineInternal.h220 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned,
266 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowAdd() argument
267 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI) in willNotOverflowAdd()
284 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowSub() argument
285 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI) in willNotOverflowSub()
302 const Instruction &CxtI, bool IsSigned) const { in willNotOverflowMul() argument
303 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI) in willNotOverflowMul()
309 bool IsSigned) const { in willNotOverflow() argument
311 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned); in willNotOverflow()
312 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned); in willNotOverflow()
[all …]
H A DInstCombineAddSub.cpp1019 static bool MatchRem(Value *E, Value *&Op, APInt &C, bool &IsSigned) { in MatchRem() argument
1021 IsSigned = false; in MatchRem()
1023 IsSigned = true; in MatchRem()
1041 static bool MatchDiv(Value *E, Value *&Op, APInt &C, bool IsSigned) { in MatchDiv() argument
1043 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) { in MatchDiv()
1047 if (!IsSigned) { in MatchDiv()
1062 static bool MulWillOverflow(APInt &C0, APInt &C1, bool IsSigned) { in MulWillOverflow() argument
1064 if (IsSigned) in MulWillOverflow()
1077 bool IsSigned; in SimplifyAddWithRemainder() local
1079 if (((MatchRem(LHS, X, C0, IsSigned) && MatchMul(RHS, MulOpV, MulOpC)) || in SimplifyAddWithRemainder()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DInitPreprocessor.cpp184 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local
186 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt()
212 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local
217 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType()
222 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type(); in DefineExactWidthIntType()
224 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType()
237 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local
242 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize()
244 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize()
248 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, in DefineLeastWidthIntType() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DRISCVVTypes.def15 // - RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, IsSigned, IsFP)
36 // - IsSigned is true for vectors of signed integer elements and
44 #define RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned, IsFP)\
54 #define RVV_VECTOR_TYPE_INT(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned) \
55 RVV_VECTOR_TYPE(Name, Id, SingletonId, NumEls, ElBits, NF, IsSigned, false)
H A DAArch64SVEACLETypes.def15 // SVE_VECTOR_TYPE(Name, Id, SingletonId, ElKind, ElBits, IsSigned, IsFP) -
33 // - IsSigned is true for vectors of signed integer elements and
43 IsSigned, IsFP, IsBF) \
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp132 bool SelectIToFP(const Instruction *I, bool IsSigned);
133 bool SelectFPToI(const Instruction *I, bool IsSigned);
179 unsigned SrcReg, bool IsSigned);
180 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
1017 bool IsSigned) { in PPCMoveToFPReg() argument
1022 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg()
1041 if (!IsSigned) { in PPCMoveToFPReg()
1052 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg()
1061 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument
1089 Opc = IsSigned ? PPC::EFSCFSI : PPC::EFSCFUI; in SelectIToFP()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_handlers.cc115 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local
116 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl()
123 if (!IsSigned && !Opts.FromUnrecoverableHandler && in handleIntegerOverflowImpl()
131 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS) in handleIntegerOverflowImpl()
154 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local
155 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl()
161 if (!IsSigned && flags()->silence_unsigned_overflow) in handleNegateOverflowImpl()
166 if (IsSigned) in handleNegateOverflowImpl()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cc113 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local
114 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl()
120 if (!IsSigned && flags()->silence_unsigned_overflow) in handleIntegerOverflowImpl()
127 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS) in handleIntegerOverflowImpl()
150 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local
151 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl()
157 if (!IsSigned && flags()->silence_unsigned_overflow) in handleNegateOverflowImpl()
162 if (IsSigned) in handleNegateOverflowImpl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp152 bool &IsSigned);
199 bool isEmpty(ScalarEvolution &SE, bool IsSigned) const { in isEmpty()
202 if (IsSigned) in isEmpty()
297 Value *&Length, bool &IsSigned) { in INITIALIZE_PASS_DEPENDENCY()
314 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY()
325 IsSigned = true; in INITIALIZE_PASS_DEPENDENCY()
342 IsSigned = false; in INITIALIZE_PASS_DEPENDENCY()
376 bool IsSigned; in extractRangeChecksFromCond() local
377 if (!parseRangeCheckICmp(L, ICI, SE, Index, Length, IsSigned)) in extractRangeChecksFromCond()
681 bool IsSigned = ICmpInst::isSigned(Pred); in isSafeDecreasingBound() local
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cpp213 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local
214 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl()
221 if (!IsSigned && !Opts.FromUnrecoverableHandler && in handleIntegerOverflowImpl()
229 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS) in handleIntegerOverflowImpl()
252 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local
253 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl()
259 if (!IsSigned && flags()->silence_unsigned_overflow) in handleNegateOverflowImpl()
264 if (IsSigned) in handleNegateOverflowImpl()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DIVDescriptors.h75 ExactFPMathInst(ExactFP), RecurrenceType(RT), IsSigned(Signed), in RecurrenceDescriptor()
231 bool isSigned() const { return IsSigned; } in isSigned()
257 bool IsSigned = false; variable
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp42 LLVMBool IsSigned) { in LLVMCreateGenericValueOfInt() argument
44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
74 LLVMBool IsSigned) { in LLVMGenericValueToInt() argument
76 if (IsSigned) in LLVMGenericValueToInt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp92 bool IsSigned);
377 bool IsSigned) { in simplifyIVRemainder() argument
384 if (!UsedAsNumerator && !IsSigned) in simplifyIVRemainder()
393 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N); in simplifyIVRemainder()
403 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in simplifyIVRemainder()
419 if (!IsSigned || !SE->isKnownNonNegative(D)) in simplifyIVRemainder()
1091 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned,
1181 ExtendKindMap[OrigPhi] = WI.IsSigned ? SignExtended : ZeroExtended; in WidenIV()
1185 bool IsSigned, Instruction *Use) { in createExtendInst() argument
1194 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DExecutionEngine.h55 LLVMBool IsSigned);
64 LLVMBool IsSigned);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp168 unsigned getRegForPromotedValue(const Value *V, bool IsSigned);
574 bool IsSigned) { in getRegForPromotedValue() argument
575 return IsSigned ? getRegForSignedValue(V) : getRegForUnsignedValue(V); in getRegForPromotedValue()
1029 bool IsSigned = false; in selectICmp() local
1051 IsSigned = true; in selectICmp()
1055 IsSigned = true; in selectICmp()
1059 IsSigned = true; in selectICmp()
1063 IsSigned = true; in selectICmp()
1069 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), IsSigned); in selectICmp()
1073 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), IsSigned); in selectICmp()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstants.h98 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false);
106 static ConstantInt *get(IntegerType *Ty, uint64_t V, bool IsSigned = false);
211 bool isMaxValue(bool IsSigned) const { in isMaxValue() argument
212 if (IsSigned) in isMaxValue()
223 bool isMinValue(bool IsSigned) const { in isMinValue() argument
224 if (IsSigned) in isMinValue()
1141 bool IsSigned ///< Whether C should be treated as signed or not
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIVDescriptors.cpp118 bool IsSigned = false; in computeRecurrenceType() local
144 IsSigned = true; in computeRecurrenceType()
157 IsSigned); in computeRecurrenceType()
259 bool IsSigned = false; in AddReductionVar() local
474 std::tie(ComputedType, IsSigned) = in AddReductionVar()
502 IsSigned, IsOrdered, CastInsts); in AddReductionVar()

12345