[PATCH] D116016: [Clang] [PowerPC] Emit module flag for current float abi

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 19 21:37:24 PST 2021


MaskRay added a comment.

> 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.

How does .gnu_attribute work with the metadata?



================
Comment at: clang/test/CodeGen/ppc64-float-abi-attr.c:9
+
+// CHECK: !{{[0-9]+}} = !{i32 1, !"float-abi", !"doubledouble"}
+// IEEE: !{{[0-9]+}} = !{i32 1, !"float-abi", !"ieeequad"}
----------------
`![[#]]`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116016/new/

https://reviews.llvm.org/D116016



More information about the cfe-commits mailing list