[all-commits] [llvm/llvm-project] 3d1165: [APFloat] Refactor common code for APFloat<->APInt...

David Majnemer via All-commits all-commits at lists.llvm.org
Tue Apr 4 12:12:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d11652bbee4cd6782c474e28cb2ab58fc93f245
      https://github.com/llvm/llvm-project/commit/3d11652bbee4cd6782c474e28cb2ab58fc93f245
  Author: David Majnemer <david.majnemer at gmail.com>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

  Changed paths:
    M llvm/include/llvm/ADT/APFloat.h
    M llvm/lib/Support/APFloat.cpp
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  [APFloat] Refactor common code for APFloat<->APInt conversion

All the IEEE formats are quite similar, we can merge their code
effectively by writing it parametrically via the fltSemantics object.

We can metaprogram the implementation such that this parametricity is
zero-cost.




More information about the All-commits mailing list