[clang] [clang] Better bitfield access units (PR #65742)

YunQiang Su via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 21 18:40:43 PST 2024


================
@@ -132,6 +132,7 @@ class LLVM_LIBRARY_VISIBILITY LoongArch64TargetInfo
       : LoongArchTargetInfo(Triple, Opts) {
     LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
     IntMaxType = Int64Type = SignedLong;
+    HasCheapUnalignedBitfieldAccess = true;
----------------
wzssyqa wrote:

Same to MIPS, while there is no -mno-unaligned-access for MIPS yet. I will add it support.

https://github.com/llvm/llvm-project/pull/65742


More information about the cfe-commits mailing list