[PATCH] D119291: [Clang] Add support for STDC CX_LIMITED_RANGE pragma.
Joshua Cranmer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 8 14:20:19 PST 2022
jcranmer-intel created this revision.
Herald added a subscriber: dexonsmith.
jcranmer-intel requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This pragma is defined in the C specification. Notably, the C specification
makes the "DEFAULT" value identical to "OFF" for this pragma, unlike other
floating-point pragmas which are undefined behavior. This may be surprising to
some users.
This patch builds on, and requires, the complex intrinsics to make the pragmas
work properly.
Depends on D119290 <https://reviews.llvm.org/D119290>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119291
Files:
clang/include/clang/Basic/TokenKinds.def
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Lex/Pragma.cpp
clang/lib/Parse/ParsePragma.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/cx-limited-range-pragma.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119291.406976.patch
Type: text/x-patch
Size: 8750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220208/d833d524/attachment.bin>
More information about the cfe-commits
mailing list