[all-commits] [llvm/llvm-project] 978191: [CIR] Initialization of atomic aggregates with pad...
Sirui Mu via All-commits
all-commits at lists.llvm.org
Fri Jun 5 21:01:12 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 978191848cdb929f85c76bbf54b0666971328c59
https://github.com/llvm/llvm-project/commit/978191848cdb929f85c76bbf54b0666971328c59
Author: Sirui Mu <msrlancern at gmail.com>
Date: 2026-06-06 (Sat, 06 Jun 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenAtomic.cpp
M clang/lib/CIR/CodeGen/CIRGenBuilder.h
M clang/lib/CIR/CodeGen/CIRGenTypes.cpp
M clang/test/CIR/CodeGen/atomic.c
Log Message:
-----------
[CIR] Initialization of atomic aggregates with padding (#200668)
This patch adds support for the initialization of atomic aggregates with
padding. The changes include:
- During CIRGen, the type `_Atomic(T)` is represented by a CIR struct
`{T, sint8[padding_size]}` if the size of `_Atomic(T)` does not match
the size of `T`. `padding_size` is the difference between the size of
`_Atomic(T)` and `T`.
- CIRGen for the initialization process is updated to handle the
initialization of such CIR struct values.
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