Searched refs:RoundingMode (Results 1 - 25 of 38) sorted by relevance

12

/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DFPEnv.cpp20 Optional<RoundingMode> StrToRoundingMode(StringRef RoundingArg) {
23 return StringSwitch<Optional<RoundingMode>>(RoundingArg)
24 .Case("round.dynamic", RoundingMode::Dynamic)
25 .Case("round.tonearest", RoundingMode::NearestTiesToEven)
26 .Case("round.tonearestaway", RoundingMode::NearestTiesToAway)
27 .Case("round.downward", RoundingMode::TowardNegative)
28 .Case("round.upward", RoundingMode::TowardPositive)
29 .Case("round.towardzero", RoundingMode::TowardZero)
33 Optional<StringRef> RoundingModeToStr(RoundingMode UseRounding) {
36 case RoundingMode
[all...]
H A DIntrinsicInst.cpp190 Optional<RoundingMode> ConstrainedFPIntrinsic::getRoundingMode() const {
220 Optional<RoundingMode> Rounding = getRoundingMode();
222 if (Rounding.getValue() != RoundingMode::NearestTiesToEven)
H A DIRBuilder.cpp813 Optional<RoundingMode> Rounding,
847 Optional<RoundingMode> Rounding,
910 Optional<RoundingMode> Rounding,
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DFPEnv.h39 /// Returns a valid RoundingMode enumerator when given a string
42 Optional<RoundingMode> StrToRoundingMode(StringRef);
44 /// For any RoundingMode enumerator, returns a string valid as input in
46 Optional<StringRef> RoundingModeToStr(RoundingMode);
H A DIRBuilder.h131 RoundingMode DefaultConstrainedRounding;
142 DefaultConstrainedRounding(RoundingMode::Dynamic),
326 void setDefaultConstrainedRounding(RoundingMode NewRounding) {
340 RoundingMode getDefaultConstrainedRounding() {
395 RoundingMode DefaultConstrainedRounding;
1151 Value *getConstrainedFPRounding(Optional<RoundingMode> Rounding) {
1152 RoundingMode UseRounding = DefaultConstrainedRounding;
1555 Optional<RoundingMode> Rounding = None,
2168 Optional<RoundingMode> Rounding = None,
2381 Optional<RoundingMode> Roundin
[all...]
H A DIntrinsicInst.h438 Optional<RoundingMode> getRoundingMode() const;
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DFloatingPointMode.h34 enum class RoundingMode : int8_t { class in namespace:llvm
48 inline StringRef spell(RoundingMode RM) {
50 case RoundingMode::TowardZero: return "towardzero";
51 case RoundingMode::NearestTiesToEven: return "tonearest";
52 case RoundingMode::TowardPositive: return "upward";
53 case RoundingMode::TowardNegative: return "downward";
54 case RoundingMode::NearestTiesToAway: return "tonearestaway";
55 case RoundingMode::Dynamic: return "dynamic";
60 inline raw_ostream &operator << (raw_ostream &OS, RoundingMode RM) {
H A DAPFloat.h188 using roundingMode = llvm::RoundingMode;
191 RoundingMode::NearestTiesToEven;
192 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
193 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
194 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
196 RoundingMode::NearestTiesToAway;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/VE/
H A DVE.h74 enum RoundingMode { enum in namespace:llvm::VERD
260 inline static const char *VERDToString(VERD::RoundingMode R) {
279 inline static VERD::RoundingMode stringToVERD(StringRef S) {
280 return StringSwitch<VERD::RoundingMode>(S)
290 inline static unsigned VERDToVal(VERD::RoundingMode R) {
305 inline static VERD::RoundingMode VEValToRD(unsigned Val) {
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DLangOptions.h61 using RoundingMode = llvm::RoundingMode;
219 /// Alias for RoundingMode::NearestTiesToEven.
221 static_cast<unsigned>(llvm::RoundingMode::NearestTiesToEven);
456 using RoundingMode = llvm::RoundingMode;
483 setRoundingMode(static_cast<RoundingMode>(LangOptions::FPR_ToNearest));
504 getRoundingMode() == llvm::RoundingMode::Dynamic &&
528 return getRoundingMode() != llvm::RoundingMode::NearestTiesToEven ||
576 using RoundingMode
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.h187 enum RoundingMode { enum in namespace:llvm::RISCVFPRndMode
197 inline static StringRef roundingModeToString(RoundingMode RndMode) {
216 inline static RoundingMode stringToRoundingMode(StringRef Str) {
217 return StringSwitch<RoundingMode>(Str)
H A DRISCVInstPrinter.cpp155 static_cast<RISCVFPRndMode::RoundingMode>(MI->getOperand(OpNo).getImm());
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DZ3Solver.cpp517 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
520 Z3_mk_fpa_mul(Context.Context, toZ3Expr(*RoundingMode).AST,
525 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
528 Z3_mk_fpa_div(Context.Context, toZ3Expr(*RoundingMode).AST,
539 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
542 Z3_mk_fpa_add(Context.Context, toZ3Expr(*RoundingMode).AST,
547 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
550 Z3_mk_fpa_sub(Context.Context, toZ3Expr(*RoundingMode).AST,
684 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
687 Z3_mk_fpa_to_fp_float(Context.Context, toZ3Expr(*RoundingMode)
692 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
700 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
708 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
715 SMTExprRef RoundingMode = getFloatRoundingMode(); variable
[all...]
H A DAPFloat.cpp189 constexpr RoundingMode APFloatBase::rmNearestTiesToEven;
190 constexpr RoundingMode APFloatBase::rmTowardPositive;
191 constexpr RoundingMode APFloatBase::rmTowardNegative;
192 constexpr RoundingMode APFloatBase::rmTowardZero;
193 constexpr RoundingMode APFloatBase::rmNearestTiesToAway;
4183 IEEEFloat scalbn(IEEEFloat X, int Exp, IEEEFloat::roundingMode RoundingMode) {
4198 X.normalize(RoundingMode, lfExactlyZero);
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/math/
H A Dhardware.d547 alias RoundingMode = uint; ///
551 enum : RoundingMode
568 enum : RoundingMode
580 enum : RoundingMode
607 @property void rounding(RoundingMode newMode) @trusted
614 @property static RoundingMode rounding() @trusted pure
616 return cast(RoundingMode)(getControlState() & roundingMask);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/VE/MCTargetDesc/
H A DVEMCCodeEmitter.cpp153 return VERDToVal(static_cast<VERD::RoundingMode>(
H A DVEInstPrinter.cpp226 O << VERDToString((VERD::RoundingMode)RD);
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/format/internal/
H A Dwrite.d3829 enum RoundingMode { up, down, toZero, toNearestTiesToEven, toNearestTiesAwayFromZero }
3841 auto mode = RoundingMode.toNearestTiesToEven;
3851 mode = RoundingMode.up;
3854 mode = RoundingMode.down;
3857 mode = RoundingMode.toZero;
3860 mode = RoundingMode.toNearestTiesToEven;
3868 if (mode == RoundingMode.up)
3870 else if (mode == RoundingMode.down)
3872 else if (mode == RoundingMode.toZero)
3882 if (mode == RoundingMode
[all...]
H A Dfloats.d2285 import std.format.internal.write : RoundingMode;
2287 auto rm = RoundingMode.toNearestTiesToEven;
2297 rm = RoundingMode.up;
2300 rm = RoundingMode.down;
2303 rm = RoundingMode.toZero;
2306 rm = RoundingMode.toNearestTiesToEven;
2317 case RoundingMode.up:
2321 case RoundingMode.down:
2325 case RoundingMode.toZero:
2329 case RoundingMode
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaAttr.cpp1123 void Sema::setRoundingMode(SourceLocation Loc, llvm::RoundingMode FPR) {
1126 if (FPR == llvm::RoundingMode::Dynamic &&
1129 FPR = llvm::RoundingMode::NearestTiesToEven;
1156 // Enabling FENV access sets the RoundingMode to Dynamic.
1158 NewFPFeatures.setRoundingModeOverride(llvm::RoundingMode::Dynamic);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Parse/
H A DParsePragma.cpp728 auto RM = static_cast<llvm::RoundingMode>(
3100 llvm::StringSwitch<llvm::RoundingMode>(II->getName())
3101 .Case("FE_TOWARDZERO", llvm::RoundingMode::TowardZero)
3102 .Case("FE_TONEAREST", llvm::RoundingMode::NearestTiesToEven)
3103 .Case("FE_UPWARD", llvm::RoundingMode::TowardPositive)
3104 .Case("FE_DOWNWARD", llvm::RoundingMode::TowardNegative)
3105 .Case("FE_TONEARESTFROMZERO", llvm::RoundingMode::NearestTiesToAway)
3106 .Case("FE_DYNAMIC", llvm::RoundingMode::Dynamic)
3107 .Default(llvm::RoundingMode::Invalid);
3108 if (RM == llvm::RoundingMode
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp884 VERD::RoundingMode RoundingMode = stringToVERD(RD); local
886 if (RoundingMode != VERD::UNKNOWN) {
896 VEOperand::CreateRDOp(RoundingMode, SuffixLoc, SuffixEnd));
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.cpp113 llvm::RoundingMode RM = getLangOpts().getFPRoundingMode();
120 RM != llvm::RoundingMode::NearestTiesToEven);
159 llvm::RoundingMode NewRoundingBehavior =
160 static_cast<llvm::RoundingMode>(FPFeatures.getRoundingMode());
173 NewRoundingBehavior == llvm::RoundingMode::NearestTiesToEven)) &&
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dmath.d5088 alias RoundingMode = uint; ///
5092 enum : RoundingMode
5109 enum : RoundingMode
5121 enum : RoundingMode
5133 @property void rounding(RoundingMode newMode) @nogc
5140 @property static RoundingMode rounding() @nogc
5142 return cast(RoundingMode)(getControlState() & roundingMask);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DCompilerInstance.cpp125 llvm::RoundingMode::NearestTiesToEven) {
127 getLangOpts().setFPRoundingMode(llvm::RoundingMode::NearestTiesToEven);

Completed in 569 milliseconds

12