/external/llvm-project/llvm/include/llvm/ADT/ |
D | APFixedPoint.h | 100 class APFixedPoint { 102 APFixedPoint(const APInt &Val, const FixedPointSemantics &Sema) in APFixedPoint() function 108 APFixedPoint(uint64_t Val, const FixedPointSemantics &Sema) in APFixedPoint() function 109 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned()), Sema) {} in APFixedPoint() 112 APFixedPoint(const FixedPointSemantics &Sema) : APFixedPoint(0, Sema) {} in APFixedPoint() function 127 APFixedPoint convert(const FixedPointSemantics &DstSema, 134 APFixedPoint add(const APFixedPoint &Other, bool *Overflow = nullptr) const; 135 APFixedPoint sub(const APFixedPoint &Other, bool *Overflow = nullptr) const; 136 APFixedPoint mul(const APFixedPoint &Other, bool *Overflow = nullptr) const; 137 APFixedPoint div(const APFixedPoint &Other, bool *Overflow = nullptr) const; [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | APFixedPoint.cpp | 19 APFixedPoint APFixedPoint::convert(const FixedPointSemantics &DstSema, in convert() 61 return APFixedPoint(NewVal, DstSema); in convert() 64 int APFixedPoint::compare(const APFixedPoint &Other) const { in compare() 115 APFixedPoint APFixedPoint::getMax(const FixedPointSemantics &Sema) { in getMax() 120 return APFixedPoint(Val, Sema); in getMax() 123 APFixedPoint APFixedPoint::getMin(const FixedPointSemantics &Sema) { in getMin() 125 return APFixedPoint(Val, Sema); in getMin() 138 APSInt MaxInt = APFixedPoint::getMax(*this).getValue(); in fitsInFloatSemantics() 145 APSInt MinInt = APFixedPoint::getMin(*this).getValue(); in fitsInFloatSemantics() 176 APFixedPoint APFixedPoint::add(const APFixedPoint &Other, in add() [all …]
|
D | CMakeLists.txt | 84 APFixedPoint.cpp
|
/external/llvm-project/llvm/unittests/ADT/ |
D | APFixedPointTest.cpp | 14 using llvm::APFixedPoint; 136 ASSERT_EQ(APFixedPoint::getMax(Sema).getValue(), in CheckUnpaddedMax() 141 ASSERT_EQ(APFixedPoint::getMax(Sema).getValue(), in CheckPaddedMax() 146 ASSERT_EQ(APFixedPoint::getMin(Sema).getValue(), in CheckMin() 198 APFixedPoint ValWithFract(APInt(Sema.getWidth(), in CheckIntPart() 205 APFixedPoint JustFract( in CheckIntPart() 210 APFixedPoint WholeNum( in CheckIntPart() 216 APFixedPoint Negative( in CheckIntPart() 223 ASSERT_EQ(APFixedPoint::getMin(Sema).getIntPart(), Expected); in CheckIntPartMin() 227 ASSERT_EQ(APFixedPoint::getMax(Sema).getIntPart(), Expected); in CheckIntPartMax() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | APValue.h | 119 typedef llvm::APFixedPoint APFixedPoint; 305 explicit APValue(APFixedPoint FX) : Kind(None) { 426 APFixedPoint &getFixedPoint() { 428 return *(APFixedPoint *)(char *)&Data; 430 const APFixedPoint &getFixedPoint() const { 575 void setFixedPoint(APFixedPoint FX) { 577 *(APFixedPoint *)(char *)&Data = std::move(FX); 622 void MakeFixedPoint(APFixedPoint &&FX) { 624 new ((void *)(char *)&Data) APFixedPoint(std::move(FX));
|
D | OptionalDiagnostic.h | 66 OptionalDiagnostic &operator<<(const llvm::APFixedPoint &FX) {
|
D | ASTContext.h | 76 class APFixedPoint; variable 2009 llvm::APFixedPoint getFixedPointMax(QualType Ty) const; 2010 llvm::APFixedPoint getFixedPointMin(QualType Ty) const;
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | FixedPointBuilder.h | 88 APFixedPoint::getMax(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert() 98 APFixedPoint::getMin(DstSema).getValue().extOrTrunc(ResultWidth)); in Convert()
|
/external/llvm-project/llvm/utils/gn/secondary/llvm/lib/Support/ |
D | BUILD.gn | 37 "APFixedPoint.cpp",
|
/external/llvm-project/clang/lib/AST/ |
D | APValue.cpp | 318 APFixedPoint FXCopy = RHS.getFixedPoint(); in APValue() 399 ((APFixedPoint *)(char *)&Data)->~APFixedPoint(); in DestroyDataAndMakeUninit()
|
D | ExprConstant.cpp | 66 using llvm::APFixedPoint; 1825 static bool EvaluateFixedPointOrInteger(const Expr *E, APFixedPoint &Result, 1829 static bool EvaluateFixedPoint(const Expr *E, APFixedPoint &Result, 10728 APFixedPoint(I, Info.Ctx.getFixedPointSemantics(E->getType())), E); in Success() 10733 APFixedPoint(Value, Info.Ctx.getFixedPointSemantics(E->getType())), E); in Success() 10740 bool Success(const APFixedPoint &V, const Expr *E) { in Success() 10798 static bool EvaluateFixedPoint(const Expr *E, APFixedPoint &Result, in EvaluateFixedPoint() 10814 static bool EvaluateFixedPointOrInteger(const Expr *E, APFixedPoint &Result, in EvaluateFixedPointOrInteger() 10822 Result = APFixedPoint(Val, FXSema); in EvaluateFixedPointOrInteger() 12516 APFixedPoint LHSFX(Info.Ctx.getFixedPointSemantics(LHSTy)); in EvaluateComparisonBinaryOperator() [all …]
|
D | ASTContext.cpp | 11312 llvm::APFixedPoint ASTContext::getFixedPointMax(QualType Ty) const { in getFixedPointMax() 11314 return llvm::APFixedPoint::getMax(getFixedPointSemantics(Ty)); in getFixedPointMax() 11317 llvm::APFixedPoint ASTContext::getFixedPointMin(QualType Ty) const { in getFixedPointMin() 11319 return llvm::APFixedPoint::getMin(getFixedPointSemantics(Ty)); in getFixedPointMin()
|
D | Type.cpp | 4375 llvm::APFixedPoint(Val, FXSema).toString(Str); in FixedPointValueToString()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaChecking.cpp | 12162 llvm::APFixedPoint Value = Result.Val.getFixedPoint(); in CheckImplicitConversion() 12163 llvm::APFixedPoint MaxVal = S.Context.getFixedPointMax(T); in CheckImplicitConversion() 12164 llvm::APFixedPoint MinVal = S.Context.getFixedPointMin(T); in CheckImplicitConversion() 12179 llvm::APFixedPoint FXResult = Result.Val.getFixedPoint(); in CheckImplicitConversion() 12204 llvm::APFixedPoint IntResult = llvm::APFixedPoint::getFromIntValue( in CheckImplicitConversion()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 8973 return APValue(llvm::APFixedPoint(readAPInt(), FPSema)); in readAPValue()
|