Home
last modified time | relevance | path

Searched refs:getSemantics (Results 1 – 25 of 54) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h853 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue()
971 assert(&getSemantics() == &RHS.getSemantics() && in add()
980 assert(&getSemantics() == &RHS.getSemantics() && in subtract()
989 assert(&getSemantics() == &RHS.getSemantics() && in multiply()
998 assert(&getSemantics() == &RHS.getSemantics() && in divide()
1007 assert(&getSemantics() == &RHS.getSemantics() && in remainder()
1016 assert(&getSemantics() == &RHS.getSemantics() && in mod()
1026 assert(&getSemantics() == &Multiplicand.getSemantics() && in fusedMultiplyAdd()
1028 assert(&getSemantics() == &Addend.getSemantics() && in fusedMultiplyAdd()
1171 assert(&getSemantics() == &RHS.getSemantics() && in compare()
[all …]
H A DAPFixedPoint.h120 FixedPointSemantics getSemantics() const { return Sema; } in getSemantics() function
/llvm-project-15.0.7/mlir/lib/Dialect/Math/IR/
H A DMathOps.cpp100 if (a.getSizeInBits(a.getSemantics()) == 64) in fold()
103 if (a.getSizeInBits(a.getSemantics()) == 32) in fold()
120 if (a.getSizeInBits(a.getSemantics()) == 64) in fold()
123 if (a.getSizeInBits(a.getSemantics()) == 32) in fold()
140 switch (a.getSizeInBits(a.getSemantics())) { in fold()
158 switch (a.getSizeInBits(a.getSemantics())) { in fold()
181 b.getSizeInBits(b.getSemantics()) == 64) in fold()
185 b.getSizeInBits(b.getSemantics()) == 32) in fold()
202 switch (a.getSizeInBits(a.getSemantics())) { in fold()
220 switch (a.getSizeInBits(a.getSemantics())) { in fold()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DIncorrectRoundingsCheck.cpp25 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle()) in AST_MATCHER()
27 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble()) in AST_MATCHER()
/llvm-project-15.0.7/flang/lib/Frontend/
H A DFrontendAction.cpp172 auto &semantics = ci.getSemantics(); in runSemanticChecks()
219 auto &sema = instance->getSemantics(); in reportFatalSemanticErrors()
221 if (instance->getSemantics().AnyFatalError()) { in reportFatalSemanticErrors()
H A DFrontendActions.cpp306 ci.getSemantics().DumpSymbols(llvm::outs()); in executeAction()
333 ci.getSemantics().DumpSymbols(llvm::outs()); in executeAction()
471 ci.getSemantics().DumpSymbolsSources(llvm::outs()); in executeAction()
768 ci.getSemantics().context())) { in executeAction()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DUniformSupport.h99 if (&expressedValue.getSemantics() == &APFloat::IEEEsingle() && in quantizeFloatToInt()
106 expressedValue.convert(scale.getSemantics(), roundMode, &lossy); in quantizeFloatToInt()
132 assert(&expressedValue.getSemantics() == &APFloat::IEEEsingle()); in quantizeF32ToInt8()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp178 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in add()
202 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in sub()
226 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in mul()
283 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in div()
511 const fltSemantics &FloatSema = Value.getSemantics(); in getFromFloatValue()
H A DAPFloat.cpp4202 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
4203 auto MinExp = X.getSemantics().minExponent; in scalbn()
4421 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial()
4422 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial()
4423 assert(&C.getSemantics() == &semIEEEdouble); in addWithSpecial()
4424 assert(&CC.getSemantics() == &semIEEEdouble); in addWithSpecial()
4814 const fltSemantics& S = F.getSemantics(); in Storage()
4845 if (&getSemantics() == &ToSemantics) { in convert()
4849 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
4852 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
[all …]
/llvm-project-15.0.7/flang/include/flang/Frontend/
H A DCompilerInstance.h133 Fortran::semantics::Semantics &getSemantics() { return *semantics; } in getSemantics() function
134 const Fortran::semantics::Semantics &getSemantics() const { in getSemantics() function
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.cpp190 if (&FloatValue.getSemantics() == &llvm::APFloat::IEEEsingle()) { in isIgnoredValue()
196 if (&FloatValue.getSemantics() == &llvm::APFloat::IEEEdouble()) { in isIgnoredValue()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp1045 assert(&V.getSemantics() == &Ty->getFltSemantics() && in ConstantFP()
1538 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1544 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1550 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1556 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1557 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1559 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType()
1566 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1572 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1575 &Val2.getSemantics() == &APFloat::IEEEquad(); in isValueValidForType()
[all …]
H A DAsmWriter.cpp1344 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1345 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1352 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1402 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteConstantInternal()
1409 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteConstantInternal()
1415 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteConstantInternal()
1421 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteConstantInternal()
1425 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteConstantInternal()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DOptionalDiagnostic.h57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics());
H A DPropertiesBase.td272 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics()))
286 let Read = [{ node.getFixedPoint().getSemantics() }];
307 node.getComplexFloatReal().getSemantics());
309 node.getComplexFloatImag().getSemantics()));
H A DAPValue.h605 assert(&R.getSemantics() == &I.getSemantics() &&
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyInstPrinter.cpp270 if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) && in toString()
272 APFloat::getQNaN(FP.getSemantics(), /*Negative=*/true))) { in toString()
/llvm-project-15.0.7/lldb/source/Utility/
H A DScalar.cpp37 return GetFloatPromoKey(m_float.getSemantics()); in GetPromoKey()
64 a.FloatPromote(b.m_float.getSemantics()); in PromoteToMaxType()
205 if (GetFloatPromoKey(semantics) < GetFloatPromoKey(m_float.getSemantics())) in FloatPromote()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DMatchers.h289 return APFloat(value.getSemantics(), 1) == value; in m_OneFloat()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1525 int maxExponent = ilogb(APFloat::getLargest(rhs.getSemantics())); in matchAndRewrite()
1561 APFloat signedMax(rhs.getSemantics()); in matchAndRewrite()
1577 APFloat unsignedMax(rhs.getSemantics()); in matchAndRewrite()
1594 APFloat signedMin(rhs.getSemantics()); in matchAndRewrite()
1609 APFloat unsignedMin(rhs.getSemantics()); in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp4572 APFloat One(Value.getSemantics(), 1); in found()
12809 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
12821 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
13737 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator()
13765 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator()
14127 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
14217 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
14305 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14320 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14395 C = APFloat::copySign(APFloat(C.getSemantics()), C); in VisitBinaryOperator()
[all …]
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/
H A DSerializer.cpp884 if (&value.getSemantics() == &APFloat::IEEEsingle()) { in prepareConstantFp()
887 } else if (&value.getSemantics() == &APFloat::IEEEdouble()) { in prepareConstantFp()
894 } else if (&value.getSemantics() == &APFloat::IEEEhalf()) { in prepareConstantFp()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1770 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1772 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
1779 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1781 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp628 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details()
630 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp285 convertToFpType(T.getSemantics()); in operator +=()
291 T.add(createAPFloatFromInt(T.getSemantics(), That.IntVal), RndMode); in operator +=()
311 isInt() ? That.getFpVal().getSemantics() : getFpVal().getSemantics(); in operator *=()
386 Addend0.set(APFloat(C0->getValueAPF().getSemantics()), nullptr); in drillValueDownOneStep()

123