[PATCH] D127287: clang: Introduce -fexperimental-max-bitint-width

Matthias Gehre via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 07:54:13 PDT 2022


mgehre-amd added a comment.

Thanks for the quick review!



================
Comment at: clang/test/Sema/large-bit-int.c:1
+// RUN: %clang_cc1 -fexperimental-max-bitint-width=1024 -fsyntax-only -verify %s -Wno-unused -triple x86_64-gnu-linux
+
----------------
aaron.ballman wrote:
> Thoughts on adding a frontend diagnostic if the user specifies a value larger than `llvm::IntegerType::MAX_INT_BITS`? I'm on the fence. OTOneH, this gives a good user experience in the event of mistypes in the command line, OTOtherH, it's a cc1-only option that we expect to remove in the (hopefully) near future.
> 
> Also, I don't think the triple is needed and I'm pretty sure `-Wno-unused` is the default already.
I was thinking that this is both only a cc1 option and at the same time MAX_INT_BITS is really big, so I don't imagine a practical case where one intends to have bigger _BitInts.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127287/new/

https://reviews.llvm.org/D127287



More information about the cfe-commits mailing list