Add Alignment argument to IRBuilder CreateAtomicRMW and CreateAtomicCmpXchg.
authorJames Y Knight <jyknight@google.com>
Tue, 9 Feb 2021 04:07:12 +0000 (23:07 -0500)
committerJames Y Knight <jyknight@google.com>
Thu, 25 Feb 2021 23:29:42 +0000 (18:29 -0500)
commit24539f1ef2471d07bd87f833cb0288fc0f251f4b
tree624a6a3a81decba7d5d1553c31490c08bcc09520
parent52c781f6f183c4c9f2feb11e340dc4c1f1c119e4
Add Alignment argument to IRBuilder CreateAtomicRMW and CreateAtomicCmpXchg.

And then push those change throughout LLVM.

Keep the old signature in Clang's CGBuilder for now -- that will be
updated in a follow-on patch (D97224).

The MLIR LLVM-IR dialect is not updated to support the new alignment
attribute, but preserves its existing behavior.

Differential Revision: https://reviews.llvm.org/D97223
clang/lib/CodeGen/CGBuilder.h
llvm/include/llvm/CodeGen/AtomicExpandUtils.h
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/CodeGen/AtomicExpandPass.cpp
llvm/lib/IR/AutoUpgrade.cpp
llvm/lib/IR/Core.cpp
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
llvm/lib/Transforms/Instrumentation/InstrOrderFile.cpp
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td