[all-commits] [llvm/llvm-project] 5cc228: TranslateToCpp: Emit floating point literals with ...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Mon Mar 18 01:59:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cc228148e800b75adfc778f8b5fbace04478dd3
      https://github.com/llvm/llvm-project/commit/5cc228148e800b75adfc778f8b5fbace04478dd3
  Author: Matthias Gehre <matthias.gehre at amd.com>
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp
    M mlir/test/Target/Cpp/common-cpp.mlir
    M mlir/test/Target/Cpp/const.mlir
    M mlir/test/Target/Cpp/for.mlir
    M mlir/test/Target/Cpp/stdops.mlir

  Log Message:
  -----------
  TranslateToCpp: Emit floating point literals with suffix (#85392)

Emits `2.0e+00f` instead of `(float)2.0e+00`.

This helps consumers of the emitted code, especially when there are
large numbers of floating point literals, to have a simple AST.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list