| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 59 NewVal = NewVal.extOrTrunc(DstWidth); in convert() 78 ThisVal = ThisVal.extOrTrunc(CommonWidth); in compare() 79 OtherVal = OtherVal.extOrTrunc(CommonWidth); in compare() 263 .extOrTrunc(Wide); in mul() 265 .extOrTrunc(Wide); in mul() 318 .extOrTrunc(Wide); in div() 320 .extOrTrunc(Wide); in div() 354 APSInt Max = APFixedPoint::getMax(Sema).getValue().extOrTrunc(Wide); in shl() 355 APSInt Min = APFixedPoint::getMin(Sema).getValue().extOrTrunc(Wide); in shl() 441 return Result.extOrTrunc(DstWidth); in convertToInt()
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | Scalar.cpp | 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()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 40 Value = Value.extOrTrunc(BitWidth); in apply()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | PopulateSwitch.cpp | 133 Val = Val.extOrTrunc(EnumIntWidth); in REGISTER_TWEAK()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 88 APFixedPoint::getMax(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert() 98 APFixedPoint::getMin(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert()
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | UdtRecordCompleter.cpp | 176 decl, constant.Value.extOrTrunc(type_width)); in visitKnownMember()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 105 APSInt extOrTrunc(uint32_t width) const { in extOrTrunc() function
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APFixedPointTest.cpp | 612 ASSERT_EQ(UFixed.getValue(), APSInt::getUnsigned(255 << 8).extOrTrunc(16)); in TEST()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SimpleSValBuilder.cpp | 1103 rightI = rightI.extOrTrunc(leftI.getBitWidth()); in evalBinOpLN()
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.cpp | 1306 decl, value.toAPSInt().extOrTrunc(type_width)); in AddRecordMembers()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 443 uint64_t TruncatedN = N.extOrTrunc(64).getZExtValue(); in adjustIndex() 1693 uint64_t Index64 = Index.extOrTrunc(64).getZExtValue(); in adjustOffsetAndIndex() 2627 APSInt Result = Value.extOrTrunc(DestWidth); in HandleIntToIntCast() 8940 uint64_t N = Value.getInt().extOrTrunc(Size).getZExtValue(); in VisitCastExpr() 11167 Val = Val.extOrTrunc(Info.Ctx.getIntWidth(E->getType())); in CheckReferencedDecl() 12332 LHS = APSInt(LHS.extOrTrunc(MaxBits), !IsSigned); in VisitBuiltinCallExpr() 12333 RHS = APSInt(RHS.extOrTrunc(MaxBits), !IsSigned); in VisitBuiltinCallExpr() 12383 APSInt Temp = Result.extOrTrunc(Info.Ctx.getTypeSize(ResultType)); in VisitBuiltinCallExpr() 12592 uint64_t Index64 = Index.extOrTrunc(64).getZExtValue(); in addOrSubLValueAsInteger()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 1914 elementIndex = elementIndex.extOrTrunc(maxElements.getBitWidth()); in CheckArrayType() 2895 = DesignatedStartIndex.extOrTrunc(MaxElements.getBitWidth()); in CheckDesignatedInitializer() 2898 = DesignatedEndIndex.extOrTrunc(MaxElements.getBitWidth()); in CheckDesignatedInitializer() 2913 DesignatedStartIndex.extOrTrunc(DesignatedIndexBitWidth); in CheckDesignatedInitializer() 2915 DesignatedEndIndex.extOrTrunc(DesignatedIndexBitWidth); in CheckDesignatedInitializer()
|
| H A D | SemaTemplate.cpp | 7165 Value = Value.extOrTrunc(IntegerType->isBitIntType() in CheckTemplateArgument() 7253 Value = Value.extOrTrunc(AllowedBits); in CheckTemplateArgument() 7264 Value = Value.extOrTrunc(AllowedBits); in CheckTemplateArgument()
|
| H A D | SemaChecking.cpp | 1075 return llvm::APSInt::getUnsigned(Result).extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction() 1089 return llvm::APSInt::getUnsigned(Result + 1).extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction() 1211 .extOrTrunc(SizeTypeWidth); in checkFortifiedBuiltinMemoryFunction() 12534 .extOrTrunc(BitWidth); in PromotedRange() 12538 .extOrTrunc(BitWidth); in PromotedRange()
|
| H A D | SemaStmt.cpp | 1123 Val = Val.extOrTrunc(BitWidth); in AdjustAPSInt()
|
| H A D | SemaDecl.cpp | 18648 EnumVal = EnumVal.extOrTrunc(Context.getIntWidth(EltTy)); in CheckEnumConstant() 19130 InitVal = InitVal.extOrTrunc(NewWidth); in ActOnEnumBody()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2943 return Res.extOrTrunc(Width); in MakeIntValue()
|
| /llvm-project-15.0.7/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 5413 ID.APSIntVal = ID.APSIntVal.extOrTrunc(Ty->getPrimitiveSizeInBits()); in convertValIDToValue() 8935 Val = Val.extOrTrunc(FunctionSummary::ParamAccess::RangeWidth); in parseParamAccessOffset()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 9111 *Result = Result->extOrTrunc(32); in EmitAArch64SVEBuiltinExpr()
|