diff options
author | Eric Christopher <echristo@gmail.com> | 2015-06-12 01:36:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-06-12 01:36:00 +0000 |
commit | 249e3762e513e45a0d05954c4a3c0a89f5371237 (patch) | |
tree | 0ba30f7212ed6be04e9e4c09fda1fcd23ab2c307 /clang/lib/CodeGen | |
parent | 4dfe075f93043843ee55f593d063c8c04411fbfc (diff) | |
download | bcm5719-llvm-249e3762e513e45a0d05954c4a3c0a89f5371237.tar.gz bcm5719-llvm-249e3762e513e45a0d05954c4a3c0a89f5371237.zip |
Handle fpmath= in the target attribute.
Right now we're ignoring the fpmath attribute since there's no
backend support for a feature like this and to do so would require
checking the validity of the strings and doing general subtarget
feature parsing of valid and invalid features with the target
attribute feature.
llvm-svn: 239582
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 9be73406269..5d34e288923 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1515,6 +1515,11 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, else if (Feature.startswith("tune=")) // We don't support cpu tuning this way currently. ; + else if (Feature.startswith("fpmath=")) + // TODO: Support the fpmath option this way. It will require checking + // overall feature validity for the function with the rest of the + // attributes on the function. + ; else if (Feature.startswith("mno-")) Features.push_back("-" + Feature.split("-").second.str()); else |