[PATCH] D98895: [X86][Draft] Disable long double type for -mno-x87 option
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 16 08:44:54 PDT 2021
erichkeane added a comment.
This seems to do a lot of work that I think already exists, I believe I've seen that SPIRV targets already prohibit long-double, so doing another implementation specifically for x86 seems like the wrong approach. I'd suggest seeing if the SPIRV version works for these. If it doesn't, I'd prefer you generalize that implementation.
================
Comment at: clang/include/clang/Basic/TargetInfo.h:599
+ /// Determine whether the long double type is supported on this target.
+ virtual bool hasLongDoubleType() const { return HasLongDouble; }
+
----------------
I think SPIR targets already do something like this, can you check and see how they do it instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98895/new/
https://reviews.llvm.org/D98895
More information about the cfe-commits
mailing list