================
@@ -132,6 +132,7 @@ class LLVM_LIBRARY_VISIBILITY LoongArch64TargetInfo
: LoongArchTargetInfo(Triple, Opts) {
LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
IntMaxType = Int64Type = SignedLong;
+ HasCheapUnalignedBitfieldAccess = true;
----------------
wzssyqa wrote:
> > Only set it to true when -mno-unaligned-access.
>
> In `LoongArchTargetInfo::handleTargetFeatures()`, we can handle the feature
> `-ual`.
Maybe it's true, while you may need it if you need to build a generic kernel
image for both microarchitectures.
https://github.com/llvm/llvm-project/pull/65742
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits