[PATCH] D78827: Add support for #pragma clang fp allow_reassociation(on|off) -- floating point control of associative math transformations
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 12:22:54 PDT 2020
erichkeane added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticParseKinds.td:1336
+ "%select{invalid|missing}0 option%select{ %1|}0; expected contract or reassoc">;
+def err_pragma_fp_contract_invalid_argument : Error<
+ "unexpected argument '%0' to '#pragma clang fp contract'; "
----------------
I think we'd want this combined with the one below. You can use a %select to enable/disable 'fast'. Something like:
"unexpected argument '%0' to '#pragma clang fp %select{contract|OTHERS}1; expected 'on'%select{, 'fast'|}1 or off"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78827/new/
https://reviews.llvm.org/D78827
More information about the cfe-commits
mailing list