[all-commits] [llvm/llvm-project] 89359d: [support] Support printing floats in ScopedPrinter

Paul Kirth via All-commits all-commits at lists.llvm.org
Mon Mar 20 17:26:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89359df8ca8726c288f3d5e1232eb3f3247dd505
      https://github.com/llvm/llvm-project/commit/89359df8ca8726c288f3d5e1232eb3f3247dd505
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/include/llvm/Support/ScopedPrinter.h
    M llvm/unittests/Support/ScopedPrinterTest.cpp

  Log Message:
  -----------
  [support] Support printing floats in ScopedPrinter

llvm-readobj will need the ability to print floats for use in
HashHistograms. This adds that functionality to the ScopedPrinter and
JSONScopedPrinter.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D145277




More information about the All-commits mailing list