[flang-commits] [PATCH] D88752: [flang][msvc] Avoid dependence on long double

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 2 13:03:24 PDT 2020


klausler created this revision.
klausler added reviewers: Meinersbur, jeanPerier.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
klausler requested review of this revision.

MSVC does not support a distinct 80-bit extended precision
"long double" type.  Rework the I/O runtime to avoid using
native C/C++ type names.  Centralize the mappings between
the KIND= type parameters of REAL and their binary precisions
in the common real.h header file, and use KIND type parameter
values rather than binary precisions for clarity where
appropriate.

This patch, if successful, should obviate the need for
Differential review D88511 <https://reviews.llvm.org/D88511>.

(This patch anticipates a successful review of D88688 <https://reviews.llvm.org/D88688>, which
fixes the function that maps each kind of real to its maximum
number of significant decimal digits.)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88752

Files:
  flang/include/flang/Common/real.h
  flang/include/flang/Decimal/binary-floating-point.h
  flang/include/flang/Evaluate/type.h
  flang/runtime/descriptor-io.h
  flang/runtime/edit-input.cpp
  flang/runtime/edit-input.h
  flang/runtime/edit-output.cpp
  flang/runtime/edit-output.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88752.295895.patch
Type: text/x-patch
Size: 17913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20201002/b65b7d6b/attachment.bin>


More information about the flang-commits mailing list