From 8ed7e23a3a2cb21809fa448e6667bcab497ad78f Mon Sep 17 00:00:00 2001 From: Tyler Nowicki Date: Mon, 10 Aug 2015 19:56:40 +0000 Subject: Append options for floating-point commutivity when related diagnostics are produced. With this patch clang appends the command line options that would allow vectorization when floating-point commutativity is required. Specifically those are enabling fast-math or specifying a loop hint. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244492 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticFrontendKinds.td | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/clang/Basic/DiagnosticFrontendKinds.td') diff --git a/include/clang/Basic/DiagnosticFrontendKinds.td b/include/clang/Basic/DiagnosticFrontendKinds.td index 21058aa0bb..080c7381b5 100644 --- a/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/include/clang/Basic/DiagnosticFrontendKinds.td @@ -45,6 +45,10 @@ def remark_fe_backend_optimization_remark_missed : Remark<"%0">, BackendInfo, InGroup; def remark_fe_backend_optimization_remark_analysis : Remark<"%0">, BackendInfo, InGroup; +def remark_fe_backend_optimization_remark_analysis_fpcommute : Remark<"%0; " + "allow commutativity by specifying ‘#pragma clang loop vectorize(enable)’ " + "before the loop or by providing the compiler option ‘-ffast-math’">, + BackendInfo, InGroup; def warn_fe_backend_optimization_failure : Warning<"%0">, BackendInfo, InGroup, DefaultWarn; def note_fe_backend_optimization_remark_invalid_loc : Note<"could " -- cgit v1.2.3