[all-commits] [llvm/llvm-project] 4d4c30: Use Address for CGBuilder's CreateAtomicRMW and Cr...
James Y Knight via All-commits
all-commits at lists.llvm.org
Mon Dec 4 10:37:18 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d4c30a37c75a4c41bcc70be1431651704624b6a
https://github.com/llvm/llvm-project/commit/4d4c30a37c75a4c41bcc70be1431651704624b6a
Author: James Y Knight <jyknight at google.com>
Date: 2023-12-04 (Mon, 04 Dec 2023)
Changed paths:
M clang/lib/CodeGen/CGAtomic.cpp
M clang/lib/CodeGen/CGBuilder.h
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/CodeGen/CGStmtOpenMP.cpp
M clang/test/CodeGen/atomic-ops.c
A clang/test/CodeGen/ms-intrinsics-underaligned.c
M clang/test/CodeGen/ms-intrinsics.c
M clang/test/OpenMP/parallel_reduction_codegen.cpp
Log Message:
-----------
Use Address for CGBuilder's CreateAtomicRMW and CreateAtomicCmpXchg. (#74349)
Update all callers to pass through the Address.
For the older builtins such as `__sync_*` and MSVC `_Interlocked*`,
natural alignment of the atomic access is _assumed_. This change
preserves that behavior. It will pass through greater-than-required
alignments, however.
More information about the All-commits
mailing list