Home
last modified time | relevance | path

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

123

/external/clang/lib/Basic/
DTargetInfo.cpp183 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth()
185 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth()
187 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth()
189 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth()
191 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth()
193 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth()
198 bool IsSigned) const { in getLeastIntTypeByWidth()
200 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth()
202 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth()
204 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h75 unsigned IsSigned : 1; member
85 : Offset(), Size(), IsSigned(), StorageSize(), StorageOffset() {} in CGBitFieldInfo()
87 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo()
89 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
DCGRecordLayoutBuilder.cpp227 Info.IsSigned = FD->getType()->isSignedIntegerOrEnumerationType(); in setBitFieldInfo()
659 bool IsSigned = FD->getType()->isSignedIntegerOrEnumerationType(); in MakeInfo() local
682 return CGBitFieldInfo(Offset, Size, IsSigned, StorageSize, StorageOffset); in MakeInfo()
853 << " IsSigned:" << IsSigned in print()
/external/llvm/include/llvm/Transforms/Utils/
DLoopUtils.h89 RecurrenceType(nullptr), IsSigned(false) {} in RecurrenceDescriptor()
95 UnsafeAlgebraInst(UAI), RecurrenceType(RT), IsSigned(Signed) { in RecurrenceDescriptor()
213 Type *RT, bool &IsSigned,
226 bool isSigned() { return IsSigned; } in isSigned()
243 bool IsSigned; variable
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp77 bool IsSigned);
237 bool IsSigned) { in eliminateIVRemainder() argument
253 if ((!IsSigned || SE->isKnownNonNegative(S)) && in eliminateIVRemainder()
254 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder()
260 if (IsSigned && !SE->isKnownNonNegative(LessOne)) in eliminateIVRemainder()
263 if (!SE->isKnownPredicate(IsSigned ? in eliminateIVRemainder()
293 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser() local
294 if (IsSigned || Rem->getOpcode() == Instruction::URem) { in eliminateIVUser()
295 eliminateIVRemainder(Rem, IVOperand, IsSigned); in eliminateIVUser()
DLoopUtils.cpp95 Instruction *Start, Instruction *Exit, Type *RT, bool &IsSigned, in getSourceExtensionKind() argument
138 if (IsSigned != IsSExtInst) in getSourceExtensionKind()
142 IsSigned = IsSExtInst; in getSourceExtensionKind()
193 bool IsSigned = false; in AddReductionVar() local
345 IsSigned, VisitedInsts, CastInsts)) in AddReductionVar()
357 ReduxDesc.getUnsafeAlgebraInst(), RecurrenceType, IsSigned, CastInsts); in AddReductionVar()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp81 bool IsSigned) { in MultiplyOverflows() argument
83 if (IsSigned) in MultiplyOverflows()
93 bool IsSigned) { in IsMultiple() argument
102 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in IsMultiple()
105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple()
106 if (IsSigned) in IsMultiple()
808 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
811 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
812 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
813 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp202 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local
204 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt()
230 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local
235 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType()
237 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType()
250 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local
255 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize()
257 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize()
261 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, in DefineLeastWidthIntType() argument
264 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
[all …]
/external/eigen/Eigen/src/Core/
DNumTraits.h55 IsSigned = std::numeric_limits<T>::is_signed, enumerator
137 IsSigned = NumTraits<Scalar>::IsSigned,
DMathFunctions.h393 eigen_assert(!NumTraits<Scalar>::IsSigned || y >= 0);
445 return run(Scalar(NumTraits<Scalar>::IsSigned ? -1 : 0), Scalar(1));
509 return run(Scalar(NumTraits<Scalar>::IsSigned ? -10 : 0), Scalar(10));
514 … offset = NumTraits<Scalar>::IsSigned ? (1 << (EIGEN_PLAIN_ENUM_MIN(rand_bits,scalar_bits)-1)) : 0
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp780 bool IsSigned = false; // Was a sext user seen before a zext? member
789 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast() local
790 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
813 WI.IsSigned = IsSigned; in visitIVCast()
818 if (WI.IsSigned != IsSigned) in visitIVCast()
855 bool IsSigned; member in __anon822ce7860511::WidenIV
878 IsSigned(WI.IsSigned), in WidenIV()
893 Value *createExtendInst(Value *NarrowOper, Type *WideType, bool IsSigned,
928 bool IsSigned, Instruction *Use) { in createExtendInst() argument
937 return IsSigned ? Builder.CreateSExt(NarrowOper, WideType) : in createExtendInst()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp136 bool SelectIToFP(const Instruction *I, bool IsSigned);
137 bool SelectFPToI(const Instruction *I, bool IsSigned);
174 unsigned SrcReg, bool IsSigned);
175 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
942 bool IsSigned) { in PPCMoveToFPReg() argument
947 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg()
966 if (!IsSigned) { in PPCMoveToFPReg()
977 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg()
986 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument
1012 if (!IsSigned && !PPCSubTarget->hasFPCVT()) in SelectIToFP()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc111 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleIntegerOverflowImpl() local
112 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleIntegerOverflowImpl()
122 << (IsSigned ? "signed" : "unsigned") in handleIntegerOverflowImpl()
145 bool IsSigned = Data->Type.isSignedIntegerTy(); in handleNegateOverflowImpl() local
146 ErrorType ET = IsSigned ? ErrorType::SignedIntegerOverflow in handleNegateOverflowImpl()
154 if (IsSigned) in handleNegateOverflowImpl()
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp41 LLVMBool IsSigned) { in LLVMCreateGenericValueOfInt() argument
43 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
73 LLVMBool IsSigned) { in LLVMGenericValueToInt() argument
75 if (IsSigned) in LLVMGenericValueToInt()
/external/llvm/include/llvm-c/
DExecutionEngine.h56 LLVMBool IsSigned);
65 LLVMBool IsSigned);
/external/llvm/include/llvm/MC/
DMCAssembler.h404 bool IsSigned;
410 : MCFragment(FT_LEB, false, 0, Sec), Value(&Value_), IsSigned(IsSigned_) {
419 bool isSigned() const { return IsSigned; }
/external/llvm/lib/Target/AArch64/InstPrinter/
DAArch64InstPrinter.cpp71 bool IsSigned = (Opcode == AArch64::SBFMXri || Opcode == AArch64::SBFMWri); in printInst() local
80 if (IsSigned) in printInst()
86 if (IsSigned) in printInst()
93 if (Is64Bit && IsSigned) in printInst()
144 O << '\t' << (IsSigned ? "sbfiz" : "ubfiz") << '\t' in printInst()
152 O << '\t' << (IsSigned ? "sbfx" : "ubfx") << '\t' in printInst()
/external/clang/include/clang/Basic/
DTargetInfo.h260 virtual IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const;
264 bool IsSigned) const;
/external/v8/src/
Dmachine-type.h60 bool IsSigned() { in IsSigned() function
/external/eigen/test/
Dinteger_types.cpp57 VERIFY(int(NumTraits<Scalar>::IsSigned) == is_signed); in integer_type_tests()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp5506 bool IsSigned = Cond == ICmpInst::ICMP_SLT; in computeExitLimitFromICmp() local
5507 ExitLimit EL = HowManyLessThans(LHS, RHS, L, IsSigned, ControlsExit); in computeExitLimitFromICmp()
5513 bool IsSigned = Cond == ICmpInst::ICMP_SGT; in computeExitLimitFromICmp() local
5514 ExitLimit EL = HowManyGreaterThans(LHS, RHS, L, IsSigned, ControlsExit); in computeExitLimitFromICmp()
8128 bool IsSigned, bool NoWrap) { in doesIVOverflowOnLT() argument
8134 if (IsSigned) { in doesIVOverflowOnLT()
8157 bool IsSigned, bool NoWrap) { in doesIVOverflowOnGT() argument
8163 if (IsSigned) { in doesIVOverflowOnGT()
8201 const Loop *L, bool IsSigned, in HowManyLessThans() argument
8214 IV->getNoWrapFlags(IsSigned ? SCEV::FlagNSW : SCEV::FlagNUW); in HowManyLessThans()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp2124 bool IsSigned = false; in isAArch64FrameOffsetLegal() local
2259 IsSigned = true; in isAArch64FrameOffsetLegal()
2267 IsSigned = true; in isAArch64FrameOffsetLegal()
2279 IsSigned = true; in isAArch64FrameOffsetLegal()
2322 if (IsSigned) { in isAArch64FrameOffsetLegal()
2328 IsSigned = true; in isAArch64FrameOffsetLegal()
2332 IsSigned = false; in isAArch64FrameOffsetLegal()
2337 int MaxOff = (1 << (MaskBits - IsSigned)) - 1; in isAArch64FrameOffsetLegal()
2338 int MinOff = (IsSigned ? (-MaxOff - 1) : 0); in isAArch64FrameOffsetLegal()
/external/llvm/include/llvm/CodeGen/
DDIE.h118 static dwarf::Form BestForm(bool IsSigned, uint64_t Int) { in BestForm() argument
119 if (IsSigned) { in BestForm()
/external/eigen/unsupported/Eigen/
DAdolcForward90 IsSigned = 1,
/external/v8/src/compiler/ia32/
Dinstruction-selector-ia32.cc184 opcode = load_rep.IsSigned() ? kIA32Movsxbl : kIA32Movzxbl; in VisitLoad()
187 opcode = load_rep.IsSigned() ? kIA32Movsxwl : kIA32Movzxwl; in VisitLoad()
316 opcode = load_rep.IsSigned() ? kCheckedLoadInt8 : kCheckedLoadUint8; in VisitCheckedLoad()
319 opcode = load_rep.IsSigned() ? kCheckedLoadInt16 : kCheckedLoadUint16; in VisitCheckedLoad()

123