[PATCH] D97224: Use Address for CGBuilder's CreateAtomicRMW and CreateAtomicCmpXchg.
James Y Knight via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 22 13:29:44 PST 2021
jyknight created this revision.
jyknight added reviewers: gchatelet, jfb, rjmccall.
jyknight requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Following the LLVM change to add an alignment argument to the
IRBuilder calls, switch Clang's CGBuilder variants to take an Address
type. Then, update all callers to pass through the Address.
There is one interesting exception: Microsoft's
InterlockedCompareExchange128 family of functions are documented to
require (and assume) 16-byte alignment, despite the argument type
being only `long long*`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97224
Files:
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/CodeGen/CGBuilder.h
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/CodeGen/atomic-ops.c
clang/test/CodeGen/ms-intrinsics.c
clang/test/OpenMP/parallel_reduction_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97224.325555.patch
Type: text/x-patch
Size: 23783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210222/7513ce10/attachment-0001.bin>
More information about the cfe-commits
mailing list