[flang-commits] [flang] 1126657 - [flang][runtime] Enable REAL printing in F18 offload runtime. (#87851)

via flang-commits flang-commits at lists.llvm.org
Fri May 24 12:14:32 PDT 2024


Author: Slava Zakharin
Date: 2024-05-24T12:14:28-07:00
New Revision: 1126657af5b6b0a6a64c4f4c04cf9d255d5129e0

URL: https://github.com/llvm/llvm-project/commit/1126657af5b6b0a6a64c4f4c04cf9d255d5129e0
DIFF: https://github.com/llvm/llvm-project/commit/1126657af5b6b0a6a64c4f4c04cf9d255d5129e0.diff

LOG: [flang][runtime] Enable REAL printing in F18 offload runtime. (#87851)

Added: 
    

Modified: 
    flang/runtime/edit-output.cpp

Removed: 
    


################################################################################
diff  --git a/flang/runtime/edit-output.cpp b/flang/runtime/edit-output.cpp
index 6b24c56483185..1a73c85df8404 100644
--- a/flang/runtime/edit-output.cpp
+++ b/flang/runtime/edit-output.cpp
@@ -263,7 +263,6 @@ template <int KIND>
 RT_API_ATTRS decimal::ConversionToDecimalResult
 RealOutputEditing<KIND>::ConvertToDecimal(
     int significantDigits, enum decimal::FortranRounding rounding, int flags) {
-#if !defined(RT_DEVICE_COMPILATION)
   auto converted{decimal::ConvertToDecimal<binaryPrecision>(buffer_,
       sizeof buffer_, static_cast<enum decimal::DecimalConversionFlags>(flags),
       significantDigits, rounding, x_)};
@@ -273,10 +272,6 @@ RealOutputEditing<KIND>::ConvertToDecimal(
         sizeof buffer_);
   }
   return converted;
-#else // defined(RT_DEVICE_COMPILATION)
-  // TODO: enable Decimal library build for the device.
-  io_.GetIoErrorHandler().Crash("not implemented yet: decimal conversion");
-#endif // defined(RT_DEVICE_COMPILATION)
 }
 
 static RT_API_ATTRS bool IsInfOrNaN(const char *p, int length) {


        


More information about the flang-commits mailing list