[PATCH] D78827: Add support for #pragma clang fp reassoc(on|off) -- floating point control of associative math transformations
Melanie Blower via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 24 12:59:30 PDT 2020
mibintc created this revision.
mibintc added reviewers: rjmccall, sepavloff, andrew.w.kaylor.
Herald added a project: clang.
mibintc marked an inline comment as done.
mibintc added a comment.
added an inline comment
================
Comment at: clang/include/clang/AST/Stmt.h:618
// Only meaningful for floating point types.
- unsigned FPFeatures : 8;
+ unsigned FPFeatures : 14;
};
----------------
This correction belongs in the parent revision, i will move it there.
The folks at Intel who program FPGA would like to be able to control the FastMathFlag that governs reassociating operations at the source level using pragma's e.g.
#pragma clang fp reassoc(on) // allow reassociation of operations
This patch builds on reviews.llvm.org/D72841 <https://reviews.llvm.org/D72841>
I just realized that I need to update the user manual to describe the syntax, so I owe you an update. Hoping you will take a look
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78827
Files:
clang/include/clang/AST/Stmt.h
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Parse/ParsePragma.cpp
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/fp-reassoc-pragma-fails.cpp
clang/test/CodeGen/fp-reassoc-pragma.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78827.259968.patch
Type: text/x-patch
Size: 19042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200424/229501b9/attachment-0001.bin>
More information about the cfe-commits
mailing list