[clang] [CIR] Raise IntType max bitwidth to match LLVM IR (PR #191499)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 15:55:43 PDT 2026
================
@@ -563,14 +563,9 @@ mlir::Type CIRGenTypes::convertType(QualType type) {
case Type::BitInt: {
const auto *bitIntTy = cast<BitIntType>(type);
- if (bitIntTy->getNumBits() > cir::IntType::maxBitwidth()) {
- cgm.errorNYI(SourceLocation(), "large _BitInt type", type);
- resultType = cgm.sInt32Ty;
- } else {
- resultType = cir::IntType::get(&getMLIRContext(), bitIntTy->getNumBits(),
- bitIntTy->isSigned(),
- /*isBitInt=*/true);
- }
+ resultType = cir::IntType::get(&getMLIRContext(), bitIntTy->getNumBits(),
----------------
andykaylor wrote:
Should we still have a check against maxBitwidth?
https://github.com/llvm/llvm-project/pull/191499
More information about the cfe-commits
mailing list