Searched refs:extOrTrunc (Results 1 – 17 of 17) sorted by relevance
68 NewVal = NewVal.extOrTrunc(DstSema.getWidth()); in convert()83 ThisVal = ThisVal.extOrTrunc(CommonWidth); in compare()84 OtherVal = OtherVal.extOrTrunc(CommonWidth); in compare()268 .extOrTrunc(Wide); in mul()270 .extOrTrunc(Wide); in mul()329 .extOrTrunc(Wide); in div()331 .extOrTrunc(Wide); in div()365 APSInt Max = APFixedPoint::getMax(Sema).getValue().extOrTrunc(Wide); in shl()366 APSInt Min = APFixedPoint::getMin(Sema).getValue().extOrTrunc(Wide); in shl()472 return Result.extOrTrunc(DstWidth); in convertToInt()
175 m_integer = m_integer.extOrTrunc(bits); in TruncOrExtendTo()186 m_integer = m_integer.extOrTrunc(bits); in IntegralPromote()290 APSInt ext = m_integer.extOrTrunc(sizeof(T) * 8); in GetAs()669 APSInt(std::move(integer), !is_signed).extOrTrunc(8 * byte_size); in SetValueFromCString()809 m_integer = m_integer.extOrTrunc(bit_size).extOrTrunc(8 * GetByteSize()); in ExtractBitfield()
40 Value = Value.extOrTrunc(BitWidth); in apply()
90 APFixedPoint::getMax(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert()100 APFixedPoint::getMin(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert()
119 APSInt extOrTrunc(uint32_t width) const { in extOrTrunc() function
187 decl, constant.Value.extOrTrunc(type_width)); in visitKnownMember()
1106 rightI = rightI.extOrTrunc(leftI.getBitWidth()); in evalBinOpLN()
1310 decl, value.toAPSInt().extOrTrunc(type_width)); in AddRecordMembers()
443 uint64_t TruncatedN = N.extOrTrunc(64).getZExtValue(); in adjustIndex()1696 uint64_t Index64 = Index.extOrTrunc(64).getZExtValue(); in adjustOffsetAndIndex()2633 APSInt Result = Value.extOrTrunc(DestWidth); in HandleIntToIntCast()8961 uint64_t N = Value.getInt().extOrTrunc(Size).getZExtValue(); in VisitCastExpr()11240 Val = Val.extOrTrunc(Info.Ctx.getIntWidth(E->getType())); in CheckReferencedDecl()12420 LHS = APSInt(LHS.extOrTrunc(MaxBits), !IsSigned); in VisitBuiltinCallExpr()12421 RHS = APSInt(RHS.extOrTrunc(MaxBits), !IsSigned); in VisitBuiltinCallExpr()12471 APSInt Temp = Result.extOrTrunc(Info.Ctx.getTypeSize(ResultType)); in VisitBuiltinCallExpr()12680 uint64_t Index64 = Index.extOrTrunc(64).getZExtValue(); in addOrSubLValueAsInteger()
1928 elementIndex = elementIndex.extOrTrunc(maxElements.getBitWidth()); in CheckArrayType()2909 = DesignatedStartIndex.extOrTrunc(MaxElements.getBitWidth()); in CheckDesignatedInitializer()2912 = DesignatedEndIndex.extOrTrunc(MaxElements.getBitWidth()); in CheckDesignatedInitializer()2927 DesignatedStartIndex.extOrTrunc(DesignatedIndexBitWidth); in CheckDesignatedInitializer()2929 DesignatedEndIndex.extOrTrunc(DesignatedIndexBitWidth); in CheckDesignatedInitializer()
7393 Value = Value.extOrTrunc(IntegerType->isBitIntType() in CheckTemplateArgument()7485 Value = Value.extOrTrunc(AllowedBits); in CheckTemplateArgument()7496 Value = Value.extOrTrunc(AllowedBits); in CheckTemplateArgument()
1115 return llvm::APSInt::getUnsigned(Result).extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction()1130 return llvm::APSInt::getUnsigned(Result + 1).extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction()1252 .extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction()12857 .extOrTrunc(BitWidth); in PromotedRange()12861 .extOrTrunc(BitWidth); in PromotedRange()
1123 Val = Val.extOrTrunc(BitWidth); in AdjustAPSInt()
19261 EnumVal = EnumVal.extOrTrunc(Context.getIntWidth(EltTy)); in CheckEnumConstant()19743 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()
2958 return Res.extOrTrunc(Width); in MakeIntValue()
5690 ID.APSIntVal = ID.APSIntVal.extOrTrunc(Ty->getPrimitiveSizeInBits()); in convertValIDToValue()9220 Val = Val.extOrTrunc(FunctionSummary::ParamAccess::RangeWidth); in parseParamAccessOffset()
9419 *Result = Result->extOrTrunc(32); in EmitAArch64SVEBuiltinExpr()