[all-commits] [llvm/llvm-project] bd36f7: [CIR] Add initial support for bitfields in structs...

Andres-Salamanca via All-commits all-commits at lists.llvm.org
Fri Jun 20 07:03:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd36f7331a9f575272aebb9e0163194541110912
      https://github.com/llvm/llvm-project/commit/bd36f7331a9f575272aebb9e0163194541110912
  Author: Andres-Salamanca <andrealebarbaritos at gmail.com>
  Date:   2025-06-20 (Fri, 20 Jun 2025)

  Changed paths:
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenRecordLayout.h
    M clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
    M clang/lib/CIR/CodeGen/TargetInfo.cpp
    M clang/lib/CIR/CodeGen/TargetInfo.h
    A clang/test/CIR/CodeGen/bitfields.c
    A clang/test/CIR/CodeGen/bitfields.cpp

  Log Message:
  -----------
  [CIR] Add initial support for bitfields in structs (#142041)

This change adds support for bitfields CIR records can now contain bit
fields.

I’ve updated the `CIRGenBitFieldInfo` comment, which originally came
from the incubator and was identical to the one in OGCodeGen, to better
reflect the current implementation.

Support for bitfields in unions big-endian architectures and `get` and
`set` operations remains unimplemented and will be addressed in a future
patch.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list