Home
last modified time | relevance | path

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

123

/external/clang/lib/Basic/
DTargetInfo.cpp179 unsigned BitWidth, bool IsSigned) const { in getIntTypeByWidth()
181 return IsSigned ? SignedChar : UnsignedChar; in getIntTypeByWidth()
183 return IsSigned ? SignedShort : UnsignedShort; in getIntTypeByWidth()
185 return IsSigned ? SignedInt : UnsignedInt; in getIntTypeByWidth()
187 return IsSigned ? SignedLong : UnsignedLong; in getIntTypeByWidth()
189 return IsSigned ? SignedLongLong : UnsignedLongLong; in getIntTypeByWidth()
194 bool IsSigned) const { in getLeastIntTypeByWidth()
196 return IsSigned ? SignedChar : UnsignedChar; in getLeastIntTypeByWidth()
198 return IsSigned ? SignedShort : UnsignedShort; in getLeastIntTypeByWidth()
200 return IsSigned ? SignedInt : UnsignedInt; in getLeastIntTypeByWidth()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h75 unsigned IsSigned : 1; member
85 : Offset(), Size(), IsSigned(), StorageSize(), StorageAlignment() {} in CGBitFieldInfo()
87 CGBitFieldInfo(unsigned Offset, unsigned Size, bool IsSigned, in CGBitFieldInfo()
89 : Offset(Offset), Size(Size), IsSigned(IsSigned), in CGBitFieldInfo()
DCGRecordLayoutBuilder.cpp216 Info.IsSigned = FD->getType()->isSignedIntegerOrEnumerationType(); in setBitFieldInfo()
643 bool IsSigned = FD->getType()->isSignedIntegerOrEnumerationType(); in MakeInfo() local
666 return CGBitFieldInfo(Offset, Size, IsSigned, StorageSize, StorageAlignment); in MakeInfo()
837 << " IsSigned:" << IsSigned in print()
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp75 bool IsSigned);
189 bool IsSigned) { in eliminateIVRemainder() argument
205 if ((!IsSigned || SE->isKnownNonNegative(S)) && in eliminateIVRemainder()
206 SE->isKnownPredicate(IsSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT, in eliminateIVRemainder()
213 if (IsSigned && !SE->isKnownNonNegative(LessOne)) in eliminateIVRemainder()
216 if (!SE->isKnownPredicate(IsSigned ? in eliminateIVRemainder()
246 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser() local
247 if (IsSigned || Rem->getOpcode() == Instruction::URem) { in eliminateIVUser()
248 eliminateIVRemainder(Rem, IVOperand, IsSigned); in eliminateIVUser()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp654 bool IsSigned; // Was a sext user seen before a zext? member
657 IsSigned(false) {} in WideIVInfo()
666 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast() local
667 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
690 WI.IsSigned = IsSigned; in visitIVCast()
695 if (WI.IsSigned != IsSigned) in visitIVCast()
727 bool IsSigned; member in __anon822ce7860311::WidenIV
750 IsSigned(WI.IsSigned), in WidenIV()
765 Value *getExtend(Value *NarrowOper, Type *WideType, bool IsSigned,
796 Value *WidenIV::getExtend(Value *NarrowOper, Type *WideType, bool IsSigned, in getExtend() argument
[all …]
/external/clang/lib/Frontend/
DInitPreprocessor.cpp200 bool IsSigned = TI.isTypeSigned(Ty); in DefineFmt() local
202 for (const char *Fmt = IsSigned ? "di" : "ouxX"; *Fmt; ++Fmt) { in DefineFmt()
228 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntType() local
233 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntType()
235 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntType()
248 bool IsSigned = TI.isTypeSigned(Ty); in DefineExactWidthIntTypeSize() local
253 Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type(); in DefineExactWidthIntTypeSize()
255 const char *Prefix = IsSigned ? "__INT" : "__UINT"; in DefineExactWidthIntTypeSize()
259 static void DefineLeastWidthIntType(unsigned TypeWidth, bool IsSigned, in DefineLeastWidthIntType() argument
262 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp82 bool IsSigned) { in MultiplyOverflows() argument
84 if (IsSigned) in MultiplyOverflows()
94 bool IsSigned) { in IsMultiple() argument
98 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple()
99 if (IsSigned) in IsMultiple()
798 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
801 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
802 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
803 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
804 if (!MultiplyOverflows(*C1, *C2, Product, IsSigned)) in commonIDivTransforms()
[all …]
DInstCombineCompares.cpp49 bool IsSigned) { in HasAddOverflow() argument
50 if (!IsSigned) in HasAddOverflow()
61 Constant *In2, bool IsSigned = false) { in AddWithOverflow() argument
70 IsSigned)) in AddWithOverflow()
78 IsSigned); in AddWithOverflow()
83 bool IsSigned) { in HasSubOverflow() argument
84 if (!IsSigned) in HasSubOverflow()
96 Constant *In2, bool IsSigned = false) { in SubWithOverflow() argument
105 IsSigned)) in SubWithOverflow()
113 IsSigned); in SubWithOverflow()
/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/Target/PowerPC/
DPPCFastISel.cpp136 bool SelectIToFP(const Instruction *I, bool IsSigned);
137 bool SelectFPToI(const Instruction *I, bool IsSigned);
169 unsigned SrcReg, bool IsSigned);
170 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
919 bool IsSigned) { in PPCMoveToFPReg() argument
924 if (!PPCEmitIntExt(MVT::i32, SrcReg, MVT::i64, TmpReg, !IsSigned)) in PPCMoveToFPReg()
943 if (!IsSigned) { in PPCMoveToFPReg()
954 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) in PPCMoveToFPReg()
963 bool PPCFastISel::SelectIToFP(const Instruction *I, bool IsSigned) { in SelectIToFP() argument
989 if (!IsSigned && !PPCSubTarget->hasFPCVT()) in SelectIToFP()
[all …]
/external/llvm/lib/ExecutionEngine/
DExecutionEngineBindings.cpp40 LLVMBool IsSigned) { in LLVMCreateGenericValueOfInt() argument
42 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt()
72 LLVMBool IsSigned) { in LLVMGenericValueToInt() argument
74 if (IsSigned) in LLVMGenericValueToInt()
/external/llvm/include/llvm-c/
DExecutionEngine.h56 LLVMBool IsSigned);
65 LLVMBool 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.h253 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const;
256 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const;
/external/llvm/include/llvm/CodeGen/
DDIE.h256 static dwarf::Form BestForm(bool IsSigned, uint64_t Int) { in BestForm() argument
257 if (IsSigned) { in BestForm()
/external/llvm/include/llvm/MC/
DMCAssembler.h463 bool IsSigned; variable
470 Value(&Value_), IsSigned(IsSigned_) { Contents.push_back(0); } in MCFragment()
477 bool isSigned() const { return IsSigned; } in isSigned()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp5144 bool IsSigned = Cond == ICmpInst::ICMP_SLT; in ComputeExitLimitFromICmp() local
5145 ExitLimit EL = HowManyLessThans(LHS, RHS, L, IsSigned, ControlsExit); in ComputeExitLimitFromICmp()
5151 bool IsSigned = Cond == ICmpInst::ICMP_SGT; in ComputeExitLimitFromICmp() local
5152 ExitLimit EL = HowManyGreaterThans(LHS, RHS, L, IsSigned, ControlsExit); in ComputeExitLimitFromICmp()
7187 bool IsSigned, bool NoWrap) { in doesIVOverflowOnLT() argument
7193 if (IsSigned) { in doesIVOverflowOnLT()
7216 bool IsSigned, bool NoWrap) { in doesIVOverflowOnGT() argument
7222 if (IsSigned) { in doesIVOverflowOnGT()
7260 const Loop *L, bool IsSigned, in HowManyLessThans() argument
7273 IV->getNoWrapFlags(IsSigned ? SCEV::FlagNSW : SCEV::FlagNUW); in HowManyLessThans()
[all …]
/external/eigen/test/
Dinteger_types.cpp57 VERIFY(int(NumTraits<Scalar>::IsSigned) == is_signed); in integer_type_tests()
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp2112 bool IsSigned = false; in isAArch64FrameOffsetLegal() local
2242 IsSigned = true; in isAArch64FrameOffsetLegal()
2247 IsSigned = true; in isAArch64FrameOffsetLegal()
2254 IsSigned = true; in isAArch64FrameOffsetLegal()
2297 if (IsSigned) { in isAArch64FrameOffsetLegal()
2303 IsSigned = true; in isAArch64FrameOffsetLegal()
2307 IsSigned = false; in isAArch64FrameOffsetLegal()
2312 int MaxOff = (1 << (MaskBits - IsSigned)) - 1; in isAArch64FrameOffsetLegal()
2313 int MinOff = (IsSigned ? (-MaxOff - 1) : 0); in isAArch64FrameOffsetLegal()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h958 bool IsSigned, bool NoWrap);
964 bool IsSigned, bool NoWrap);
/external/eigen/unsupported/Eigen/
DAdolcForward90 IsSigned = 1,
DMPRealSupport65 IsSigned = 1,
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp99 bool selectFPToInt(const Instruction *I, bool IsSigned);
897 bool MipsFastISel::selectFPToInt(const Instruction *I, bool IsSigned) { in selectFPToInt() argument
901 if (!IsSigned) in selectFPToInt()
/external/eigen/Eigen/src/SparseCore/
DSparseVector.h339 EIGEN_STATIC_ASSERT(NumTraits<Index>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE);

123