[all-commits] [llvm/llvm-project] 3e97db: [PowerPC] Emit IR module flag for current float abi

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Mon Sep 25 02:59:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e97db89ae8e5b4d7bb6c0bf52773c43c9e06c51
      https://github.com/llvm/llvm-project/commit/3e97db89ae8e5b4d7bb6c0bf52773c43c9e06c51
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2023-09-25 (Mon, 25 Sep 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenTypes.cpp
    M clang/lib/CodeGen/CodeGenTypes.h
    M clang/lib/CodeGen/Targets/PPC.cpp
    A clang/test/CodeGen/ppc64-float-abi-attr.c

  Log Message:
  -----------
  [PowerPC] Emit IR module flag for current float abi

This is part of the efforts adding .gnu_attribute support for PowerPC.
In Clang, an extra metadata field will be added as float-abi to show
current long double format. So backend can emit .gnu_attribute section
data from this metadata.

To avoid breaking existing behavior, the module metadata will only be
emitted when this module makes use of long double.

Reviewed By: nemanjai

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




More information about the All-commits mailing list