ImpleLee wrote:
Now I make a utility function `getGCCCompatibleIntTypeForBitwidth` for this
type preference. It should also be used for `mode` attribute.
There is currently no test about this, but I don't know how to or even whether
should I write relevant tests.
There are many other places i
https://github.com/ImpleLee ready_for_review
https://github.com/llvm/llvm-project/pull/148954
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/ImpleLee updated
https://github.com/llvm/llvm-project/pull/148954
>From 3b19742073d1625bbf5bb997325dac2f5003e17d Mon Sep 17 00:00:00 2001
From: Imple Lee <80144331+imple...@users.noreply.github.com>
Date: Wed, 16 Jul 2025 04:23:45 +0800
Subject: [PATCH 1/3] [clang] improve con
https://github.com/ImpleLee converted_to_draft
https://github.com/llvm/llvm-project/pull/148954
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ImpleLee wrote:
> > Compared to `int > signed char > short > long > long long`, inconsistency
> > happens when `sizeof(int) == sizeof(short)`, which is true only in LP32
> > among [currently widely accepted data
> > models](https://en.cppreference.com/w/cpp/language/types.html#Properties).
>
https://github.com/ImpleLee edited
https://github.com/llvm/llvm-project/pull/148954
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -12901,24 +12901,24 @@ QualType Sema::GetSignedVectorType(QualType V) {
return Context.getExtVectorType(Context.LongLongTy, VTy->getNumElements());
}
- if (TypeSize == Context.getTypeSize(Context.Int128Ty))
-return Context.getVectorType(Context.Int128Ty, VTy->get
@@ -12901,24 +12901,24 @@ QualType Sema::GetSignedVectorType(QualType V) {
return Context.getExtVectorType(Context.LongLongTy, VTy->getNumElements());
}
- if (TypeSize == Context.getTypeSize(Context.Int128Ty))
-return Context.getVectorType(Context.Int128Ty, VTy->get
@@ -12901,24 +12901,24 @@ QualType Sema::GetSignedVectorType(QualType V) {
return Context.getExtVectorType(Context.LongLongTy, VTy->getNumElements());
}
- if (TypeSize == Context.getTypeSize(Context.Int128Ty))
-return Context.getVectorType(Context.Int128Ty, VTy->get