[all-commits] [llvm/llvm-project] 4f94c0: [Clang] Mutate bulitin names under IEEE128 on PPC64

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Fri Dec 3 01:51:10 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f94c02616025ace168899b6fbdc8c3ba240062b
      https://github.com/llvm/llvm-project/commit/4f94c02616025ace168899b6fbdc8c3ba240062b
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-12-03 (Fri, 03 Dec 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/math-builtins-long.c
    A clang/test/CodeGen/ppc64-f128-builtins.c

  Log Message:
  -----------
  [Clang] Mutate bulitin names under IEEE128 on PPC64

Glibc 2.32 and newer uses these symbol names to support IEEE-754 128-bit
float. GCC transforms name of these builtins to align with Glibc header
behavior.

Since Clang doesn't have all GCC-compatible builtins implemented, this
patch only mutates the implemented part.

Note nexttoward is a special case (no nexttowardf128) so it's also
handled here.

Reviewed By: jsji

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




More information about the All-commits mailing list