[PATCH] D122234: [clang] Link libbitint for large division of _BitInt; increase max _BitInt size
Matthias Gehre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 22 08:25:00 PDT 2022
mgehre-amd created this revision.
mgehre-amd added reviewers: aaron.ballman, erichkeane.
Herald added subscribers: luke957, s.egerton, mstorsjo, simoncook, fedor.sergeev, dschuff.
Herald added a project: All.
mgehre-amd requested review of this revision.
Herald added subscribers: pcwang-thead, aheejin.
Herald added a project: clang.
According to the RFC [0], this review contains the clang parts of large integer divison for _BitInt.
It contains the following parts:
- Driver: Gnu, MinGW: Link libbitint when available
- clang/Basic/TargetInfo: Increase getMaxBitIntWidth to llvm::IntegerType::MAX_INT_BITS
- Sema: Diagnose when converting _BitInt to/from floating point for bit width > 128 because that breaks in the backend
- Lex: Speedup parsing of large integer literals with a power-of-two radix, so parsing a hex literal with 2097152 digits (=MAX_INT_BITS) doesn't take forever
[0] https://discourse.llvm.org/t/rfc-add-support-for-division-of-large-bitint-builtins-selectiondag-globalisel-clang/60329
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122234
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/CommonArgs.h
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/MinGW.cpp
clang/lib/Lex/LiteralSupport.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaCast.cpp
clang/test/CodeGen/ext-int-cc.c
clang/test/Driver/linux-ld.c
clang/test/Lexer/bitint-constants.c
clang/test/Preprocessor/init-aarch64.c
clang/test/Preprocessor/init.c
clang/test/Sema/ext-int.c
clang/test/SemaCXX/ext-int.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122234.417304.patch
Type: text/x-patch
Size: 27186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220322/37cfd2c5/attachment-0001.bin>
More information about the cfe-commits
mailing list