Home
last modified time | relevance | path

Searched refs:getIntWidth (Results 1 – 22 of 22) sorted by relevance

/external/clang/lib/Basic/
DTargetInfo.cpp134 if (getCharWidth() < getIntWidth()) in getTypeConstantSuffix()
137 if (getShortWidth() < getIntWidth()) in getTypeConstantSuffix()
174 case UnsignedInt: return getIntWidth(); in getTypeWidth()
188 if (getIntWidth() == BitWidth) in getIntTypeByWidth()
203 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
DTargets.cpp6585 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
/external/clang/lib/Frontend/
DInitPreprocessor.cpp634 && TI.getIntWidth() == 32) { in InitializePredefinedMacros()
640 && TI.getIntWidth() == 32) { in InitializePredefinedMacros()
665 DefineTypeSizeof("__SIZEOF_INT__", TI.getIntWidth(), TI, Builder); in InitializePredefinedMacros()
741 if (TI.getIntWidth() > TI.getShortWidth()) in InitializePredefinedMacros()
744 if (TI.getLongWidth() > TI.getIntWidth()) in InitializePredefinedMacros()
760 if (TI.getIntWidth() > TI.getShortWidth()) { in InitializePredefinedMacros()
766 if (TI.getLongWidth() > TI.getIntWidth()) { in InitializePredefinedMacros()
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp247 unsigned IntSize = Target.getIntWidth(); in getMemberPointerWidthAndAlign()
DASTContext.cpp1631 Width = Target->getIntWidth(); in getTypeInfoImpl()
1677 Width = Target->getIntWidth(); in getTypeInfoImpl()
4638 return 1 + (getIntWidth(BoolTy) << 3); in getIntegerRank()
4643 return 2 + (getIntWidth(CharTy) << 3); in getIntegerRank()
4646 return 3 + (getIntWidth(ShortTy) << 3); in getIntegerRank()
4649 return 4 + (getIntWidth(IntTy) << 3); in getIntegerRank()
4652 return 5 + (getIntWidth(LongTy) << 3); in getIntegerRank()
4655 return 6 + (getIntWidth(LongLongTy) << 3); in getIntegerRank()
4658 return 7 + (getIntWidth(Int128Ty) << 3); in getIntegerRank()
4749 uint64_t PromotableSize = getIntWidth(Promotable); in getPromotedIntegerType()
[all …]
DExprConstant.cpp1584 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast()
1611 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast()
2848 Ctx.getIntWidth(T) >= Ctx.getIntWidth(Ctx.IntTy); in isOverflowingIntegerType()
6012 assert(SI.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) && in Success()
6024 assert(I.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) && in Success()
6169 == Info.Ctx.getIntWidth(E->getType())); in CheckReferencedDecl()
6179 Val = Val.extOrTrunc(Info.Ctx.getIntWidth(E->getType())); in CheckReferencedDecl()
7134 APSInt Value(Info.Ctx.getIntWidth(E->getType()), in VisitBinOp()
7410 APSInt Result = TrueResult.trunc(Info.Ctx.getIntWidth(E->getType())); in VisitBinaryOperator()
9319 unsigned DestWidth = Ctx.getIntWidth(E->getType()); in CheckICE()
DExpr.cpp725 assert(V.getBitWidth() == C.getIntWidth(type) && in IntegerLiteral()
/external/clang/lib/Lex/
DLiteralSupport.cpp1054 assert(PP.getTargetInfo().getIntWidth() <= 64 && in CharLiteralParser()
1055 (PP.getTargetInfo().getIntWidth() & 7) == 0 && in CharLiteralParser()
1163 llvm::APInt LitVal(PP.getTargetInfo().getIntWidth(), 0); in CharLiteralParser()
DPPExpressions.cpp292 NumBits = TI.getIntWidth(); in EvaluateValue()
/external/clang/include/clang/Basic/
DTargetInfo.h305 unsigned getIntWidth() const { return IntWidth; } in getIntWidth() function
/external/clang/lib/Sema/
DSemaChecking.cpp6113 return IntRange(C.getIntWidth(QualType(T, 0)), false); in forValueOfCanonicalType()
6128 return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger()); in forValueOfCanonicalType()
6151 return IntRange(C.getIntWidth(QualType(T, 0)), BT->isUnsignedInteger()); in forTargetOfCanonicalType()
6364 unsigned opWidth = C.getIntWidth(GetExprType(E)); in GetExprRange()
6387 unsigned opWidth = C.getIntWidth(GetExprType(E)); in GetExprRange()
6438 return GetExprRange(C, E, C.getIntWidth(GetExprType(E))); in GetExprRange()
6616 if (S.Context.getIntWidth(ConstantT) == in DiagnoseOutOfRangeComparison()
6617 S.Context.getIntWidth(CommonT) && in DiagnoseOutOfRangeComparison()
6836 unsigned comparisonWidth = S.Context.getIntWidth(T); in AnalyzeComparison()
6958 llvm::APSInt IntegerValue(S.Context.getIntWidth(T), in DiagnoseFloatingLiteralImpCast()
[all …]
DSemaStmt.cpp776 unsigned CondWidth = HasDependentValue ? 0 : Context.getIntWidth(CondType); in ActOnFinishSwitchStmt()
784 = HasDependentValue ? 0 : Context.getIntWidth(CondTypeBeforePromotion); in ActOnFinishSwitchStmt()
1182 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum()
DSemaExpr.cpp1183 } else if (S.Context.getIntWidth(LHSType) != S.Context.getIntWidth(RHSType)) { in handleIntegerConversion()
1624 llvm::APInt Len(Context.getIntWidth(SizeType), Literal.GetNumStringChars()); in ActOnStringLiteral()
1635 unsigned CharBits = Context.getIntWidth(CharTy); in ActOnStringLiteral()
3111 unsigned IntSize = Context.getTargetInfo().getIntWidth(); in ActOnIntegerConstant()
3275 unsigned CharBits = Context.getIntWidth(Context.CharTy); in ActOnNumericConstant()
3366 unsigned IntSize = Context.getTargetInfo().getIntWidth(); in ActOnNumericConstant()
11785 if (pw == Context.getTargetInfo().getIntWidth()) in ActOnGNUNullExpr()
DSemaDecl.cpp12839 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField()
13816 unsigned BitWidth = Context.getIntWidth(T); in isRepresentableIntegerValue()
13856 unsigned IntWidth = Context.getTargetInfo().getIntWidth(); in CheckEnumConstant()
13992 EnumVal = EnumVal.zextOrTrunc(Context.getIntWidth(EltTy)); in CheckEnumConstant()
14014 EnumVal = EnumVal.extOrTrunc(Context.getIntWidth(EltTy)); in CheckEnumConstant()
14344 unsigned IntWidth = Context.getTargetInfo().getIntWidth(); in ActOnEnumBody()
14404 BestWidth = Context.getIntWidth(BestType); in ActOnEnumBody()
DSemaOverload.cpp383 const unsigned FromWidth = Ctx.getIntWidth(FromType); in getNarrowingKind()
385 const unsigned ToWidth = Ctx.getIntWidth(ToType); in getNarrowingKind()
7241 unsigned LW = S.Context.getIntWidth(LT), in getUsualArithmeticConversions()
7242 RW = S.Context.getIntWidth(RT); in getUsualArithmeticConversions()
DSemaExprCXX.cpp1204 unsigned IntWidth = Context.getTargetInfo().getIntWidth(); in ActOnCXXNew()
1375 assert(Context.getTargetInfo().getIntWidth() && "Builtin type of size 0?"); in BuildCXXNew()
DSemaTemplateDeduction.cpp3266 llvm::APInt Size(S.Context.getIntWidth(NTTP->getType()), in DeduceFromInitializerList()
DTreeTransform.h11180 if (Size->getBitWidth() == SemaRef.Context.getIntWidth(Types[I])) { in RebuildArrayType()
11252 llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy), in RebuildExtVectorType()
/external/clang/include/clang/AST/
DASTContext.h2269 unsigned getIntWidth(QualType T) const;
2283 llvm::APSInt Res(getIntWidth(Type), in MakeIntValue()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp115 IntTy = llvm::IntegerType::get(LLVMContext, C.getTargetInfo().getIntWidth()); in CodeGenModule()
DCGExprScalar.cpp640 unsigned Width = CGF.getContext().getIntWidth(DstType); in EmitFloatConversionCheck()
DTargetInfo.cpp6227 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()