[PATCH] D111391: [NFC] [Clang] Use global enum for explicit float mode
Qiu Chaofan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 8 01:55:22 PDT 2021
qiucf created this revision.
qiucf added reviewers: rjmccall, nemanjai, aaron.ballman, erichkeane.
qiucf requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Currently, there're multiple float types that can be represented by `__attribute__((mode(xx)))`. It's parsed, and then a corresponding type is created if available.
This refactor moves the enum for mode into a global enum class visible to `ASTContext`, as discussed in D109950 <https://reviews.llvm.org/D109950>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111391
Files:
clang/include/clang/AST/ASTContext.h
clang/include/clang/Basic/TargetInfo.h
clang/lib/AST/ASTContext.cpp
clang/lib/Basic/TargetInfo.cpp
clang/lib/Basic/Targets/X86.h
clang/lib/CodeGen/CGCall.cpp
clang/lib/Sema/SemaDeclAttr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111391.378128.patch
Type: text/x-patch
Size: 9936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211008/bb687a81/attachment.bin>
More information about the cfe-commits
mailing list