[all-commits] [llvm/llvm-project] b40c53: [clang] Add support for -fcx-limited-range, #pragm...
Zahira Ammarguellat via All-commits
all-commits at lists.llvm.org
Mon Dec 11 07:03:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b40c53465650456bfd364c123b1001e025353a33
https://github.com/llvm/llvm-project/commit/b40c53465650456bfd364c123b1001e025353a33
Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
Date: 2023-12-11 (Mon, 11 Dec 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/docs/UsersManual.rst
M clang/include/clang/Basic/FPOptions.def
M clang/include/clang/Basic/Features.def
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Basic/LangOptions.h
M clang/include/clang/Basic/TokenKinds.def
M clang/include/clang/Driver/Options.td
M clang/include/clang/Parse/Parser.h
M clang/include/clang/Sema/Sema.h
M clang/lib/CodeGen/CGExprComplex.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Parse/ParsePragma.cpp
M clang/lib/Parse/ParseStmt.cpp
M clang/lib/Parse/Parser.cpp
M clang/lib/Sema/SemaAttr.cpp
M clang/test/CodeGen/complex-math.c
A clang/test/CodeGen/cx-complex-range.c
A clang/test/CodeGen/pragma-cx-limited-range.c
A clang/test/Driver/range.c
M clang/test/Preprocessor/pragma_unknown.c
Log Message:
-----------
[clang] Add support for -fcx-limited-range, #pragma CX_LIMITED_RANGE and -fcx-fortran-rules. (#70244)
This patch adds the #pragma CX_LIMITED_RANGE defined in the C
specification.
It also adds the options -f[no]cx-limited-range and
-f[no]cx-fortran-rules.
-fcx-limited-range enables algebraic formulas for complex multiplication
and division. This option is enabled with -ffast-math.
-fcx-fortran-rules enables algebraic formulas for complex multiplication
and enables Smith’s algorithm for complex division (SMITH, R. L.
Algorithm 116: Complex division. Commun. ACM 5, 8 (1962)).
---------
Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
Co-authored-by: Joseph Huber <jhuber6 at vols.utk.edu>
Co-authored-by: Guray Ozen <guray.ozen at gmail.com>
Co-authored-by: Nishant Patel <nishant.b.patel at intel.com>
Co-authored-by: Jessica Clarke <jrtc27 at jrtc27.com>
Co-authored-by: Petr Hosek <phosek at google.com>
Co-authored-by: Joseph Huber <35342157+jhuber6 at users.noreply.github.com>
Co-authored-by: Craig Topper <craig.topper at sifive.com>
Co-authored-by: Alexander Yermolovich <43973793+ayermolo at users.noreply.github.com>
Co-authored-by: Usama Hameed <u_hameed at apple.com>
Co-authored-by: Philip Reames <preames at rivosinc.com>
Co-authored-by: Evgenii Kudriashov <evgenii.kudriashov at intel.com>
Co-authored-by: Fangrui Song <i at maskray.me>
Co-authored-by: Aart Bik <39774503+aartbik at users.noreply.github.com>
Co-authored-by: Valentin Clement <clementval at gmail.com>
Co-authored-by: Youngsuk Kim <youngsuk.kim at hpe.com>
Co-authored-by: Arthur Eubanks <aeubanks at google.com>
Co-authored-by: Jan Svoboda <jan_svoboda at apple.com>
Co-authored-by: Walter Erquinigo <a20012251 at gmail.com>
Co-authored-by: Eric <eric at efcs.ca>
Co-authored-by: Fazlay Rabbi <106703039+mdfazlay at users.noreply.github.com>
Co-authored-by: Pete Lawrence <plawrence at apple.com>
Co-authored-by: Jonas Devlieghere <jonas at devlieghere.com>
Co-authored-by: Adrian Prantl <aprantl at apple.com>
Co-authored-by: Owen Pan <owenpiano at gmail.com>
Co-authored-by: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
Co-authored-by: Med Ismail Bennani <ismail at bennani.ma>
Co-authored-by: Congcong Cai <congcongcai0907 at 163.com>
Co-authored-by: Rik Huijzer <github at huijzer.xyz>
Co-authored-by: Wang Pengcheng <wangpengcheng.pp at bytedance.com>
Co-authored-by: Yuanfang Chen <tabloid.adroit at gmail.com>
Co-authored-by: Kazu Hirata <kazu at google.com>
Co-authored-by: Mehdi Amini <joker.eph at gmail.com>
Co-authored-by: Aiden Grossman <agrossman154 at yahoo.com>
Co-authored-by: Rana Pratap Reddy <109514914+ranapratap55 at users.noreply.github.com>
Co-authored-by: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Co-authored-by: Piotr Zegar <me at piotrzegar.pl>
Co-authored-by: KAWASHIMA Takahiro <t-kawashima at fujitsu.com>
Co-authored-by: Tobias Hieta <tobias at hieta.se>
Co-authored-by: Luke Lau <luke at igalia.com>
Co-authored-by: Shivam Gupta <shivam98.tkg at gmail.com>
Co-authored-by: cor3ntin <corentinjabot at gmail.com>
Co-authored-by: Yeting Kuo <46629943+yetingk at users.noreply.github.com>
Co-authored-by: Stanislav Mekhanoshin <rampitec at users.noreply.github.com>
Co-authored-by: David Spickett <david.spickett at linaro.org>
Co-authored-by: Matthew Devereau <matthew.devereau at arm.com>
Co-authored-by: Martin Storsjö <martin at martin.st>
Co-authored-by: Qiu Chaofan <qiucofan at cn.ibm.com>
Co-authored-by: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
Co-authored-by: Mikael Holmen <mikael.holmen at ericsson.com>
Co-authored-by: Uday Bondhugula <uday at polymagelabs.com>
Co-authored-by: Nikita Popov <npopov at redhat.com>
Co-authored-by: Johannes Reifferscheid <jreiffers at google.com>
Co-authored-by: Benjamin Kramer <benny.kra at googlemail.com>
Co-authored-by: Oliver Stannard <oliver.stannard at arm.com>
Co-authored-by: Dmitry Vyukov <dvyukov at google.com>
Co-authored-by: Benjamin Maxwell <benjamin.maxwell at arm.com>
Co-authored-by: Piotr Sobczak <piotr.sobczak at amd.com>
Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>
Co-authored-by: Timm Bäder <tbaeder at redhat.com>
Co-authored-by: Sunil Kuravinakop <koops at hpe.com>
Co-authored-by: zhongyunde 00443407 <zhongyunde at huawei.com>
Co-authored-by: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
Co-authored-by: bjacob <jacob.benoit.1 at gmail.com>
Co-authored-by: Weining Lu <luweining at loongson.cn>
Co-authored-by: Andrzej Warzyński <andrzej.warzynski at arm.com>
Co-authored-by: Jay Foad <jay.foad at amd.com>
Co-authored-by: Markus Mützel <markus.muetzel at gmx.de>
Co-authored-by: Erik Jonsson <erik.j.jonsson at ericsson.com>
Co-authored-by: Pete Steinfeld <47540744+psteinfeld at users.noreply.github.com>
Co-authored-by: Alexey Bataev <a.bataev at outlook.com>
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
Co-authored-by: Qizhi Hu <836744285 at qq.com>
More information about the All-commits
mailing list