[all-commits] [llvm/llvm-project] 47a377: [SPIRV] Fix OpConstant float and double printing

Natalie Chouinard via All-commits all-commits at lists.llvm.org
Wed Sep 20 08:30:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47a377d5e0fcfdb9a5f8140a7bd24727ba2306f1
      https://github.com/llvm/llvm-project/commit/47a377d5e0fcfdb9a5f8140a7bd24727ba2306f1
  Author: Natalie Chouinard <chouinard at google.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVInstPrinter.cpp
    M llvm/test/CodeGen/SPIRV/AtomicBuiltinsFloat.ll
    M llvm/test/CodeGen/SPIRV/atomicrmw.ll
    A llvm/test/CodeGen/SPIRV/literals.ll

  Log Message:
  -----------
  [SPIRV] Fix OpConstant float and double printing

Print OpConstant floats as formatted decimal floating points, with
special case exceptions to print infinity and NaN as hexfloats.

This change follows from the fixes in
https://github.com/llvm/llvm-project/pull/66686 to correct how
constant values are printed generally.

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




More information about the All-commits mailing list