Searched refs:IsSigned (Results 1 - 25 of 104) sorted by relevance

12345

/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFixedPoint.h35 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, argument
37 : Width(Width), Scale(Scale), IsSigned(IsSigned),
40 assert(!(IsSigned && HasUnsignedPadding) &&
46 bool isSigned() const { return IsSigned; }
56 if (IsSigned || (!IsSigned && HasUnsignedPadding))
80 bool IsSigned) {
81 return FixedPointSemantics(Width, /*Scale=*/0, IsSigned,
89 unsigned IsSigned
79 GetIntegerSemantics(unsigned Width, bool IsSigned) argument
[all...]
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,
1111 convertToInteger(Input, Width, IsSigned, RM, IsExact));
1115 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, argument
1117 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM));
1120 unsigned int InputSize, bool IsSigned,
1123 convertFromSignExtendedInteger(Input, InputSize, IsSigned, R
1107 convertToInteger(MutableArrayRef<integerPart> Input, unsigned int Width, bool IsSigned, roundingMode RM, bool *IsExact) const argument
1119 convertFromSignExtendedInteger(const integerPart *Input, unsigned int InputSize, bool IsSigned, roundingMode RM) argument
1125 convertFromZeroExtendedInteger(const integerPart *Input, unsigned int InputSize, bool IsSigned, roundingMode RM) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Basic/Targets/
H A DAVR.h156 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final {
158 return BitWidth == 16 ? (IsSigned ? SignedInt : UnsignedInt)
159 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
162 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final {
165 ? (IsSigned ? SignedInt : UnsignedInt)
166 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
H A DWebAssembly.h114 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final {
116 return BitWidth == 64 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
117 : TargetInfo::getIntTypeByWidth(BitWidth, IsSigned);
120 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final {
123 ? (IsSigned ? SignedLongLong : UnsignedLongLong)
124 : TargetInfo::getLeastIntTypeByWidth(BitWidth, IsSigned);
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGRecordLayout.h74 unsigned IsSigned : 1; member in struct:clang::CodeGen::CGBitFieldInfo
96 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset(),
99 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, argument
101 : Offset(Offset), Size(Size), IsSigned(IsSigned),
/netbsd-current/external/apache2/llvm/dist/clang/lib/Basic/
H A DTargetInfo.cpp250 unsigned BitWidth, bool IsSigned) const {
252 return IsSigned ? SignedChar : UnsignedChar;
254 return IsSigned ? SignedShort : UnsignedShort;
256 return IsSigned ? SignedInt : UnsignedInt;
258 return IsSigned ? SignedLong : UnsignedLong;
260 return IsSigned ? SignedLongLong : UnsignedLongLong;
265 bool IsSigned) const {
267 return IsSigned ? SignedChar : UnsignedChar;
269 return IsSigned ? SignedShort : UnsignedShort;
271 return IsSigned
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h72 bool IsSigned = false; member in struct:llvm::WideIVInfo
/netbsd-current/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 {
850 if (IsSigned)
860 bool IsDiv, bool IsSigned) const {
861 int DivBits = getDivNumBits(I, Num, Den, 9, IsSigned);
864 return expandDivRem24Impl(Builder, I, Num, Den, DivBits, IsDiv, IsSigned);
871 bool IsDiv, bool IsSigned) const {
880 if (IsSigned) {
898 Value *FA = IsSigned
1028 bool IsSigned = Opc == Instruction::SRem || Opc == Instruction::SDiv; local
1147 bool IsSigned = Opc == Instruction::SDiv || Opc == Instruction::SRem; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DExecutionEngine.h55 LLVMBool IsSigned);
64 LLVMBool IsSigned);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h220 bool OptimizeOverflowCheck(Instruction::BinaryOps BinaryOp, bool IsSigned,
266 const Instruction &CxtI, bool IsSigned) const {
267 return IsSigned ? willNotOverflowSignedAdd(LHS, RHS, CxtI)
284 const Instruction &CxtI, bool IsSigned) const {
285 return IsSigned ? willNotOverflowSignedSub(LHS, RHS, CxtI)
302 const Instruction &CxtI, bool IsSigned) const {
303 return IsSigned ? willNotOverflowSignedMul(LHS, RHS, CxtI)
309 bool IsSigned) const {
311 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned);
312 case Instruction::Sub: return willNotOverflowSub(LHS, RHS, CxtI, IsSigned);
[all...]
H A DInstCombineMulDivRem.cpp691 bool IsSigned) {
693 Product = IsSigned ? C1.smul_ov(C2, Overflow) : C1.umul_ov(C2, Overflow);
699 bool IsSigned) {
707 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue())
710 APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned);
711 if (IsSigned)
725 bool IsSigned = I.getOpcode() == Instruction::SDiv; local
743 if ((IsSigned && match(Op0, m_SDiv(m_Value(X), m_APInt(C1)))) ||
744 (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_APInt(C1))))) {
745 APInt Product(C1->getBitWidth(), /*val=*/0ULL, IsSigned);
690 multiplyOverflows(const APInt &C1, const APInt &C2, APInt &Product, bool IsSigned) argument
698 isMultiple(const APInt &C1, const APInt &C2, APInt &Quotient, bool IsSigned) argument
[all...]
H A DInstCombineAddSub.cpp1017 // the remainder operation in IsSigned. Returns true if such a match is
1019 static bool MatchRem(Value *E, Value *&Op, APInt &C, bool &IsSigned) { argument
1021 IsSigned = false;
1023 IsSigned = true;
1039 // by IsSigned, where C is a constant. Returns the constant value in C and the
1041 static bool MatchDiv(Value *E, Value *&Op, APInt &C, bool IsSigned) { argument
1043 if (IsSigned && match(E, m_SDiv(m_Value(Op), m_APInt(AI)))) {
1047 if (!IsSigned) {
1062 static bool MulWillOverflow(APInt &C0, APInt &C1, bool IsSigned) { argument
1064 if (IsSigned)
1077 bool IsSigned; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DIVDescriptors.h75 ExactFPMathInst(ExactFP), RecurrenceType(RT), IsSigned(Signed),
231 bool isSigned() const { return IsSigned; }
257 bool IsSigned = false; member in class:llvm::RecurrenceDescriptor
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DInitPreprocessor.cpp184 bool IsSigned = TI.isTypeSigned(Ty); local
186 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) {
212 bool IsSigned = TI.isTypeSigned(Ty); local
217 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type();
222 Ty = IsSigned ? TI.getInt16Type() : TI.getUInt16Type();
224 const char *Prefix = IsSigned ? "__INT" : "__UINT";
237 bool IsSigned = TI.isTypeSigned(Ty); local
242 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type();
244 const char *Prefix = IsSigned ? "__INT" : "__UINT";
248 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, argument
261 DefineFastIntType(unsigned TypeWidth, bool IsSigned, const TargetInfo &TI, MacroBuilder &Builder) argument
[all...]
/netbsd-current/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) {
1022 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned))
1041 if (!IsSigned) {
1052 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc))
1061 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { argument
1089 Opc = IsSigned
1016 PPCMoveToFPReg(MVT SrcVT, unsigned SrcReg, bool IsSigned) argument
1151 PPCMoveToIntReg(const Instruction *I, MVT VT, unsigned SrcReg, bool IsSigned) argument
1186 SelectFPToI(const Instruction *I, bool IsSigned) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp42 LLVMBool IsSigned) {
44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned);
74 LLVMBool IsSigned) {
76 if (IsSigned)
40 LLVMCreateGenericValueOfInt(LLVMTypeRef Ty, unsigned long long N, LLVMBool IsSigned) argument
73 LLVMGenericValueToInt(LLVMGenericValueRef GenValRef, LLVMBool IsSigned) argument
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.h100 static unsigned GetConvertOpcode(MVT DestTy, MVT SrcTy, bool IsSigned);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp152 bool &IsSigned);
199 bool isEmpty(ScalarEvolution &SE, bool IsSigned) const {
202 if (IsSigned)
297 Value *&Length, bool &IsSigned) {
314 IsSigned = true;
325 IsSigned = true;
342 IsSigned = false;
376 bool IsSigned; local
377 if (!parseRangeCheckICmp(L, ICI, SE, Index, Length, IsSigned))
681 bool IsSigned local
295 parseRangeCheckICmp(Loop *L, ICmpInst *ICI, ScalarEvolution &SE, Value *&Index, Value *&Length, bool &IsSigned) argument
729 bool IsSigned = ICmpInst::isSigned(Pred); local
[all...]
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_handlers.cc115 bool IsSigned = Data->Type.isSignedIntegerTy(); local
116 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
123 if (!IsSigned && !Opts.FromUnrecoverableHandler &&
131 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS)
154 bool IsSigned = Data->Type.isSignedIntegerTy(); local
155 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
161 if (!IsSigned && flags()->silence_unsigned_overflow)
166 if (IsSigned)
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cc113 bool IsSigned = Data->Type.isSignedIntegerTy(); local
114 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
120 if (!IsSigned && flags()->silence_unsigned_overflow)
127 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS)
150 bool IsSigned = Data->Type.isSignedIntegerTy(); local
151 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
157 if (!IsSigned && flags()->silence_unsigned_overflow)
162 if (IsSigned)
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cpp213 bool IsSigned = Data->Type.isSignedIntegerTy(); local
214 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
221 if (!IsSigned && !Opts.FromUnrecoverableHandler &&
229 << (IsSigned ? "signed" : "unsigned") << Value(Data->Type, LHS)
252 bool IsSigned = Data->Type.isSignedIntegerTy(); local
253 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow
259 if (!IsSigned && flags()->silence_unsigned_overflow)
264 if (IsSigned)
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstants.h98 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false);
102 /// to fit the type, unless IsSigned is true, in which case the value will
106 static ConstantInt *get(IntegerType *Ty, uint64_t V, bool IsSigned = false);
211 bool isMaxValue(bool IsSigned) const {
212 if (IsSigned)
223 bool isMinValue(bool IsSigned) const {
224 if (IsSigned)
1141 bool IsSigned ///< Whether C should be treated as signed or not
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h78 bool hasDivRemOp(Type *DataType, bool IsSigned);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/M68k/
H A DM68kInstrInfo.h307 bool ExpandMOVSZX_RR(MachineInstrBuilder &MIB, bool IsSigned, MVT MVTDst,
311 bool ExpandMOVSZX_RM(MachineInstrBuilder &MIB, bool IsSigned,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp92 bool IsSigned);
377 bool IsSigned) {
384 if (!UsedAsNumerator && !IsSigned)
393 bool IsNumeratorNonNegative = !IsSigned || SE->isKnownNonNegative(N);
403 auto LT = IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT;
419 if (!IsSigned || !SE->isKnownNonNegative(D))
1091 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned,
1181 ExtendKindMap[OrigPhi] = WI.IsSigned ? SignExtended : ZeroExtended;
1185 bool IsSigned, Instruction *Use) {
1194 return IsSigned
376 simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand, bool IsSigned) argument
1184 createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned, Instruction *Use) argument
1234 bool IsSigned = getExtendKind(NarrowDef) == SignExtended; local
[all...]

Completed in 593 milliseconds

12345