[PATCH] D83136: [NFC] Adding the align attribute on Atomic{CmpXchg|RMW}Inst
JF Bastien via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 3 11:52:35 PDT 2020
jfb added inline comments.
================
Comment at: llvm/include/llvm/IR/IRBuilder.h:1746
+ return Insert(new AtomicCmpXchgInst(
+ Ptr, Cmp, New, Alignment, SuccessOrdering, FailureOrdering, SSID));
}
----------------
Are types always rounded to a power of two at this point?
i.e. what does this do: `struct { char c[3]; };` ?
Also, I think this is wrong for non-lock-free types. The alignment requirement is lower on those.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83136/new/
https://reviews.llvm.org/D83136
More information about the llvm-commits
mailing list